Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paveldedik/neon-py
NEON parser for Python.
https://github.com/paveldedik/neon-py
neon nette parsing python yaml
Last synced: 26 days ago
JSON representation
NEON parser for Python.
- Host: GitHub
- URL: https://github.com/paveldedik/neon-py
- Owner: paveldedik
- License: bsd-3-clause
- Created: 2016-04-23T18:22:46.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-06-17T14:22:37.000Z (over 2 years ago)
- Last Synced: 2024-09-30T14:01:08.530Z (about 1 month ago)
- Topics: neon, nette, parsing, python, yaml
- Language: Python
- Size: 52.7 KB
- Stars: 27
- Watchers: 4
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
NEON for Python
===============[![Test](https://github.com/paveldedik/neon-py/actions/workflows/test.yml/badge.svg)](https://github.com/paveldedik/neon-py/actions/workflows/test.yml)
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:
```yaml
# neon examplename: Homer
address:
street: 742 Evergreen Terrace
city: Springfieldchildren:
+ Bart
+ Lisa
+ Maggieentity: Column(type=integer)
```Installation
------------To install NEON parser for Python, simply run:
```bash
pip install neon-py
```Quick start
-----------Decoding NEON config files is super easy:
```python
import neonwith open('/path/to/config.neon', 'r') as fd:
config = neon.decode(fd.read())
```Links
-----* [Neon sandbox](http://ne-on.org)
* [Neon for PHP](https://github.com/nette/neon)
* [Neon for Javascript](https://github.com/matej21/neon-js)