A conventional commits validation library
Project description
mi4-conventional-commits-lib
A Python library for validating conventional commits.
Installation
pip install .
Usage
from mi4_conventional_commits_lib import parseCommit, isCommitValid, buildCommit
# Validate a commit
result = validateCommit("feat: new feature (#123)")
print(result) # True
# Parse a commit
parsed = parseCommit("fix(auth)!: fix bug (#456)")
print(parsed) # {'type': 'fix', 'scope': 'auth', ...}
# Build a commit
commit_obj = {
"type": "feat",
"scope": "api",
"breakChange": True,
"description": "new API",
"issue": 789
}
built = buildCommit(commit_obj)
print(built) # "feat(api)!: new API (#789)"
Available Functions
parseCommit: parseCommit functionisCommitValid: isCommitValid functionbuildCommit: buildCommit function
License
MIT License
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 mi4_conventional_commits_lib-0.0.7.tar.gz.
File metadata
- Download URL: mi4_conventional_commits_lib-0.0.7.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
369f33b59224a93bc4b947774e6a610da19725524f1ebda8d521321da352b597
|
|
| MD5 |
f2afa0f74e511a671a5e187c4ffbea4c
|
|
| BLAKE2b-256 |
2c19f1eca6a6d1249ca661a6a7967323dddc591af81f76a188106e78b5101ab4
|
File details
Details for the file mi4_conventional_commits_lib-0.0.7-py3-none-any.whl.
File metadata
- Download URL: mi4_conventional_commits_lib-0.0.7-py3-none-any.whl
- Upload date:
- Size: 1.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a447b6b8e7c40d1fbe54fe91f7be1bd22095abf66bad1217e3b148005adbc90
|
|
| MD5 |
a155abea17b64d36e5ec027fede8002f
|
|
| BLAKE2b-256 |
926cfcf893739808f24ec2258e3b9690c12354f3725b4d2914c3b08f16c9a69a
|