This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

“manipulations and lies”

🚯 About

Manipulate simple configuration files in a, relatively, intelligent fashion.

Given a simple configuration file, cofman.lib provides a means to edit the file using a dictionary-like interface:

import cofman.lib

config = cofman.lib.File("/etc/sysctl.conf")
>>> config['kern.sysv.shmmin']
# given permission =)
>>> config['kern.sysv.shmmin'] = "100"

Every dictionary operation reads from the file, so using this as a cache is not appropriate. Usually, only the cofman.lib.File.update and cofman.lib.File.getset methods should be used to interact with the configuration. The other operations are provided for convenience.

By default, the configuration file is assumed to use the following delimiters:

config = {
        'quote': "'",
        'quote_escape': "''",
        'comment': "#",
        'assignment': '=',
        'record': '\n',


The value side of the settings are unconditionally quoted when modified.


cofman was not written with performance in mind. It is designed for common case editing that does not occur often enough to warrant heavy optimizations.

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
cofman-0.1.0.tar.gz (9.5 kB) Copy SHA256 Checksum SHA256 Source Aug 28, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting