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), byte-identical strict-canonical output 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.2

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.2
File Size Uploaded Provenance Actions
weft_format-1.0.2.tar.gz 61.3 kB Without provenance Details for weft_format-1.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 129.4 kB

Release files / weft_format-1.0.2.tar.gz

Download URL weft_format-1.0.2.tar.gz
Size 61.3 kB
Tags Source
SHA-256 checksum
How to use checksums
27eb15c6f4f1ed3406b69199ec8081ba7a3fea09c6fdc4ed98e86f56c6758763
BLAKE2b-256 checksum
How to use checksums
8d1e34f561371ab3f97a64831e1b1ccad4bc18688152f6ac06ad4982b4313653
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.2-py3-none-any.whl

Download URL weft_format-1.0.2-py3-none-any.whl
Size 68.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e0851fbc8658a1db739f9ab4e86fa1ae49978833b9f7b3a7a907a3d920670d8d
BLAKE2b-256 checksum
How to use checksums
b45903645af0e06e6a5b36565f3039c16f5cec246b4ddf0b1902b96210859ec7
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.2

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.2 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