skip to navigation
skip to content

conf 0.0.37

config class

Latest Version: 0.0.39

.. README generated with readmemako.py (github.com/russianidiot/readme-mako.py) and .README dotfiles (github.com/russianidiot-dotfiles/.README)
.. image:: https://img.shields.io/badge/Language-Python-blue.svg?style=plastic
:target: none
.. image:: https://img.shields.io/pypi/pyversions/conf.svg
:target: https://pypi.org/pypi/conf
.. image:: https://img.shields.io/pypi/v/conf.svg
:target: https://pypi.org/pypi/conf
|
.. image:: https://api.codacy.com/project/badge/Grade/feac0d86116747e08402401e47147aca
:target: https://www.codacy.com/app/russianidiot/conf-py
.. image:: https://codeclimate.com/github/russianidiot/conf.py/badges/gpa.svg
:target: https://codeclimate.com/github/russianidiot/conf.py
.. image:: https://landscape.io/github/russianidiot/conf.py/master/landscape.svg?style=flat
:target: https://landscape.io/github/russianidiot/conf.py
.. image:: https://scrutinizer-ci.com/g/russianidiot/conf.py/badges/quality-score.png?b=master
:target: https://scrutinizer-ci.com/g/russianidiot/conf.py/
|
.. image:: https://scrutinizer-ci.com/g/russianidiot/conf.py/badges/build.png?b=master
:target: https://scrutinizer-ci.com/g/russianidiot/conf.py/
.. image:: https://semaphoreci.com/api/v1/russianidiot/conf-py/branches/master/badge.svg
:target: https://semaphoreci.com/russianidiot/conf-py
.. image:: https://api.travis-ci.org/russianidiot/conf.py.svg?branch=master
:target: https://travis-ci.org/russianidiot/conf.py/
.. image:: https://app.wercker.com/status/70708af5252b5b1eb682233594e3085c/s/master
:target: https://app.wercker.com/russianidiot/conf.py
Install
```````
.. code:: bash
`[sudo] pip install conf`
Usage
`````
.. code:: python
>>> from conf import Conf
>>> conf = Conf(path)
Examples
````````
.. code:: python
>>> conf = Conf("~/.pypirc")
>>> conf.sections
[...]
>>> conf.pypi.username
'anon ^-^'
>>> conf.pypi.password
'qwerty xD'
Feedback |github_follow| |github_issues|
.. |github_follow| image:: https://img.shields.io/github/followers/russianidiot.svg?style=social&label=Follow
:target: https://github.com/russianidiot
.. |github_issues| image:: https://img.shields.io/github/issues/russianidiot/conf.py.svg
:target: https://github.com/russianidiot/conf.py/issues  
File Type Py Version Uploaded on Size
conf-0.0.37.tar.gz (md5) Source 2017-12-07 3KB