Skip to main content

Helper to build and (experimentally) upload packages to PyPI without twine

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hh20_pypi_helper-0.1.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hh20_pypi_helper-0.1.0-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file hh20_pypi_helper-0.1.0.tar.gz.

File metadata

  • Download URL: hh20_pypi_helper-0.1.0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for hh20_pypi_helper-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ff7144bf249d04f679cca0d11bd0cd3be31bf63ae00fb14ed31440b93649bf2f
MD5 060b573c829763e2d3152b6adbaca129
BLAKE2b-256 3ce7331a6d4658309643c9439ef42e2244a679f17f539e792b1176ff41ab00ce

See more details on using hashes here.

File details

Details for the file hh20_pypi_helper-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for hh20_pypi_helper-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d1ca3f9fc32bba37114266ebf7be9e2c99cccea8ab9c1507f579038054c57280
MD5 93b1e9ffff6dada973b91874a11b3e4a
BLAKE2b-256 5f060a826030749e1dcec70afbc3db93b0cb83ea7b4b9e3bbd4e934bcc7b51f9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page