AVRON Parser
AVRON (A Very Readable Object Notation) is a human-friendly data format that is also easy for machines to parse.
This package provides a parser for AVRON, allowing you to read AVRON files and convert them into Python objects.
Features
- Simple, indentation-based syntax (like YAML but better for machines)
- Supports nested objects, lists, and inline data
- Multi-line strings and comments
- Boolean, numeric, and null values auto-detected
- Customisable formatting
Usage
Parse an AVRON File
from avron_parser import parse_avron
parsed_data = parse_avron("example.avron")
print(parsed_data)
Example AVRON File (example.avron)
title: "A Very Readable Object Notation"
version: 1.0
author: "Kohan Mathers"
description: """
This is an example of an AVRON file.
It supports multi-line strings, lists, nested objects, and more.
"""
# Here is a comment!
###
And here is a
multi-line comment!
###
features:
- "Simple syntax"
- "No unnecessary characters"
- 100
- true
- null
tags: ["format", "human-readable", "parser"]
settings:
display:
resolution:
width: 1920
height: 1080
fullscreen: true
theme: "dark"
###
You can also use optional formatting settings, as displayed below
[INDENT_LEVEL: 2]
[TAB_MODE: false]
[COMMENT_SYNTAX: #]
[BOOLEAN_STYLE: true-false]
[NULL_STYLE: null]
[MULTILINE_STYLE: ''']
NOTE: Settings MUST be placed at the TOP of the file, before anything else.
###
metadata: { created_by: "QTI", last_updated: "11-03-2025" }
Accessing Specific Data
print(parsed_data["title"])
print(parsed_data["settings"]["display"]["resolution"]["width"])
Development
Clone the Repository
git clone https://github.com/kohanmathers/avron-parser.git
cd avron-parser
License
This project is licensed under the MIT License.
Contributing
- Fork the repository
- Create a new branch (
feature-name) - Commit changes (
git commit -m "Added new feature") - Push to your branch (
git push origin feature-name) - Open a pull request
Metadata
Release files for avron-parser 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| avron_parser-0.2.1.tar.gz | 4.9 kB | Without provenance | Details for avron_parser-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| avron_parser-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for avron_parser-0.2.1-py3-none-any.whl |
Total release size: 10.7 kB
Release files / avron_parser-0.2.1.tar.gz
| Download URL | avron_parser-0.2.1.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9cd5d82d3cbca33568a3a8adda95131ab366c0bbf2c14f060faaa7948932ed79
|
|
BLAKE2b-256 checksum How to use checksums |
66e516704fe7ce4e85fb8db0a94d58ac852ec8896d2ad35097ece50253a7f0f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / avron_parser-0.2.1-py3-none-any.whl
| Download URL | avron_parser-0.2.1-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
03941ec93ec4861033014925f27aecd4a815f81de27c29b3c861fc75529aa879
|
|
BLAKE2b-256 checksum How to use checksums |
ac3959274b51683ddc484af1ad7ac33990efe41357f712c7c38caee34ca561ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Security for avron-parser 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.