package_publishing_example
This repository contains an example python codebase with accompanying CLI to demonstrate how to set up and publish such a project with modern1 tools.
The contents of this repository themselves are published as a python package that can be imported in python, but also contains a CLI wrapper.
Installing the package
pip install package_publishing_example
Testing it out
>>> from python_packaging_example import revcomp
>>> revcomp('ACGTA')
'TACGT'
$ ppe revcomp ACGTA
TACGT
This codebase uses the following tools:
- uv for project management and publishing to pypi
- ruff for linting and formatting
- pytest for running tests
- typer for creating a CLI
- uv-dynamic-versioning to read the package version from a git tag
The assignments consist of following the steps that were followed to end up with this repository repository structure, e.g. downloading and initializing the tools. Assignment 1 focuses on python package management and publishing with uv, assignment 2 deals with publishing to conda, assignment 3 contains miscellaneous tips in tricks for working with github and linking/synchronizing packages.
-
'Modern' at the time of writing (19.03.2025) ↩
Metadata
Release files for package-publishing-example 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| package_publishing_example-0.0.4.tar.gz | 24.1 kB | Without provenance | Details for package_publishing_example-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| package_publishing_example-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for package_publishing_example-0.0.4-py3-none-any.whl |
Total release size: 28.4 kB
Release files / package_publishing_example-0.0.4.tar.gz
| Download URL | package_publishing_example-0.0.4.tar.gz |
|---|---|
| Size | 24.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd5ffdb8db6e6f2ba05546f230abc53ee897497d4eb81a1808fbe6290a07bf6f
|
|
BLAKE2b-256 checksum How to use checksums |
2a16f382c14a9bdfa854aa8a7d2c089a0fe370a5f0b8e3371cbc552441c2f856
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.2
|
Release files / package_publishing_example-0.0.4-py3-none-any.whl
| Download URL | package_publishing_example-0.0.4-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a5818c35288ca21c8b9b4aa2894948864f52a424f8e68abf18360284d64d313a
|
|
BLAKE2b-256 checksum How to use checksums |
00c021868d7ffb6ab416c6102a0edf0749fe67e18f0a0b0c20a39ad3cdb77235
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.2
|
Security for package-publishing-example 0.0.4
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.