Skip to main content

A minimal example package for publishing to PyPI

Project description

hello-pypi

A minimal example Python package for learning how to build and publish to PyPI.

Install

pip install hello-pypi

Usage

from hello_pypi import greet

print(greet("PyPI"))
# Hello, PyPI!

Or use the CLI:

hello-pypi Alice
# Hello, Alice!

Development

# Create a virtual environment
python -m venv .venv
source .venv/bin/activate

# Install in editable mode with dev tools
pip install -e ".[dev]"

# Run tests
pytest

Build and publish (local, no GitHub needed)

pip install build twine
python -m build
twine check dist/*

# Test PyPI (recommended first)
twine upload --repository-url https://test.pypi.org/legacy/ dist/*

# Production PyPI
twine upload dist/*

When prompted for credentials:

  • Username: __token__
  • Password: your PyPI API token (starts with pypi-)

License

MIT

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

hello_pypi_finneganrainier-0.1.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

hello_pypi_finneganrainier-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for hello_pypi_finneganrainier-0.1.0.tar.gz
Algorithm Hash digest
SHA256 08d26adc7be1ed7feb0f2424842cb5cc0e860a3ed1f155bb24c100f32c3a28ee
MD5 de5b574fbc14790f0dd812f421e2b176
BLAKE2b-256 9a15899af515d7d306473c634b17db9cc8fac9dce67dc13e8dbe8e7919580878

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hello_pypi_finneganrainier-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec1df265aede5682225beddeef187a96e9c289cd5908a8c67c249fb54e2aa3e3
MD5 02ad7d516df4ee44f694a1bdaea3ec61
BLAKE2b-256 4c2ca6a44a60512f6b68a6fd8a8a36ed0e08ec1e8f2bd9ceb482d786e8cb2825

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