Skip to main content

A simple package for easy work with cfg files

Project description

Let's work with a config files easy!


Fast example:


  - host:
    login: login1
    password: password1
  - host:
    login: login2
    password: password2
  - host:
    login: login3
    password: password3
env: prod
>>> from easycfg import Config
>>> cfg = Config('config.yml')
>>> cfg.servers
[{'host': '', 'login': 'login1', 'password': 'password1'}, {'host': '', 'login': 'login2', 'password': 'password2'}, {'host': '', 'login': 'login3', 'password':
>>> cfg.servers[2]
{'host': '', 'login': 'login3', 'password': 'password3'}
>>> cfg.servers[:2]
[{'host': '', 'login': 'login1', 'password': 'password1'}, {'host': '', 'login': 'login2', 'password': 'password2'}]
>>> cfg.servers.login
['login1', 'login2', 'login3']

easycfg supports json and yaml formats now

Project details

Download files

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

Files for easycfg, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size easycfg-1.0.2-py3-none-any.whl (3.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size easycfg-1.0.2.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page