Skip to main content

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

  1. Install deps:
python -m pip install --upgrade build requests
  1. Initialize a simple project:
python cli.py init --name mypkg --version 0.1.0 --description "My package"
  1. 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 wrapper
  • compiler.py: helper functions for building, inspecting and uploading
  • main.py: earlier scaffold (kept for compatibility)

Publish to PyPI

  1. Pick a unique package name (update setup.cfg or pyproject.toml name/version).
  2. Install build tools and dependencies:
python -m pip install --upgrade build requests
  1. Build distributions:
python -m build
  1. 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 upload command 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)

Source distribution for hh20-pypi-helper 0.1.0
File Size Uploaded
hh20_pypi_helper-0.1.0.tar.gz 8.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hh20-pypi-helper 0.1.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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