Skip to main content

A parser for AVRON (A Very Readable Object Notation)

Project description

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

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: "AVRON Example"
version: 1.0
author: "Kohan Mathers"

# Supports comments
description: """
  AVRON is a structured, human-readable format.
  It is simpler than YAML but more machine-friendly.
"""

settings:
  display:
    resolution:
      width: 1920
      height: 1080
    fullscreen: true

features:
  - "Simple syntax"
  - 100
  - true
  - null

metadata: { created_by: "QTI", last_updated: "2025-03-06" }

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

  1. Fork the repository
  2. Create a new branch (feature-name)
  3. Commit changes (git commit -m "Added new feature")
  4. Push to your branch (git push origin feature-name)
  5. Open a pull request

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

avron_parser-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

avron_parser-0.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file avron_parser-0.1.0.tar.gz.

File metadata

  • Download URL: avron_parser-0.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for avron_parser-0.1.0.tar.gz
Algorithm Hash digest
SHA256 77deccc3d4b5ef7ad0b64371f40b3d4de3b223665883ed9ecf9678a8ce2bf067
MD5 0c9d497367b59237ba2ebb856903dad9
BLAKE2b-256 e69dec3ba0eb979a13544df5d1a808b9b26e1d3df5fd04ecb4ade832d871eadc

See more details on using hashes here.

File details

Details for the file avron_parser-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: avron_parser-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for avron_parser-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 068bfbda436d6c8453ab120d9341d380706fb3f61e09dd3e1565fab7740f6042
MD5 816c8a90dfb60109a5cd81b684c6c4a1
BLAKE2b-256 24923a392e18c447d69d68412b7f91f7fc426bd79eb9d5cd74f46c140ec042bd

See more details on using hashes here.

Supported by

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