Skip to main content

NEON parser for Python

Project description

NEON for Python

Test

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.

Source Distribution

neon-py-0.2.1.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

neon_py-0.2.1-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: neon-py-0.2.1.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for neon-py-0.2.1.tar.gz
Algorithm Hash digest
SHA256 7b9d0ad355aa593efa6fb4689d6a86ae3ff696e41a1a8efd110378f577b87895
MD5 4945e31663d66e8b0a375945ce48fd29
BLAKE2b-256 a0f0d5bf9ab04fdba41624cd52c9a651691a5f51b428d887925375cc472ecb9f

See more details on using hashes here.

File details

Details for the file neon_py-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: neon_py-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for neon_py-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 95b00d83a35a8cc0d0a0d1a27cebbabde20c689d679db2c4ef4c74d097df99f5
MD5 b21fbaab2e0387043293f7b45dfc0f74
BLAKE2b-256 b6a54654038ccc62f819ed89824718a68ab95a093fd48ac96188453ed14087aa

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