Skip to main content

NEON parser for Python

Project description

NEON for Python

https://travis-ci.org/paveldedik/neon-py

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

Quick start

Decoding NEON config files is super easy:

import neon

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

Links

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 neon-py, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size neon-py-0.1.4.tar.gz (8.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page