Skip to main content

A simple hello world example

Project description

h4-hello

PyPI - Version PyPI - Python Version Last Commit PyPI - License

Table of Contents

A practice project for publishing Python packages to PyPI with PEP740 digital signatures using uv as the build backend and package manager. Contains only a simple hello() function that returns "Hello!".

Installation

pip install h4-hello

Usage

CLI

$ h4-hello
Hello!

$ h4-hello --version
h4-hello v0.1.12b2

As a Library

from h4_hello import hello

print(hello())  # -> Hello!

Development

This project uses uv for package management and poethepoet for task running.

Setup

# Install dependencies
uv sync

# Run tests
poe test

# Lint and type check
poe lint

# Format code
poe format

# Build package
poe build

Available Tasks

Run poe to see all available tasks defined in poe_tasks.toml:

  • poe test - Run pytest tests
  • poe check - Run ruff linting
  • poe mypy - Run type checking
  • poe format - Auto-format code
  • poe build - Full build with checks and smoke tests
  • poe smoke-test - Test built packages in isolation
  • poe lint - Run all linters (ruff, mypy, pep440check, pyproject validation)

Publishing

This project uses GitHub Actions with Trusted Publishing:

  • TestPyPI: Tag with test-* (e.g., test-0.1.11)
  • PyPI: Tag with v* semver (e.g., v0.1.11)

Both deployments use OIDC authentication with Sigstore attestations (PEP740).

License

h4-hello is distributed under the terms of the MIT license.

Note

詳細な日本語ドキュメントは NOTE-ja.md を参照してください。

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

h4_hello-0.1.13.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

h4_hello-0.1.13-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file h4_hello-0.1.13.tar.gz.

File metadata

  • Download URL: h4_hello-0.1.13.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for h4_hello-0.1.13.tar.gz
Algorithm Hash digest
SHA256 d7e378ee1ea9fd2f7ddd51dd954dfbb937614969911911608c5d8112cbc7a04f
MD5 abf3aed83120c35e3287dc24a2ce03f8
BLAKE2b-256 8bec9e71cba4e717b542780af0322662471e90fa64e9cc0b49ffd848929445e8

See more details on using hashes here.

Provenance

The following attestation bundles were made for h4_hello-0.1.13.tar.gz:

Publisher: publish-pypi.yml on heiwa4126/h4-hello

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file h4_hello-0.1.13-py3-none-any.whl.

File metadata

  • Download URL: h4_hello-0.1.13-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for h4_hello-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 0c58c865860999f3808ea413b6718f7253093ef82f93edcb796cf9aadf9bd6ba
MD5 0e04a1f9c65b14d0013497e11d3ccf1a
BLAKE2b-256 4390e5fa8d0d56ccf5be59203d376aac303eb6c88fe4fd21fe6a36981dbde727

See more details on using hashes here.

Provenance

The following attestation bundles were made for h4_hello-0.1.13-py3-none-any.whl:

Publisher: publish-pypi.yml on heiwa4126/h4-hello

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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