Skip to main content

Helper files/functions/classes for generic Python processes

Project description

toolbox-python

github-release implementation version python-versions
os pypi-status pypi-format github-license pypi-downloads codecov-repo style
contributions
CI CD

Introduction

The purpose of this package is to provide some helper files/functions/classes for generic Python processes.

Key URLs

For reference, these URL's are used:

Type Source URL
Git Repo GitHub https://github.com/data-science-extensions/toolbox-python
Python Package PyPI https://pypi.org/project/toolbox-python
Package Docs Pages https://data-science-extensions.com/python-toolbox/

Installation

You can install and use this package multiple ways by using pip, uv, pipenv, or poetry.

Using pip:

  1. In your terminal, run:

    python3 -m pip install --upgrade pip
    python3 -m pip install toolbox-python
    
  2. Or, in your requirements.txt file, add:

    toolbox-python
    

    Then run:

    python3 -m pip install --upgrade pip
    python3 -m pip install --requirement=requirements.txt
    

Using uv:

  1. In your terminal, run:

    uv add toolbox-python
    

Using pipenv:

  1. Install using environment variables:

    In your Pipfile file, add:

    [[source]]
    url = "https://pypi.org/simple"
    verify_ssl = false
    name = "pypi"
    
    [packages]
    toolbox-python = "*"
    

    Then run:

    python3 -m pip install pipenv
    python3 -m pipenv install --verbose --skip-lock --categories=root index=pypi toolbox-python
    
  2. Or, in your requirements.txt file, add:

    toolbox-python
    

    Then run:

    python3 -m run pipenv install --verbose --skip-lock --requirements=requirements.txt
    
  3. Or just run this:

    python3 -m pipenv install --verbose --skip-lock toolbox-python
    

Using poetry:

  1. In your pyproject.toml file, add:

    [tool.poetry.dependencies]
    toolbox-python = "*"
    

    Then run:

    poetry install
    
  2. Or just run this:

    poetry add toolbox-python
    poetry install
    poetry sync
    

Contribution

Contribution is always welcome.

  1. First, either fork or branch the main repo.

  2. Clone your forked/branched repo.

  3. Build your environment:

    1. With uv on Windows:

      uv sync --all-groups
      uv run pre-commit install
      
    2. With uv on Linux:

      uv sync --all-groups
      uv run pre-commit install
      
  4. Start contributing.

  5. When you're happy with the changes, raise a Pull Request to merge with the main branch again.

Build and Test

To ensure that the package is working as expected, please ensure that:

  1. You write your code as per PEP8 requirements.
  2. You write a UnitTest for each function/feature you include.
  3. The CodeCoverage is 100%.
  4. All UnitTests are passing.
  5. Type Checking is passing 100%.
  6. Complexity is within the required standard.
  7. Docstrings are correctly formatted.

Testing

  • Run them all together:

    uv run src/utils/scripts.py check
    
  • Or run them individually:

    • Black:

      uv run src/utils/scripts.py check-black
      
    • PyTests:

      uv run src/utils/scripts.py check-pytest
      
    • Type Checking:

      uv run src/utils/scripts.py check-ty
      
    • Complexity:

      uv run src/utils/scripts.py check-complexity
      
    • Docstrings:

      uv run src/utils/scripts.py check-docstrings
      

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

toolbox_python-1.5.0.tar.gz (31.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

toolbox_python-1.5.0-py3-none-any.whl (38.0 kB view details)

Uploaded Python 3

File details

Details for the file toolbox_python-1.5.0.tar.gz.

File metadata

  • Download URL: toolbox_python-1.5.0.tar.gz
  • Upload date:
  • Size: 31.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for toolbox_python-1.5.0.tar.gz
Algorithm Hash digest
SHA256 55f6fa815b444d0d7286027631d7f9d9004e0818b7f14c6679094ac5fd3699b4
MD5 a37d122ee455fd30418c29ec124e525b
BLAKE2b-256 e715b7d9ba446cff62f5dcc3ed55f36b413585011d3ccfd960069a86de5a234c

See more details on using hashes here.

File details

Details for the file toolbox_python-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: toolbox_python-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 38.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for toolbox_python-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b818fbd9e971c2f0860ddabc15a980177efb6428613a6e0b39c5f67c85e5cd6d
MD5 700872e276bc88cd903bc24d85181288
BLAKE2b-256 8ca019b4f50e05112d6bf1a0d762ce9a0bfd408cf294dc49afc88642f1be22c7

See more details on using hashes here.

Supported by

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