Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

Python high level configuration library

Project description


**pymlconf** (Python YAML Configuration Library) helps to easily manage and access to your application configurations which was already Written in [YAML]( language.

It can merge two or more configuration files according their names and automatically treat file-names as namespaces, or simply merge several parts of configuration(YAML-string or Python-dict) on arbitrary config node. for more informations see [documentations](

Config file

# filename: config.yaml
root_dir: %(here)s

Python code:

# filename:
from pymlconf import ConfigManager

name: MyApp
addr: %(hostname)s
port: %(port)s
- english
- {language: persian, country: iran}

logfile: /var/log/myapp.log

cfg = ConfigManager(init_value=config_str, context=dict(hostname='', port=8080))

print cfg.logfile

# --------- Prints:
# MyApp
# english
# iran
# /var/log/myapp.log

#### Deferred(Proxied)

# module
from pymlconf import DeferredConfigManager
settings = DeferredConfigManager()

from configuration import settings
def serve_request():
return settings.message

# in application startup
from configuration import settings
# the signature is the same as the `ConfigManager.__init__`

#### Installation

Latest stable version:

$ pip install pymlconf
# or
$ easy_install pymlconf

Development version:

$ pip install

From source:

$ cd source_dir
$ python install

Manually download it from [pypi](

#### Unit-Tests

Install nose and change current directory to project's dir:

$ pip install nose
$ cd path/to/pymlconf

Running tests:

$ nosetests


$ python test

#### Syntax Reference

You can find the canonical syntax reference on [PyYAML]( site

#### Documentation

* [] (
* [] (

#### Change Log

- [0.5.1] Encoding option python2 compatibility
- [0.5.0] Adding encoding option
- [0.4.0] Adding DeferredConfigManager

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pymlconf-0.5.3-py3-none-any.whl (18.7 kB) Copy SHA256 hash SHA256 Wheel 3.5 Aug 8, 2016
pymlconf-0.5.3.tar.gz (10.8 kB) Copy SHA256 hash SHA256 Source None Aug 8, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page