Skip to main content

npm version-like tool for Python projects

Project description

pybumpit

A CLI tool that mimics npm version behavior for Python projects.

Features

  • Read/write version from pyproject.toml
  • Bump version (patch/minor/major)
  • Create git commit and tag automatically
  • Interactive mode with beautiful prompts
  • Dirty working directory check (like npm)
  • Zero configuration required

Installation

pip install pybumpit

Or with uv:

uv add pybumpit

Usage

Interactive Mode

pybumpit

Shows a prompt to select version type (patch/minor/major).

CLI Mode

pybumpit patch     # 0.1.0 -> 0.1.1
pybumpit minor     # 0.1.0 -> 0.2.0
pybumpit major     # 0.1.0 -> 1.0.0

Options

  • -f, --force - Allow bump with uncommitted changes
pybumpit patch --force

Behavior

Feature Description
Dirty check Fails if uncommitted/untracked files exist
Commit message v{version} (e.g., v1.0.1)
Tag format v{version} (annotated tag)
Without git Just updates pyproject.toml

Requirements

  • Python >= 3.12
  • pyproject.toml with [project] section containing version

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

pybumpit-1.0.2.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

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

pybumpit-1.0.2-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file pybumpit-1.0.2.tar.gz.

File metadata

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

File hashes

Hashes for pybumpit-1.0.2.tar.gz
Algorithm Hash digest
SHA256 cc164d99204a198a4d2ebe9f9f0a32ef169d2e7ca83c5984f9e49bbfac7254e2
MD5 3ed5fb51856b2e3ff8fe77ebbf441120
BLAKE2b-256 e7058fdbd51030113b91163dfbb341f0e199f7fc6f79e6ab0a296519fcf55ab3

See more details on using hashes here.

Provenance

The following attestation bundles were made for pybumpit-1.0.2.tar.gz:

Publisher: publish.yml on oharu121/bump-version-py

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

File details

Details for the file pybumpit-1.0.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for pybumpit-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 114dae4606e9a7fe93b39b039484731b070b116afa23e5b4505538c7ed4fb2ae
MD5 fbf99e61573cfc3ea353cfdd5eb62a09
BLAKE2b-256 2a26192ea7a205d4d973f920954b1adb806da5aea2bfd16545554f3f5e5b9860

See more details on using hashes here.

Provenance

The following attestation bundles were made for pybumpit-1.0.2-py3-none-any.whl:

Publisher: publish.yml on oharu121/bump-version-py

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