pk3
Build utilities for pykit3 packages.
Installation
pip install pk3
CLI Usage
Show version from pyproject.toml
pk3 version
# 0.1.1
pk3 version --path /path/to/pyproject.toml
Create git tag from version
pk3 tag
# Created tag: v0.1.1
# Run 'git push --tags' to push the tag
pk3 tag --prefix release-
# Created tag: release-0.1.1
pk3 tag --prefix ""
# Created tag: 0.1.1
Publish to PyPI
TWINE_PASSWORD=pypi-xxx pk3 publish
# Published successfully
# Publish to TestPyPI first
TWINE_PASSWORD=pypi-xxx pk3 publish --test
Python API
from pk3 import get_version, create_tag, publish
# Get version from pyproject.toml
version = get_version() # reads ./pyproject.toml
version = get_version("/path/to/pyproject.toml")
# Create git tag
tag = create_tag() # creates "v0.1.1"
tag = create_tag(prefix="release-") # creates "release-0.1.1"
tag = create_tag(prefix="") # creates "0.1.1"
# Publish to PyPI (requires TWINE_PASSWORD env var)
publish() # publish to PyPI
publish(test=True) # publish to TestPyPI
Metadata
Release files for pk3 0.1.6
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 |
|---|---|---|---|---|
| pk3-0.1.6.tar.gz | 14.9 kB | Without provenance | Details for pk3-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pk3-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for pk3-0.1.6-py3-none-any.whl |
Total release size: 24.2 kB
Release files / pk3-0.1.6.tar.gz
| Download URL | pk3-0.1.6.tar.gz |
|---|---|
| Size | 14.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d2dd484a341fa923ae8d77ed183ed6a6b1766546d1a405a98c9195bef418d6d7
|
|
BLAKE2b-256 checksum How to use checksums |
08b46855575abc78774aadd09cc55821a2c6a543cebad7444f9013ab5b90c6e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / pk3-0.1.6-py3-none-any.whl
| Download URL | pk3-0.1.6-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
54d2b55a152a7830648e016177366cc451b06340411485a78c2056f0f92de496
|
|
BLAKE2b-256 checksum How to use checksums |
722e8f44bc8daf5b07dd1343c8f75e10bfb8d881e6733d83b1c65e8627de4e0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Security for pk3 0.1.6
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.