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
Release files for hello-pypi-finneganrainier 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 | |
|---|---|---|---|
| hello_pypi_finneganrainier-0.1.0.tar.gz | 2.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hello_pypi_finneganrainier-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.2 kB
Release files / hello_pypi_finneganrainier-0.1.0.tar.gz
| Download URL | hello_pypi_finneganrainier-0.1.0.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
08d26adc7be1ed7feb0f2424842cb5cc0e860a3ed1f155bb24c100f32c3a28ee
|
|
BLAKE2b-256 checksum How to use checksums |
9a15899af515d7d306473c634b17db9cc8fac9dce67dc13e8dbe8e7919580878
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Release files / hello_pypi_finneganrainier-0.1.0-py3-none-any.whl
| Download URL | hello_pypi_finneganrainier-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ec1df265aede5682225beddeef187a96e9c289cd5908a8c67c249fb54e2aa3e3
|
|
BLAKE2b-256 checksum How to use checksums |
4c2ca6a44a60512f6b68a6fd8a8a36ed0e08ec1e8f2bd9ceb482d786e8cb2825
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|