Metadata-Version: 2.4
Name: weft-format
Version: 1.0.1
Summary: Weft — AI-first textual data format (Python reference implementation). Parse, format (byte-identical canonical form), lossless JSON bridge, schema validation.
Author: mossbenchlab
License: MIT
Project-URL: Homepage, https://github.com/mossbenchlab/weft
Project-URL: Specification, https://github.com/mossbenchlab/weft/blob/main/spec/SPEC.md
Project-URL: Changelog, https://github.com/mossbenchlab/weft/blob/main/CHANGELOG.md
Project-URL: Security, https://github.com/mossbenchlab/weft/blob/main/SECURITY.md
Keywords: weft,serialization,data-format,canonical,json,ai
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: File Formats
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# weft-format

Python reference implementation of **Weft 1.0**, an AI-first textual
data format: rich types (BigInt, Decimal, Binary, DateTime, Symbol,
Keyword, typed values), one byte-identical canonical form across
implementations (safe to hash and sign), a lossless JSON bridge, and
parsers hardened against hostile input.

```python
import weft

v = weft.parse('{:name "weft" :precise 0.1m :big 9007199254740993n}')
print(weft.format_value(v, weft.FormatOptions(strict_canonical=True)))
j = weft.dumps_json(v)            # lossless JSON encoding
assert weft.equals(v, weft.loads_json(j))
```

The import name is `weft` (the distribution is `weft-format` because
the name `weft` was taken on PyPI by an unrelated project).

Specification, three more reference implementations (TypeScript, Rust,
Go), and the conformance suite:
https://github.com/mossbenchlab/weft
