vmgx
The reference Python parser for VMGX, a lightweight, human-readable data format for structured records, rich metadata and long-term digital preservation.
@vmgx 1.0
@id: "vmg-pub-0001"
@created: 2026-11-14T22:30:00+01:00
title: "Northern Light"
published: 2027-03-01
website: <https://example.com/books/northern-light>
summary: """
A photo book about the coast,
over a full year of seasons.
"""
One module, standard library only, Python 3.11 or later. It passes the full VMGX conformance suite.
Install
pip install vmgx
Use
import vmgx
with open("record.vmgx", encoding="utf-8") as f:
record = vmgx.load(f)
record["title"] # 'Northern Light'
record["published"] # datetime.date(2027, 3, 1)
record["website"] # Link('https://example.com/books/northern-light')
vmgx.dumps(record) # back to VMGX text
vmgx.to_json(record) # plain JSON: dates and links become strings
vmgx.to_json(record, typed=True) # typed JSON: {"@date": "2027-03-01"} keeps the type
vmgx.from_json(json_text, typed=True)
Invalid input raises vmgx.VMGXError with line, col and msg:
try:
vmgx.loads("name: Alex")
except vmgx.VMGXError as e:
print(e) # unrecognized value 'Alex' (text must be in quotes) (line 1, column 7)
Command line
vmgx check record.vmgx
vmgx to-json record.vmgx [--typed] [--indent N]
vmgx from-json data.json [--typed]
vmgx fmt record.vmgx
Values
| VMGX | Python |
|---|---|
"text", """text block""" |
str |
248, 19.95 |
int, float |
true, false, null |
True, False, None |
2027-03-01 |
datetime.date |
2026-11-14T22:30:00+01:00 |
datetime.datetime |
<https://example.com> |
vmgx.Link (a str subclass) |
{ … }, [ … ] |
dict, list |
Learn more
- Specification, playground and conformance suite: https://vmgx.vegte.org
- Source code and issues: https://codeberg.org/vmgx/vmgx
License
MIT License. Copyright (c) 2026 Vegte Media Group.
Metadata
Release files for vmgx 1.0.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 |
|---|---|---|---|---|
| vmgx-1.0.1.tar.gz | 9.0 kB | Without provenance | Details for vmgx-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vmgx-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for vmgx-1.0.1-py3-none-any.whl |
Total release size: 18.4 kB
Release files / vmgx-1.0.1.tar.gz
| Download URL | vmgx-1.0.1.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
54d762a66e03e98df0c980827a9a471d4006a257c61accff16f9593ecfdf73d4
|
|
BLAKE2b-256 checksum How to use checksums |
4ec07e1e3e8b77329162b970c648cc8177a1f2f11e5a688d3f98958b7e98645e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.0
|
Release files / vmgx-1.0.1-py3-none-any.whl
| Download URL | vmgx-1.0.1-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1c577d78f7df6567bccb6e200cac4a39fa852ed4463087de2106a5882083d589
|
|
BLAKE2b-256 checksum How to use checksums |
617b68c21c569fca1b900edd3818009d8f7c390849a7321af7b4c57aa31e95b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.0
|
Security for vmgx 1.0.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.