Skip to main content

Python implementation of the Hushline command contract.

Project description

Hushline Python Core

A standalone, stdlib-only Python implementation of the Hushline command contract. It is one of four independent cores; it imports nothing from the Go, Rust, or Node cores and ships with no third-party runtime dependencies, so it drops into any prompt chain without baggage.

Install

python -m pip install --upgrade hushline
hushline version

The distribution installs two console scripts that share one entry point:

hushline mute -- git status
hushline-python-core version

Command surface

  • hushline mute [--raw] [--pipe-errors=BOOL] [--max-lines N] [--max-width N] [--timeout N] -- <command> ...
  • hushline manifest init [--global|--local]
  • hushline manifest show
  • hushline permit [status|allow] [path]
  • hushline version

Behaviour matches the Go reference core exactly: identical default profile, config merge order, redaction, ANSI stripping, line truncation, and exit codes.

Build locally

cd cores/core-python
python -m pip install --upgrade build twine
python -m build

The built wheel contains the hushline_core package; verify before publishing:

python -c "import zipfile,glob; print(zipfile.ZipFile(glob.glob('dist/*.whl')[0]).namelist())"

Test

cd cores/core-python
python -m pytest --cov=hushline_core --cov-report=term-missing

Publish

A python-core-v* GitHub release triggers the publish-python-core workflow, which builds from cores/core-python and uploads to PyPI using the PYPI_API_TOKEN repository secret.

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

hushline-0.1.5.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

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

hushline-0.1.5-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file hushline-0.1.5.tar.gz.

File metadata

  • Download URL: hushline-0.1.5.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for hushline-0.1.5.tar.gz
Algorithm Hash digest
SHA256 accfa75a181a5c90973d42dde24c88a7a13aea9014d65111c1c342a262788dc5
MD5 eeea0556ac2fe10bb8062290dd6e7427
BLAKE2b-256 5a7f4ddef8c93312bf89ccbe4c79fce1d62b1265faecadec3a6929a0082f0c6d

See more details on using hashes here.

File details

Details for the file hushline-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: hushline-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for hushline-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2c6527ca5ee9a11bb091b6e094f6542d4fb06efe304322a870ac448033dc34e7
MD5 cdc9aa268b70516659572b1b53bccd81
BLAKE2b-256 b53f80e5734e05c7b6e2a80c0e55829c4f8d74d215614ae38d25d438b872bbe3

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