|
1 | | -# Compiled 2018-2020 by Dominic Davis-Foster <dominic@davis-foster.co.uk> |
| 1 | +#!/usr/bin/env python |
2 | 2 | # |
3 | | -# terminal.py |
4 | | -# Copyright © 2014-2019 Dominic Davis-Foster <dominic@davis-foster.co.uk> |
| 3 | +# __init__.py |
| 4 | +""" |
| 5 | +Helpful functions for Python 🐍 🛠️ |
| 6 | +""" |
5 | 7 | # |
6 | | -# get_terminal_size, _get_terminal_size_windows, _get_terminal_size_tput and _get_terminal_size_linux |
7 | | -# from https://gist.github.com/jtriley/1108174 |
8 | | -# Copyright © 2011 jtriley |
9 | | -# |
10 | | -# paths.py |
11 | | -# Copyright © 2018-2020 Dominic Davis-Foster <dominic@davis-foster.co.uk> |
12 | | -# |
13 | | -# copytree based on https://stackoverflow.com/a/12514470/3092681 |
14 | | -# Copyright © 2012 atzz |
15 | | -# Licensed under CC-BY-SA |
16 | | -# |
17 | | -# pagesizes.py |
18 | | -# Based on reportlab.lib.pagesizes and reportlab.lib.units |
19 | | -# www.reportlab.co.uk |
20 | | -# Copyright ReportLab Europe Ltd. 2000-2017 |
21 | | -# Copyright (c) 2000-2018, ReportLab Inc. |
22 | | -# All rights reserved. |
23 | | -# Licensed under the BSD License |
24 | | -# |
25 | | -# Includes data from en.wikipedia.org. |
26 | | -# Licensed under the Creative Commons Attribution-ShareAlike License |
27 | | -# |
28 | | -# Parts of the docstrings based on the Python 3.8.2 Documentation |
29 | | -# Licensed under the Python Software Foundation License Version 2. |
30 | | -# Copyright © 2001-2020 Python Software Foundation. All rights reserved. |
31 | | -# Copyright © 2000 BeOpen.com . All rights reserved. |
32 | | -# Copyright © 1995-2000 Corporation for National Research Initiatives . All rights reserved. |
33 | | -# Copyright © 1991-1995 Stichting Mathematisch Centrum . All rights reserved. |
| 8 | +# Copyright © 2018-2020 by Dominic Davis-Foster <dominic@davis-foster.co.uk> |
34 | 9 | # |
35 | 10 | # This program is free software; you can redistribute it and/or modify |
36 | 11 | # it under the terms of the GNU Lesser General Public License as published by |
|
39 | 14 | # |
40 | 15 | # This program is distributed in the hope that it will be useful, |
41 | 16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
42 | | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
43 | 18 | # GNU Lesser General Public License for more details. |
44 | 19 | # |
45 | 20 | # You should have received a copy of the GNU Lesser General Public License |
|
48 | 23 | # MA 02110-1301, USA. |
49 | 24 | # |
50 | 25 |
|
51 | | -# this package |
52 | | -from domdf_python_tools import doctools, pagesizes, paths, terminal, utils |
53 | | -from domdf_python_tools.utils import * |
54 | | - |
55 | | -__all__ = ["paths", "terminal", "utils", "dates"] |
56 | | - |
57 | | -__author__ = "Dominic Davis-Foster" |
58 | | -__copyright__ = "2014-2020 Dominic Davis-Foster" |
| 26 | +__author__: str = "Dominic Davis-Foster" |
| 27 | +__copyright__: str = "2014-2020 Dominic Davis-Foster" |
59 | 28 |
|
60 | | -__license__ = "LGPLv3+" |
61 | | -__version__ = "0.4.3" |
62 | | -__email__ = "dominic@davis-foster.co.uk" |
| 29 | +__license__: str = "LGPLv3+" |
| 30 | +__version__: str = "0.4.3" |
| 31 | +__email__: str = "dominic@davis-foster.co.uk" |
0 commit comments