Skip to main content

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


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-1.15.24.tar.gz (35.5 kB view details)

Uploaded Source

Built Distribution

ul_py_tool-1.15.24-py3-none-any.whl (48.7 kB view details)

Uploaded Python 3

File details

Details for the file ul-py-tool-1.15.24.tar.gz.

File metadata

  • Download URL: ul-py-tool-1.15.24.tar.gz
  • Upload date:
  • Size: 35.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.9

File hashes

Hashes for ul-py-tool-1.15.24.tar.gz
Algorithm Hash digest
SHA256 6a131ea828c6531a0b18da2e6561dfb92dad2ac956ba8b3950c395d378c7de8a
MD5 cc83b85b8639832e2ff79d59dccf2bd1
BLAKE2b-256 3198e0f07f75a415d9dcd05f7bfee78826163b2a5b8dccdb3f6646c7ab42d480

See more details on using hashes here.

File details

Details for the file ul_py_tool-1.15.24-py3-none-any.whl.

File metadata

  • Download URL: ul_py_tool-1.15.24-py3-none-any.whl
  • Upload date:
  • Size: 48.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.9

File hashes

Hashes for ul_py_tool-1.15.24-py3-none-any.whl
Algorithm Hash digest
SHA256 4457a3a4b771efd935d7284aab4a905e081643ab42998a05c03fec7b8d25bbf1
MD5 347159c7f72fb67daa6c4c3daf5e57dd
BLAKE2b-256 9c2d90a7dd0f0b9fd6b8ac44322722c2f8a2f61fa12661a143f3228b00737514

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page