Skip to main content

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.

Metadata

Release files for ul-py-tool 3.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ul-py-tool 3.0.3
File Size Uploaded
ul_py_tool-3.0.3.tar.gz 40.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ul-py-tool 3.0.3
File Interpreter ABI Platform
ul_py_tool-3.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 96.1 kB

Release files / ul_py_tool-3.0.3.tar.gz

Download URL ul_py_tool-3.0.3.tar.gz
Size 40.3 kB
Tags Source
SHA-256 checksum
How to use checksums
603aa92ccabd7dd238130087e5ccd69b96bb2a4271a33e51fa0adb8510c63b83
BLAKE2b-256 checksum
How to use checksums
92ad1c97c1d72fd013964d3577d5b5c658ed81bd7b56c29fb90a3e2b74d27fc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / ul_py_tool-3.0.3-py3-none-any.whl

Download URL ul_py_tool-3.0.3-py3-none-any.whl
Size 55.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c7ca673ccc6d8107df4e939878ef888aaffe3ae618d74b32527f98c861c0d92f
BLAKE2b-256 checksum
How to use checksums
614c349f337dc73f843756627b0e0367fe43d8dbc97a0d32716987968ca6b27f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release history Release notifications | RSS feed

This release

3.0.3 This release

2 release files

3.0.0

2 release files

2.2.7

2 release files

2.2.6

2 release files

2.2.5

2 release files

2.2.4

2 release files

2.2.3

2 release files

2.2.2

2 release files

2.2.1

2 release files

2.2.0

1 release file

2.1.5

2 release files

2.1.4

2 release files

2.1.3

2 release files

2.1.2

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.6

1 release file

2.0.5

2 release files

2.0.4

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.16.2

2 release files

1.16.1

2 release files

1.16.0

2 release files

1.15.45

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page