Hew is a specification and reference implementations to compile repository changelogs into release notes and other forms of documentation.
Project description
Hew (Python implementation)
The Hew changelog specification reference implementation for the Python language.
Getting Started
Pending release to distribution channels like PyPi, you may run the program locally with uv.
A nix devshell is present if you'd prefer to enter that managed environment with nix develop ..
Without nix, you will also need to obtain and install Pandoc to use the formatting translation features of hew.
Usage
hew Python supports two primary modes of operation: as a native library and as a command-line utility.
CLI
Use the executable command line interface if you'd like to use the Python program as a utility and work primarily with the output of the parsing results, usually JSON.
uv run hew --help
Consult the help text to learn about supported flags and their effects.
Library
After installing hew into a Python environment, instantiate the Hewer class with the necessary constructor arguments:
Hewer(...)
Validation
Clone with the submodule and use its spec/repo-gen.sh script along with the sibling repo-spec.json file to generate a sample repository with Hew-compliant changelogs and compare the results with the expected JSON results.
The ./scripts/validate.py file is available to facilitate this process.
uv run python scripts/validate.py spec/repo-gen.sh spec/repo-spec.json
This will:
- Invoke
repo-gen.shin a temporary directory - Run Hew inside the directory to generate a changelog manifest
- Compare it (excluding unique fields like timestamps) against the given specification JSON
- Ensure the results match the specification
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 hew-0.6.0.tar.gz.
File metadata
- Download URL: hew-0.6.0.tar.gz
- Upload date:
- Size: 28.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df1bca22e719f19d96c11336d6a7a72fd93123401eca7b56e5739baa01832d66
|
|
| MD5 |
05da8b680f0f2404d51aa8fb515a99e1
|
|
| BLAKE2b-256 |
214a150f372f546ae3fffa289fc396d4f86ef56897711be4b35e9cbe759a03e4
|
File details
Details for the file hew-0.6.0-py3-none-any.whl.
File metadata
- Download URL: hew-0.6.0-py3-none-any.whl
- Upload date:
- Size: 23.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e36b4a04cc83db568b9296e93a08be085ed7f6d4cdb2b18a6ccb62d2cf225d0
|
|
| MD5 |
ed362d3ec70dd7ad540cf9baad611e0b
|
|
| BLAKE2b-256 |
ccc8df60d987b5975499f5a9350cf84cb1b285de3079e593451f04a6fa9b85f4
|