Python ul py tool
Project description
ul-py-tool
This library allows to bootstrap Python UnicLab project from scratch. It provides a set of useful CMD commands mapping in main.py file.
def main() -> None:
Cmd.main({
'code_stats': 'ul_py_tool.commands.cmd_stats:CmdStats',
'minor': 'ul_py_tool.commands.cmd_version:CmdVersionMinor',
'major': 'ul_py_tool.commands.cmd_version:CmdVersionMajor',
'patch': 'ul_py_tool.commands.cmd_version:CmdVersionPatch',
'lint': 'ul_py_tool.commands.cmd_lint:CmdLint',
'install': 'ul_py_tool.commands.cmd_install:CmdInstall',
'test': 'ul_py_tool.commands.cmd_test:CmdTest',
'fmt': 'ul_py_tool.commands.cmd_fmt:CmdFmt',
'release': 'ul_py_tool.commands.cmd_release:CmdRelease',
'test_secrets': 'ul_py_tool.commands.cmd_test_secrets.py:CmdTestSecrets',
'build-images': 'ul_py_tool.commands.cmd_build_images:CmdBuildImages',
'outdated': 'ul_py_tool.commands.cmp_outdated:CmdOutdated',
'cleanup': 'ul_py_tool.commands.cmd_cleanup:CmdCleanup',
'fix_own': 'ul_py_tool.commands.cmd_fix_own:CmdFixOwn',
})
This maps the code of the CMD command to its name. After mapping, we can use a command like this:
python -m FOLDER_NAME_WHERE_MAIN_PY_LOCATED command_name
python -m src run_some_script # main.py located in src/ root
| Command | Desription |
|---|---|
| Cmd | Base class. Each command should inherit from it and provide method run(). |
| CmdStats | Command that provides us statistics about service, lines of code written, etc. |
| CmdVersion | Command that applies a versioning to setup.py (major, minor, patch). |
| CmdTest | Command that runs tests. |
| CmdRelease | Command for making a release. |
| CmdLint | Command to run lint (different steps). |
| CmdFmt | Command to apply formatting (black, isort (to be implemented)). |
| CmdBuildImages | Command that helps to build & push to the registry Docker images. |
| CmdInstall | Generates project files, configs, pre-commits, etc. |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ul_py_tool-2.2.7.tar.gz
(39.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ul_py_tool-2.2.7.tar.gz.
File metadata
- Download URL: ul_py_tool-2.2.7.tar.gz
- Upload date:
- Size: 39.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b08f7bae0dbfc5abdbd71caf7f954c7a696a6f0d38a6f85bff7c2cb98513122f
|
|
| MD5 |
a4f534ee0348decc6322786aa9574cfd
|
|
| BLAKE2b-256 |
fd29c6ff5de30d8c5eab051dcf5b9da4122504cf539e05db9d8460dc9fadf57c
|
File details
Details for the file ul_py_tool-2.2.7-py3-none-any.whl.
File metadata
- Download URL: ul_py_tool-2.2.7-py3-none-any.whl
- Upload date:
- Size: 55.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a588cf9ab92ba07eecc96ee3c9fa1ff97893a904275dfa94e8d953dc9a4d6bda
|
|
| MD5 |
d02a55dd335fcd79a3ab30ab5fb1e805
|
|
| BLAKE2b-256 |
b06cb7e8c89bcf9a42aac4ca7995b165188b466a2d0e8a4a30301745c3a516a2
|