Skip to content
/ yact Public

Simple configuration handling for Python applications.

Notifications You must be signed in to change notification settings

jesseops/yact

Folders and files

NameName
Last commit message
Last commit date
Oct 31, 2017
Oct 17, 2017
Oct 17, 2019
Oct 17, 2019
Oct 17, 2019
Oct 17, 2017
Oct 17, 2017
Mar 19, 2016
Oct 17, 2017
Jan 13, 2017
Oct 26, 2016
Oct 31, 2017

Repository files navigation

YACT - Yet Another Config tool

Simple configuration handling for Python applications.

https://travis-ci.org/jesseops/yact.svg?branch=master https://coveralls.io/repos/github/jesseops/yact/badge.svg?branch=master Join the chat at https://gitter.im/yact-py/Lobby

YACT is a simple, lightweight, and flexible configuration package for Python applications. It's designed to be as easy as possible to setup configuration for your project without needing to jump through hoops.

Examples

Basic usage:

>>> import yact
>>> config = yact.from_file('sample.yaml')
>>> assert isinstance(config, yact.Config)
True

Modifying and saving:

>>> config.set('foo', 'bar')
>>> print(config['foo'])
'bar'
>>> config.save()

Dot notation for nested configs:

>>> config.set('this.is.nested', True)
>>> print(config.get('this')['is']['nested'])
True