utils-mystuff 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of utils-mystuff might be problematic. Click here for more details.
- utils_mystuff-1.0.0/.gitignore +115 -0
- utils_mystuff-1.0.0/AUTHORS.md +3 -0
- utils_mystuff-1.0.0/LICENSE.txt +32 -0
- utils_mystuff-1.0.0/PKG-INFO +82 -0
- utils_mystuff-1.0.0/README.md +54 -0
- utils_mystuff-1.0.0/pyproject.toml +414 -0
- utils_mystuff-1.0.0/utils_mystuff/__init__.py +51 -0
- utils_mystuff-1.0.0/utils_mystuff/convert_regex.py +241 -0
- utils_mystuff-1.0.0/utils_mystuff/logger_CLI.py +200 -0
- utils_mystuff-1.0.0/utils_mystuff/utils_GUI.py +442 -0
- utils_mystuff-1.0.0/utils_mystuff/utils_filehandling.py +204 -0
- utils_mystuff-1.0.0/utils_mystuff/utils_various.py +461 -0
- utils_mystuff-1.0.0/utils_mystuff/version.py +55 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
env/
|
|
12
|
+
build/
|
|
13
|
+
develop-eggs/
|
|
14
|
+
dist/
|
|
15
|
+
downloads/
|
|
16
|
+
eggs/
|
|
17
|
+
.eggs/
|
|
18
|
+
lib/
|
|
19
|
+
lib64/
|
|
20
|
+
parts/
|
|
21
|
+
sdist/
|
|
22
|
+
var/
|
|
23
|
+
wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
|
|
28
|
+
# PyInstaller
|
|
29
|
+
# Usually these files are written by a python script from a template
|
|
30
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
31
|
+
*.manifest
|
|
32
|
+
*.spec
|
|
33
|
+
|
|
34
|
+
# Installer logs
|
|
35
|
+
pip-log.txt
|
|
36
|
+
pip-delete-this-directory.txt
|
|
37
|
+
|
|
38
|
+
# Unit test / coverage reports
|
|
39
|
+
htmlcov/
|
|
40
|
+
.tox/
|
|
41
|
+
.coverage
|
|
42
|
+
.coverage.*
|
|
43
|
+
.cache
|
|
44
|
+
nosetests.xml
|
|
45
|
+
coverage.xml
|
|
46
|
+
*.cover
|
|
47
|
+
.hypothesis/
|
|
48
|
+
.pytest_cache/
|
|
49
|
+
|
|
50
|
+
# Translations
|
|
51
|
+
*.mo
|
|
52
|
+
*.pot
|
|
53
|
+
|
|
54
|
+
# Django stuff:
|
|
55
|
+
*.log
|
|
56
|
+
local_settings.py
|
|
57
|
+
|
|
58
|
+
# Flask stuff:
|
|
59
|
+
instance/
|
|
60
|
+
.webassets-cache
|
|
61
|
+
|
|
62
|
+
# Scrapy stuff:
|
|
63
|
+
.scrapy
|
|
64
|
+
|
|
65
|
+
# Sphinx documentation
|
|
66
|
+
docs/_build/
|
|
67
|
+
|
|
68
|
+
# PyBuilder
|
|
69
|
+
target/
|
|
70
|
+
|
|
71
|
+
# Jupyter Notebook
|
|
72
|
+
.ipynb_checkpoints
|
|
73
|
+
|
|
74
|
+
# pyenv
|
|
75
|
+
.python-version
|
|
76
|
+
|
|
77
|
+
# celery beat schedule file
|
|
78
|
+
celerybeat-schedule
|
|
79
|
+
|
|
80
|
+
# SageMath parsed files
|
|
81
|
+
*.sage.py
|
|
82
|
+
|
|
83
|
+
# dotenv
|
|
84
|
+
.env
|
|
85
|
+
|
|
86
|
+
# virtualenv
|
|
87
|
+
.venv
|
|
88
|
+
venv/
|
|
89
|
+
ENV/
|
|
90
|
+
|
|
91
|
+
# Spyder project settings
|
|
92
|
+
.spyderproject
|
|
93
|
+
.spyproject
|
|
94
|
+
|
|
95
|
+
# Rope project settings
|
|
96
|
+
.ropeproject
|
|
97
|
+
|
|
98
|
+
# mkdocs documentation
|
|
99
|
+
/site
|
|
100
|
+
|
|
101
|
+
# mypy
|
|
102
|
+
.mypy_cache/
|
|
103
|
+
|
|
104
|
+
# ruff
|
|
105
|
+
.ruff_cache/
|
|
106
|
+
|
|
107
|
+
# IDE settings
|
|
108
|
+
.vscode/
|
|
109
|
+
.idea/
|
|
110
|
+
|
|
111
|
+
# Version file generated by hatch-vcs
|
|
112
|
+
src/*/_version.py
|
|
113
|
+
|
|
114
|
+
# MacOS files
|
|
115
|
+
.DS_Store
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
GNU GENERAL PUBLIC LICENSE
|
|
2
|
+
Version 3, 29 June 2007
|
|
3
|
+
|
|
4
|
+
Package with various utilities i.e. VB regex translation, CLI logging, file handling, basic GUI wrapper ...
|
|
5
|
+
Copyright (C) 2024 dornech
|
|
6
|
+
|
|
7
|
+
This program is free software: you can redistribute it and/or modify
|
|
8
|
+
it under the terms of the GNU General Public License as published by
|
|
9
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
10
|
+
(at your option) any later version.
|
|
11
|
+
|
|
12
|
+
This program is distributed in the hope that it will be useful,
|
|
13
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
+
GNU General Public License for more details.
|
|
16
|
+
|
|
17
|
+
You should have received a copy of the GNU General Public License
|
|
18
|
+
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
19
|
+
|
|
20
|
+
Also add information on how to contact you by electronic and paper mail.
|
|
21
|
+
|
|
22
|
+
You should also get your employer (if you work as a programmer) or school,
|
|
23
|
+
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
|
24
|
+
For more information on this, and how to apply and follow the GNU GPL, see
|
|
25
|
+
<http://www.gnu.org/licenses/>.
|
|
26
|
+
|
|
27
|
+
The GNU General Public License does not permit incorporating your program
|
|
28
|
+
into proprietary programs. If your program is a subroutine library, you
|
|
29
|
+
may consider it more useful to permit linking proprietary applications with
|
|
30
|
+
the library. If this is what you want to do, use the GNU Lesser General
|
|
31
|
+
Public License instead of this License. But first, please read
|
|
32
|
+
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: utils-mystuff
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Package with various utilities i.e. VB regex translation, CLI logging, file handling, basic GUI wrapper ...
|
|
5
|
+
Project-URL: Documentation, https://dornech.github.io/utils-mystuff
|
|
6
|
+
Project-URL: Source, https://github.com/dornech/utils-mystuff
|
|
7
|
+
Project-URL: Tracker, https://github.com/dornech/utils-mystuff/issues
|
|
8
|
+
Project-URL: Sponsor, https://github.com/sponsors/dornech
|
|
9
|
+
Author-email: dornech <dornech@gmx.de>
|
|
10
|
+
License: GPL-3.0-only
|
|
11
|
+
License-File: AUTHORS.md
|
|
12
|
+
License-File: LICENSE.txt
|
|
13
|
+
Keywords: CLI logging,GUI wrapper,RegEx conversion,command line interface,file handling,logging,regular expression
|
|
14
|
+
Classifier: Programming Language :: Python
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
21
|
+
Requires-Python: >=3.9
|
|
22
|
+
Requires-Dist: easygui
|
|
23
|
+
Requires-Dist: freesimplegui
|
|
24
|
+
Requires-Dist: pymsgbox
|
|
25
|
+
Requires-Dist: python-dateutil
|
|
26
|
+
Requires-Dist: pytz
|
|
27
|
+
Description-Content-Type: text/markdown
|
|
28
|
+
|
|
29
|
+
# Personal utilities package for Python
|
|
30
|
+
|
|
31
|
+
Package with various utilities i.e. VB regex translation, CLI logging, file handling, basic GUI wrapper ...
|
|
32
|
+
|
|
33
|
+
## Features
|
|
34
|
+
|
|
35
|
+
Set of submodules contains:
|
|
36
|
+
|
|
37
|
+
- submodule for converting Microsoft VB /COM type regular expression to Python regular expression
|
|
38
|
+
- submodule with utilities to log CLI calls of Python scripts
|
|
39
|
+
- submodule with utilities for file handling
|
|
40
|
+
- submodule with wrapper for basic GUI functions for various GUI frameworks
|
|
41
|
+
- submodule with various utilities - read config file with standard parser, set up standard logger object ...
|
|
42
|
+
|
|
43
|
+
Note: as I am coming from camel case notation I was struggling a little bit with the Python naming conventions.
|
|
44
|
+
However, for publishing I tried to increase compliance with Python naming conventions and added snake case
|
|
45
|
+
method stubs (at least for most important subroutines) as a compromise.
|
|
46
|
+
|
|
47
|
+
## Development
|
|
48
|
+
|
|
49
|
+
To set up [hatch] and [pre-commit] for the first time:
|
|
50
|
+
|
|
51
|
+
1. install [hatch] globally, e.g. with [pipx], i.e. `pipx install hatch`,
|
|
52
|
+
2. make sure `pre-commit` is installed globally, e.g. with `pipx install pre-commit`.
|
|
53
|
+
|
|
54
|
+
A special feature that makes hatch very different from other familiar tools is that you almost never
|
|
55
|
+
activate, or enter, an environment. Instead, you use `hatch run env_name:command` and the `default` environment
|
|
56
|
+
is assumed for a command if there is no colon found. Thus you must always define your environment in a declarative
|
|
57
|
+
way and hatch makes sure that the environment reflects your declaration by updating it whenever you issue
|
|
58
|
+
a `hatch run ...`. This helps with reproducability and avoids forgetting to specify dependencies since the
|
|
59
|
+
hatch workflow is to specify everything directly in [pyproject.toml](pyproject.toml). Only in rare cases, you
|
|
60
|
+
will use `hatch shell` to enter the `default` environment, which is similar to what you may know from other tools.
|
|
61
|
+
|
|
62
|
+
To get you started, use `hatch run test:cov` or `hatch run test:no-cov` to run the unitest with or without coverage reports,
|
|
63
|
+
respectively. Use `hatch run lint:all` to run all kinds of typing and linting checks. Try to automatically fix linting
|
|
64
|
+
problems with `hatch run lint:fix` and use `hatch run docs:serve` to build and serve your documentation.
|
|
65
|
+
You can also easily define your own environments and commands. Check out the environment setup of hatch
|
|
66
|
+
in [pyproject.toml](pyproject.toml) for more commands as well as the package, build and tool configuration.
|
|
67
|
+
|
|
68
|
+
To support versioning and changelog generation please refer to the toolchain selected during package
|
|
69
|
+
generation (see also `pyproject.toml`). If not deselected, the toolchain includes a [pre-commit] hook
|
|
70
|
+
for linting commit messages to ensure commit messages are compliant with the conventional commit format and
|
|
71
|
+
support an automated changelog generation.
|
|
72
|
+
|
|
73
|
+
## Credits
|
|
74
|
+
|
|
75
|
+
This package was created with [The Hatchlor Enhanced] project template. This template is based on [The Hatchlor]
|
|
76
|
+
but was substantially improved.
|
|
77
|
+
|
|
78
|
+
[The Hatchlor Enhanced]: https://github.com/dornech/the-hatchlor-enhanced
|
|
79
|
+
[The Hatchlor]: https://github.com/florianwilhelm/the-hatchlor
|
|
80
|
+
[pipx]: https://pypa.github.io/pipx/
|
|
81
|
+
[hatch]: https://hatch.pypa.io/
|
|
82
|
+
[pre-commit]: https://pre-commit.com/
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Personal utilities package for Python
|
|
2
|
+
|
|
3
|
+
Package with various utilities i.e. VB regex translation, CLI logging, file handling, basic GUI wrapper ...
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
Set of submodules contains:
|
|
8
|
+
|
|
9
|
+
- submodule for converting Microsoft VB /COM type regular expression to Python regular expression
|
|
10
|
+
- submodule with utilities to log CLI calls of Python scripts
|
|
11
|
+
- submodule with utilities for file handling
|
|
12
|
+
- submodule with wrapper for basic GUI functions for various GUI frameworks
|
|
13
|
+
- submodule with various utilities - read config file with standard parser, set up standard logger object ...
|
|
14
|
+
|
|
15
|
+
Note: as I am coming from camel case notation I was struggling a little bit with the Python naming conventions.
|
|
16
|
+
However, for publishing I tried to increase compliance with Python naming conventions and added snake case
|
|
17
|
+
method stubs (at least for most important subroutines) as a compromise.
|
|
18
|
+
|
|
19
|
+
## Development
|
|
20
|
+
|
|
21
|
+
To set up [hatch] and [pre-commit] for the first time:
|
|
22
|
+
|
|
23
|
+
1. install [hatch] globally, e.g. with [pipx], i.e. `pipx install hatch`,
|
|
24
|
+
2. make sure `pre-commit` is installed globally, e.g. with `pipx install pre-commit`.
|
|
25
|
+
|
|
26
|
+
A special feature that makes hatch very different from other familiar tools is that you almost never
|
|
27
|
+
activate, or enter, an environment. Instead, you use `hatch run env_name:command` and the `default` environment
|
|
28
|
+
is assumed for a command if there is no colon found. Thus you must always define your environment in a declarative
|
|
29
|
+
way and hatch makes sure that the environment reflects your declaration by updating it whenever you issue
|
|
30
|
+
a `hatch run ...`. This helps with reproducability and avoids forgetting to specify dependencies since the
|
|
31
|
+
hatch workflow is to specify everything directly in [pyproject.toml](pyproject.toml). Only in rare cases, you
|
|
32
|
+
will use `hatch shell` to enter the `default` environment, which is similar to what you may know from other tools.
|
|
33
|
+
|
|
34
|
+
To get you started, use `hatch run test:cov` or `hatch run test:no-cov` to run the unitest with or without coverage reports,
|
|
35
|
+
respectively. Use `hatch run lint:all` to run all kinds of typing and linting checks. Try to automatically fix linting
|
|
36
|
+
problems with `hatch run lint:fix` and use `hatch run docs:serve` to build and serve your documentation.
|
|
37
|
+
You can also easily define your own environments and commands. Check out the environment setup of hatch
|
|
38
|
+
in [pyproject.toml](pyproject.toml) for more commands as well as the package, build and tool configuration.
|
|
39
|
+
|
|
40
|
+
To support versioning and changelog generation please refer to the toolchain selected during package
|
|
41
|
+
generation (see also `pyproject.toml`). If not deselected, the toolchain includes a [pre-commit] hook
|
|
42
|
+
for linting commit messages to ensure commit messages are compliant with the conventional commit format and
|
|
43
|
+
support an automated changelog generation.
|
|
44
|
+
|
|
45
|
+
## Credits
|
|
46
|
+
|
|
47
|
+
This package was created with [The Hatchlor Enhanced] project template. This template is based on [The Hatchlor]
|
|
48
|
+
but was substantially improved.
|
|
49
|
+
|
|
50
|
+
[The Hatchlor Enhanced]: https://github.com/dornech/the-hatchlor-enhanced
|
|
51
|
+
[The Hatchlor]: https://github.com/florianwilhelm/the-hatchlor
|
|
52
|
+
[pipx]: https://pypa.github.io/pipx/
|
|
53
|
+
[hatch]: https://hatch.pypa.io/
|
|
54
|
+
[pre-commit]: https://pre-commit.com/
|