Add your description here
Project description
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 modern[^1] 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.
[^1]: 'Modern' at the time of writing (19.03.2025)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file package_publishing_example-0.0.4.tar.gz.
File metadata
- Download URL: package_publishing_example-0.0.4.tar.gz
- Upload date:
- Size: 24.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd5ffdb8db6e6f2ba05546f230abc53ee897497d4eb81a1808fbe6290a07bf6f
|
|
| MD5 |
f6350c5efd78b33e5aaccede60603805
|
|
| BLAKE2b-256 |
2a16f382c14a9bdfa854aa8a7d2c089a0fe370a5f0b8e3371cbc552441c2f856
|
File details
Details for the file package_publishing_example-0.0.4-py3-none-any.whl.
File metadata
- Download URL: package_publishing_example-0.0.4-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5818c35288ca21c8b9b4aa2894948864f52a424f8e68abf18360284d64d313a
|
|
| MD5 |
2c633d66c13f87b5cf12726a9e7909f3
|
|
| BLAKE2b-256 |
00c021868d7ffb6ab416c6102a0edf0749fe67e18f0a0b0c20a39ad3cdb77235
|