Skip to content

jesseops/yact

Repository files navigation

YACT - Yet Another Config tool
Simple configuration handling for Python applications.
------------------------------------------------------
target

https://travis-ci.org/jesseops/yact

target

https://coveralls.io/github/jesseops/yact?branch=master

image

alt

Join the chat at https://gitter.im/yact-py/Lobby

target

https://gitter.im/yact-py/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge

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

About

Simple configuration handling for Python applications.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages