Skip to main content

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.sh in 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hew-0.6.0.tar.gz (28.7 kB view details)

Uploaded Source

Built Distribution

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

hew-0.6.0-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

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

Hashes for hew-0.6.0.tar.gz
Algorithm Hash digest
SHA256 df1bca22e719f19d96c11336d6a7a72fd93123401eca7b56e5739baa01832d66
MD5 05da8b680f0f2404d51aa8fb515a99e1
BLAKE2b-256 214a150f372f546ae3fffa289fc396d4f86ef56897711be4b35e9cbe759a03e4

See more details on using hashes here.

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

Hashes for hew-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8e36b4a04cc83db568b9296e93a08be085ed7f6d4cdb2b18a6ccb62d2cf225d0
MD5 ed362d3ec70dd7ad540cf9baad611e0b
BLAKE2b-256 ccc8df60d987b5975499f5a9350cf84cb1b285de3079e593451f04a6fa9b85f4

See more details on using hashes here.

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