Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
neon
tests More tests and reorganization. May 14, 2016
.gitignore
.travis.yml
LICENSE
MANIFEST.in Added MANIFEST.in and renamed LICENCE to LICENSE. May 14, 2016
README.rst
setup.py

README.rst

NEON for Python

https://travis-ci.org/paveldedik/neon-py.png?branch=master

NEON is very similar to YAML. The main difference is that the NEON supports "entities" (so can be used e.g. to parse phpDoc annotations) and tab characters for indentation. NEON syntax is a little simpler.

Example of Neon code:

# neon example

name: Homer

address:
    street: 742 Evergreen Terrace
    city: Springfield

children:
    + Bart
    + Lisa
    + Maggie

entity: Column(type=integer)

Installation

To install NEON parser for Python, simply run:

$ pip install neon-py

Quickstart

Decoding NEON config files is super easy:

import neon

with open('/path/to/config.neon', 'r') as fd:
    config = neon.decode(fd.read())

Links