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.tomlwith[project]section containingversion
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc164d99204a198a4d2ebe9f9f0a32ef169d2e7ca83c5984f9e49bbfac7254e2
|
|
| MD5 |
3ed5fb51856b2e3ff8fe77ebbf441120
|
|
| BLAKE2b-256 |
e7058fdbd51030113b91163dfbb341f0e199f7fc6f79e6ab0a296519fcf55ab3
|
Provenance
The following attestation bundles were made for pybumpit-1.0.2.tar.gz:
Publisher:
publish.yml on oharu121/bump-version-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pybumpit-1.0.2.tar.gz -
Subject digest:
cc164d99204a198a4d2ebe9f9f0a32ef169d2e7ca83c5984f9e49bbfac7254e2 - Sigstore transparency entry: 853923599
- Sigstore integration time:
-
Permalink:
oharu121/bump-version-py@836aa03737b50bd517308c9584682a671b6a1dde -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/oharu121
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@836aa03737b50bd517308c9584682a671b6a1dde -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
114dae4606e9a7fe93b39b039484731b070b116afa23e5b4505538c7ed4fb2ae
|
|
| MD5 |
fbf99e61573cfc3ea353cfdd5eb62a09
|
|
| BLAKE2b-256 |
2a26192ea7a205d4d973f920954b1adb806da5aea2bfd16545554f3f5e5b9860
|
Provenance
The following attestation bundles were made for pybumpit-1.0.2-py3-none-any.whl:
Publisher:
publish.yml on oharu121/bump-version-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pybumpit-1.0.2-py3-none-any.whl -
Subject digest:
114dae4606e9a7fe93b39b039484731b070b116afa23e5b4505538c7ed4fb2ae - Sigstore transparency entry: 853923600
- Sigstore integration time:
-
Permalink:
oharu121/bump-version-py@836aa03737b50bd517308c9584682a671b6a1dde -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/oharu121
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@836aa03737b50bd517308c9584682a671b6a1dde -
Trigger Event:
release
-
Statement type: