Skip to content

GammaScience/harangued

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Harangued

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 ##################

About

Harangued is a contextmanager to aid in modifying common configuration files.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Packages

 
 
 

Contributors

Languages