braq
raw JSON → 0.0.12 verified Fri May 01 auth: no python
Structured text format with sections. Current version 0.0.12. Intended for simple document-like structures. Low release cadence.
pip install braq Common errors
error ModuleNotFoundError: No module named 'braq' ↓
cause Missing installation or wrong import path.
fix
Run: pip install braq
error AttributeError: module 'braq' has no attribute 'parse' ↓
cause Outdated version of braq (pre-0.0.12) or wrong import.
fix
Upgrade to latest version: pip install --upgrade braq
Warnings
gotcha braq is not widely used and may not be actively maintained. Check before relying on it in production. ↓
fix Consider if braq meets your long-term needs; evaluate alternative structured text libraries.
gotcha The API may change between minor versions due to pre-1.0 status. Pin exact version in requirements. ↓
fix Pin version: braq==0.0.12
Imports
- braq
import braq
Quickstart
import braq
# Parse a simple braq string
content = '''title: My Document
author: John
section: Introduction
This is the first section.
section: Details
More content here.
'''
doc = braq.parse(content)
print(doc.sections) # ['Introduction', 'Details']