Skip to main content

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.

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

Metadata

Release files for weft-format 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for weft-format 1.0.1
File Size Uploaded Provenance Actions
weft_format-1.0.1.tar.gz 61.3 kB Without provenance Details for weft_format-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for weft-format 1.0.1
File Interpreter ABI Platform Actions
weft_format-1.0.1-py3-none-any.whl Python 3 none any Details for weft_format-1.0.1-py3-none-any.whl

Total release size: 129.4 kB

Release files / weft_format-1.0.1.tar.gz

Download URL weft_format-1.0.1.tar.gz
Size 61.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6485c88b0eedbef9e7705d59bd52cf21343a54b8b8abf0b83edb0387321bb419
BLAKE2b-256 checksum
How to use checksums
10c9ee3c1047f3e351cd240e0f3a1b3c30484eb506ac163675e3d7fa0d12c949
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / weft_format-1.0.1-py3-none-any.whl

Download URL weft_format-1.0.1-py3-none-any.whl
Size 68.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bae60c4ad99b24ca72e4591558c2702041af69b062edc2221132885493fef7db
BLAKE2b-256 checksum
How to use checksums
43c8e5d3b508ed111c89b6e01bc7e923068acedaf8943e8f402484f6c52f2e08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for weft-format 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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page