Update and manage other programs/system config files safely
Project description
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9e0d9612b234c768ef7ddb2a512fbddb19a33cd78b84d6c82ef6d76ff9bcf4d
|
|
| MD5 |
f12849f0e6180a8059ac12288026289c
|
|
| BLAKE2b-256 |
643a69edd1986c5ca37d7a7b74b32b9a149e143c3d3c41ea63fbe9bb12d21ae7
|
Provenance
The following attestation bundles were made for harangued-0.11.tar.gz:
Publisher:
release.yml on GammaScience/harangued
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
harangued-0.11.tar.gz -
Subject digest:
b9e0d9612b234c768ef7ddb2a512fbddb19a33cd78b84d6c82ef6d76ff9bcf4d - Sigstore transparency entry: 152211215
- Sigstore integration time:
-
Permalink:
GammaScience/harangued@b403821881d9995a81883ad914b46d0449809d58 -
Branch / Tag:
refs/tags/0.11 - Owner: https://github.com/GammaScience
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b403821881d9995a81883ad914b46d0449809d58 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4dc035c70f674cd8f41a16cbba2fac9a11157592f01f4e32f6d16ff412ec5744
|
|
| MD5 |
2a169c761cd6cfeda4f05e50feaad8fe
|
|
| BLAKE2b-256 |
09bc39c2702d7abceb43730ec7e5fb8da818e7b2c99164187802541e05404216
|
Provenance
The following attestation bundles were made for harangued-0.11-py3-none-any.whl:
Publisher:
release.yml on GammaScience/harangued
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
harangued-0.11-py3-none-any.whl -
Subject digest:
4dc035c70f674cd8f41a16cbba2fac9a11157592f01f4e32f6d16ff412ec5744 - Sigstore transparency entry: 152211219
- Sigstore integration time:
-
Permalink:
GammaScience/harangued@b403821881d9995a81883ad914b46d0449809d58 -
Branch / Tag:
refs/tags/0.11 - Owner: https://github.com/GammaScience
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b403821881d9995a81883ad914b46d0449809d58 -
Trigger Event:
release
-
Statement type: