Socket
Socket
Sign inDemoInstall

yact

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yact

Yet Another Config Tool


Maintainers
1

============ YACT - Yet Another Config tool

Simple configuration handling for Python applications.

.. image :: https://travis-ci.org/dreadpirate15/yact.svg?branch=master :target: https://travis-ci.org/dreadpirate15/yact

.. image :: https://coveralls.io/repos/github/dreadpirate15/yact/badge.svg?branch=master :target: https://coveralls.io/github/dreadpirate15/yact?branch=master

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.conf')
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

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc