Skip to main content

A collection of utility functions for Python

Project description

o7-util

O7 Python library of useful & common modules

Dev Notes

lint code: pylint src Reformat to Black: black src Check if format is black: black --check src Unit Test: pytest Unit Test + Coverage: pytest --cov=o7util --cov-report=term --cov-report=html --cov-branch tests/test_color.py

Set up git hooks

Very useful to apply formatting and make lint checks before commits

  • Run : git config --local core.hooksPath .githooks/

Semantic Release

Ref: https://python-semantic-release.readthedocs.io/en/latest/

  • Test : semantic-release --noop version
  • Real : semantic-release version

Commit Message Convention

Commit Message Header <type>(<scope>): <short summary>

Possible Type:

  • build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
  • ci: Changes to our CI configuration files and scripts (examples: CircleCi, SauceLabs)
  • docs: Documentation only changes
  • feat: A new feature
  • fix: A bug fix
  • perf: A code change that improves performance
  • refactor: A code change that neither fixes a bug nor adds a feature
  • test: Adding missing tests or correcting existing tests

Ref: https://github.com/angular/angular/blob/main/CONTRIBUTING.md#-commit-message-format

Regenerate requirements.txt

pip install pip-tools
pip-compile pyproject.toml

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

o7util-0.0.10.tar.gz (33.1 kB view details)

Uploaded Source

Built Distribution

o7util-0.0.10-py3-none-any.whl (34.1 kB view details)

Uploaded Python 3

File details

Details for the file o7util-0.0.10.tar.gz.

File metadata

  • Download URL: o7util-0.0.10.tar.gz
  • Upload date:
  • Size: 33.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for o7util-0.0.10.tar.gz
Algorithm Hash digest
SHA256 b53b7125eba8d55ae4d368823c84c860c5215097a0786f8128053db8c2a5d53c
MD5 7ef715fdacf6f94cef3f6e8c26e778ed
BLAKE2b-256 bf8e75275c5660ad0e03063bcf40f2a5f36ad3ed375a885d7bb19bce64a6e8bc

See more details on using hashes here.

File details

Details for the file o7util-0.0.10-py3-none-any.whl.

File metadata

  • Download URL: o7util-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 34.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for o7util-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 63b79b4a54a66fc07f683e0577fd985b579b093cea831529bb795fc50bcba220
MD5 4b2af598a1b6483edd6a5565ee109778
BLAKE2b-256 2a7c0e3ab9b626fa3908cf53ff5dac179f158462525d7001fcbbcbefdf44e058

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