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)[#tested-installation-via-pypi-on-the-following-python-versions].

$ python3 -m venv py313_env
$ source py313_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 .

How to build

To create a source distribution, run the following commands:

$ source py313_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 Upcoming

Metadata

Release files for common-util-py 0.0.28

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.28
File Size Uploaded
common_util_py-0.0.28.tar.gz 22.1 kB Details

Built distribution (wheel)

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

Total release size: 49.0 kB

Release files / common_util_py-0.0.28.tar.gz

Download URL common_util_py-0.0.28.tar.gz
Size 22.1 kB
Tags Source
SHA-256 checksum
How to use checksums
cee4c02b73d031e19d20ca2ee82da4de53b3c6cc8ca64266ebaccdafe2b97eab
BLAKE2b-256 checksum
How to use checksums
cb9f4a50945c457459e6e5c173200072701c9083a9c97bdf5fae6cf7a857e1cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Aug 8, 2025.

Transparency log

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

Download URL common_util_py-0.0.28-py3-none-any.whl
Size 26.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f32b43850b28070137fda5753c0660664c3c1db876e4f36b5e7b940aae0760c
BLAKE2b-256 checksum
How to use checksums
51b4e641c839dad8382f362204b69146c97ffe932a8494d42cacd1ea6ca65576
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Aug 8, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.28 This release

2 release files

0.0.22

1 release file

0.0.21

1 release file

0.0.20

1 release file

0.0.19

1 release file

0.0.18

1 release file

0.0.17

1 release file

0.0.16

1 release file

0.0.15

1 release file

0.0.14

1 release file

0.0.13

1 release file

0.0.12

1 release file

0.0.11

1 release file

0.0.10

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

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