Skip to main content

pep440check

PyPI - Version PyPI - Python Version Last Commit License: MIT

A utility to check if version strings in pyproject.toml's project.version are PEP 440 compliant and suggest normalized forms if they are not. Optionally, it can rewrite the file with the normalized version.

Basic usage

pep440check [-h] [-w] [-V] [path]
  • path: path to pyproject.toml (defaults to current directory's pyproject.toml if omitted)
  • -w, --write: write normalized version back to file
  • -h, --help: show help message and exit
  • -V, --version: show program's version number and exit

Exit codes

  • 0: Version is already PEP 440 compliant (displays "OK")
  • 1: Version needs normalization or error occurred

Output examples

When version is already normalized:

$ pep440check
Target: /path/to/pyproject.toml
OK: 0.0.1a1

When version needs normalization:

$ pep440check
Target: /path/to/pyproject.toml
Original version: 1.0.0-rc1
Suggested normalized version: 1.0.0rc1

Writing normalized version:

$ pep440check -w
Target: /path/to/pyproject.toml
Normalized version: 1.0.0-rc1 -> 1.0.0rc1

Installation and Usage

uv add pep440check --dev
uv run pep440check [args]

or

uvx pep440check [args]

or

uv tool install pep440check
pep440check [args]

Development

git clone https://github.com/heiwa4126/pep440check.git
cd pep440check
uv sync

Run tests:

uv run poe test

Run linter and formatter:

uv run poe check

Type checking:

uv run poe mypy

Build package:

uv run poe build

Release files for pep440check 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pep440check 0.0.4
File Size Uploaded
pep440check-0.0.4.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pep440check 0.0.4
File Interpreter ABI Platform
pep440check-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 9.6 kB

Release files / pep440check-0.0.4.tar.gz

Download URL pep440check-0.0.4.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f9661e750c64baa4a989e35e23f269377d0f300b80ef8bd7d5b5c8139a460145
BLAKE2b-256 checksum
How to use checksums
8ce9f31cebd8d99adabbbb912a92c493db3158553cd00fb8fae31816e9fe8fa9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 19, 2026.

Transparency log

Release files / pep440check-0.0.4-py3-none-any.whl

Download URL pep440check-0.0.4-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2dcf60e96d691edb3e476d2220eacd2b05d10bc94bfba8e0dec4757a15f75fd8
BLAKE2b-256 checksum
How to use checksums
9b35d04c5f00b6ec4332d32b0b9dfc6c23ccce798c41081fc34711c8adceb4f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 19, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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