HH20 PyPI Helper
Minimal helper to build and experimentally upload Python packages without
twine. Use at your own risk — uploading directly to the legacy PyPI endpoint
is supported but twine is still recommended for production.
Quick start
- Install deps:
python -m pip install --upgrade build requests
- Initialize a simple project:
python cli.py init --name mypkg --version 0.1.0 --description "My package"
- Build and upload to TestPyPI:
python cli.py build
python cli.py upload --repo testpypi --token <TEST_PYPI_TOKEN>
# or build+publish
python cli.py publish --repo testpypi --token <TEST_PYPI_TOKEN>
Files
cli.py: friendly command-line wrappercompiler.py: helper functions for building, inspecting and uploadingmain.py: earlier scaffold (kept for compatibility)
Publish to PyPI
- Pick a unique package name (update
setup.cfgorpyproject.tomlname/version). - Install build tools and dependencies:
python -m pip install --upgrade build requests
- Build distributions:
python -m build
- Upload using a PyPI API token (recommended). Use TestPyPI first.
Linux / macOS
export PYPI_TOKEN="pypi-..."
python cli.py upload --repo testpypi --token "$PYPI_TOKEN"
Windows PowerShell
$env:PYPI_TOKEN = "pypi-..."
python cli.py upload --repo testpypi --token $env:PYPI_TOKEN
Replace --repo testpypi with --repo pypi to publish to the real PyPI. After a successful upload you can install with:
python -m pip install hh20-pypi-helper
Notes
- The
uploadcommand uses the legacy PyPI upload endpoint with HTTP Basic auth. When using an API token, pass username__token__(the CLI does this automatically if you provide--token). - Always test against TestPyPI before publishing to the real PyPI.
- Ensure your package name is unique on PyPI before publishing.
Release files for hh20-pypi-helper 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hh20_pypi_helper-0.1.0.tar.gz | 8.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hh20_pypi_helper-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.0 kB
Release files / hh20_pypi_helper-0.1.0.tar.gz
| Download URL | hh20_pypi_helper-0.1.0.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ff7144bf249d04f679cca0d11bd0cd3be31bf63ae00fb14ed31440b93649bf2f
|
|
BLAKE2b-256 checksum How to use checksums |
3ce7331a6d4658309643c9439ef42e2244a679f17f539e792b1176ff41ab00ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Release files / hh20_pypi_helper-0.1.0-py3-none-any.whl
| Download URL | hh20_pypi_helper-0.1.0-py3-none-any.whl |
|---|---|
| Size | 14.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d1ca3f9fc32bba37114266ebf7be9e2c99cccea8ab9c1507f579038054c57280
|
|
BLAKE2b-256 checksum How to use checksums |
5f060a826030749e1dcec70afbc3db93b0cb83ea7b4b9e3bbd4e934bcc7b51f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|