This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Python configuration library

Project Description
lynx
====

Simple python configuration library and format. The format is very similar to YAML with the enhancment of sections.

##Installation

Install the ``lynx`` package with [pip](<https://pypi.python.org/pypi/lynx>):

pip install lynx





##Example use

Configuration example:
```
# section example
section {
# fields
field1: myfield1 value
field2: Another field value

# lists
mylist: [5, mystr, value, 8]
}


# Another section
section2 {

# sub section example
my_section {
name: lynx
}

# sections can have same name.
my_section {
# multiline fields
Library description:|
Lynx is a python
Configuration library
supporting many features
including multiline fields!$%$!%#@
Yay!

myfloat: 5.3
}
}

```

Load the configuration:
```
>>> import lynx

# Load file
>>> with open("config.conf", "r") as fp:
... config = lynx.load(fp)

# Get the first section
>>> config[0].name()
'section'
>>> config[0].fields()
{'field2': 'Another field value', 'field1': 'myfield1 value', 'mylist': [5, 'mystr', 'value', 8]}

# Get sub sections
>>> config[1].sub_sections()
[<lynx.Section object at 0x7f4ab28dfdd0>, <lynx.Section object at 0x7f4ab28dfe10>]
>>> config[1].sub_sections()[0].name()
'my_section'
```



## Features

Features include:
* Sections
* Sub sections
* Lists
* Multiline fields
* Load & dump
* Types:
* Strings
* Integers
* Floats
Release History

Release History

This version
History Node

0.3.1

History Node

0.3

History Node

0.2.6

History Node

0.2.5

History Node

0.2.4

History Node

0.2.3

History Node

0.2.2

History Node

0.2.1

History Node

0.2

History Node

0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
lynx-0.3.1.tar.gz (5.6 kB) Copy SHA256 Checksum SHA256 Source Nov 28, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting