NEON parser for Python
Project description
NEON for Python
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
Release history Release notifications | RSS feed
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.5.tar.gz
(9.3 kB
view details)
Built Distribution
File details
Details for the file neon-py-0.1.5.tar.gz
.
File metadata
- Download URL: neon-py-0.1.5.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 186c84a07110813177e8eed31d0ecd751602abdc2d7521bab9042d233ec22a2a |
|
MD5 | ad2b16b2f24530991fa82df14edd1571 |
|
BLAKE2b-256 | 4dfd3c1e01977ca7fc012f5fb9d619fc5559a470406ef2fec79358bb829fa8e8 |
File details
Details for the file neon_py-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: neon_py-0.1.5-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c5d0a86724a2209f3daf3483f128f80375f4f79cd01c9e179a24b8c6303bcdc |
|
MD5 | 2d35eb7a2eb2da9851a27828bf4ce189 |
|
BLAKE2b-256 | 613135e17bdaf048a214a7d9c1ebdea989d756ca7644b65ca5e7286843a384cb |