Skip to main content

Update and manage other programs/system config files safely

Project description

Python package tests

Harangued is a small library for managing adding or removing additional lines to standard (and normally system) configuration files.

Harangued provides a context manager which can be used to manage your app additions to a configuration file which is common with other apps, including other apps using Harangued, or human editors and make changes to those config files in their own guarded sections.

Harangued can be used like this:

with Haranguer("/path/to/file") as my_lines:
    for line in my_lines.data:
       # Verify line
       pass
    my_lines.data.append("extra line")

This will result in a section being added to the config file like this.

Some config line
################## begin Block - Generated by Haranguer ##################
an existing config line
extra line
################## end   Block - Generated by Haranguer ##################

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

harangued-0.11.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

harangued-0.11-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file harangued-0.11.tar.gz.

File metadata

  • Download URL: harangued-0.11.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for harangued-0.11.tar.gz
Algorithm Hash digest
SHA256 b9e0d9612b234c768ef7ddb2a512fbddb19a33cd78b84d6c82ef6d76ff9bcf4d
MD5 f12849f0e6180a8059ac12288026289c
BLAKE2b-256 643a69edd1986c5ca37d7a7b74b32b9a149e143c3d3c41ea63fbe9bb12d21ae7

See more details on using hashes here.

Provenance

The following attestation bundles were made for harangued-0.11.tar.gz:

Publisher: release.yml on GammaScience/harangued

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file harangued-0.11-py3-none-any.whl.

File metadata

  • Download URL: harangued-0.11-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for harangued-0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 4dc035c70f674cd8f41a16cbba2fac9a11157592f01f4e32f6d16ff412ec5744
MD5 2a169c761cd6cfeda4f05e50feaad8fe
BLAKE2b-256 09bc39c2702d7abceb43730ec7e5fb8da818e7b2c99164187802541e05404216

See more details on using hashes here.

Provenance

The following attestation bundles were made for harangued-0.11-py3-none-any.whl:

Publisher: release.yml on GammaScience/harangued

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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