Skip to main content

common-util-py

Common utilities in Python

How to install

The following commands show how to install common-util-py using pip within a Python virtual environment. To see which versions of Python are supported by common-util-py, see here.

$ python3 -m venv py315_env
$ source py315_env/bin/activate
$ pip install .[dev]
$ # or
$ virtualenv --python=/usr/bin/python3 py39_env
$ source env_py39/bin/activate
$ pip install .
$ # or
$ python3.8 -m venv env_py38
$ source env_py38/bin/activate
$ pip install .

Example

See the example here to learn on how to use common-util-py.

How to build

To create a source distribution, run the following commands:

$ source py315_env/bin/activate
$ python3 setup.py --help-commands
$ python3 setup.py sdist

How to test

Initially we were using nosetests and have since migrated to pytest.

$ # deprecated
$ # python setup.py test
$ # python setup.py nosetests
$ # nose is replace by pytest since python3.13
$ pytest

read more here

How to upload to PyPI (Python Package Index)

First, build a source distribution and then install the twine package.

$ python setup.py sdist
$ pip install twine

Then, use twine to upload the package to PyPI.

$ twine upload --repository-url https://test.pypi.org/legacy/ dist/*

or

$ twine upload --config-file ~/.pypirc -r testpypi dist/common_util_py-0.0.1.tar.gz

Test install

Install from Test PyPI

$ pip install --index-url https://test.pypi.org/simple/ common-util-py

Install from Local Distribution.

$ pip install dist/common_util_py-<version>.tar.gz

Legacy

To generate requirements.txt and requirements-dev.txt from pyproject.toml, run the following command.

pip install pip-tools
pip-compile --extra dev pyproject.toml -o requirements-dev.txt
pip-compile pyproject.toml -o requirements.txt

Tested installation via PyPI on the following Python versions:

Python Version tested installed
3.9 Yes
3.10 Yes
3.11 Yes
3.12 Yes
3.13 Yes
3.14 Yes
3.15 Yes
3.16 Upcoming

Metadata

Release files for common-util-py 0.0.29

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

Source distribution (sdist)

Source distribution for common-util-py 0.0.29
File Size Uploaded Provenance Actions
common_util_py-0.0.29.tar.gz 26.3 kB With provenance Details for common_util_py-0.0.29.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for common-util-py 0.0.29
File Interpreter ABI Platform Actions
common_util_py-0.0.29-py3-none-any.whl Python 3 none any Details for common_util_py-0.0.29-py3-none-any.whl

Total release size: 59.2 kB

Release files / common_util_py-0.0.29.tar.gz

Download URL common_util_py-0.0.29.tar.gz
Size 26.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ab48dd09be5874e06390d9d227b43614aafb66a97c0653db298d445a7c235634
BLAKE2b-256 checksum
How to use checksums
8643f8c2af251daa685c19aef5ed87d3b156516b3cef277ef16b85fa8d341e55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Release files / common_util_py-0.0.29-py3-none-any.whl

Download URL common_util_py-0.0.29-py3-none-any.whl
Size 32.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
287c9d3406e98379e3110cb55d0b379f3ff70c441994fe7f942c9efdff07e2e9
BLAKE2b-256 checksum
How to use checksums
8a104c66be6ab08a8a77f7aa615c78b8e3433ac53f2355efb9a83c0cd8879097
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Security for common-util-py 0.0.29

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for common_util_py-0.0.29.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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