Skip to main content

NEON parser for Python

Project description

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())

Project details


Download files

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

Source Distribution

neon-py-0.1.2.tar.gz (8.6 kB view details)

Uploaded Source

File details

Details for the file neon-py-0.1.2.tar.gz.

File metadata

  • Download URL: neon-py-0.1.2.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for neon-py-0.1.2.tar.gz
Algorithm Hash digest
SHA256 bf28de6f013f78eeafe2bbaa94b5bd1658e4e1273d3c77822947e58fca01d0eb
MD5 4565174df89b625eb8d53507638d4a5b
BLAKE2b-256 60ccb5ebde9b104a687ca668f92bd50842adcde65f35a826a0877348d3eec2b3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page