Skip to main content

jos-core (Python)

Reference kernel of the .jos 2.0 format (media type application/vnd.jos+json) in Python, with the same results as the JavaScript kernel @josfox/jos-core on every conformance vector: tck/compare-implementations.py finds no difference (results compared as JSON values, minted ids, times and durations normalized; the printed text can differ in member order and number spelling, 5.0 against 5, never in a value). Since 2.0.0-rc.8 there is no exception: a number an IEEE 754 double does not keep makes the document invalid in both engines (the former jcs-numbers exception). Python 3.10 or later, no dependencies.

jos-core validate <file|dir> --json
jos-core run <file|dir> --json --runs <dir>
jos-core version --json
jos-core --version        # one line, the same as the JavaScript kernel: jos-core <version> (.jos 2.0.0)

As a library: import jos_core; r = jos_core.run_file('hello.jos') reads the file once and runs it with dir and source (its octets); jos_core.run(doc, cwd=..., dir=..., source=data) is the same with a document already parsed. A 0.0.7 document sealed by a detached manifest (security.integrity_ref) is verified over the octets it was parsed from, so run() needs dir and source for it (else code 5); verify_legacy_ref(doc, data, dir) is that check alone.

Stability: validation, normalization, runs of atoms and flows, directories (.jos/ folders), PAL and the per-run ledger are the stable contract of 2.0.0. JOSID Graph 0.1.0 (the module jos_core.facts, the jos-core facts commands and run --graph) is experimental: it may change in 2.1 without a major version and is not part of that contract. JOSDB, the embedded store, is not in 2.0.0; it arrives with 2.1.

The specification, its schemas and the Test Compatibility Kit are in josfox-jos/jos-spec. License: Apache-2.0. Copyright JOSFOX LLC.

Metadata

Release files for jos-core 2.1.0

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

Source distribution (sdist)

Source distribution for jos-core 2.1.0
File Size Uploaded Provenance Actions
jos_core-2.1.0.tar.gz 128.6 kB Without provenance Details for jos_core-2.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jos-core 2.1.0
File Interpreter ABI Platform Actions
jos_core-2.1.0-py3-none-any.whl Python 3 none any Details for jos_core-2.1.0-py3-none-any.whl

Total release size: 266.5 kB

Release files / jos_core-2.1.0.tar.gz

Download URL jos_core-2.1.0.tar.gz
Size 128.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d01c2ae451f7839d7ebdc10b763b958302616ea35460efd40582c49de13b2562
BLAKE2b-256 checksum
How to use checksums
1269ff62db06074f1f47235240e61824cf063c9885069c66bfe17c7658fbaef3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.7

Release files / jos_core-2.1.0-py3-none-any.whl

Download URL jos_core-2.1.0-py3-none-any.whl
Size 137.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d9a54575a3f86215cae7b5e2f1a6731a7fab8cf07b503c11c86d28b8a8bc0642
BLAKE2b-256 checksum
How to use checksums
66e3fd0290862c0213125a2d6b7be68392bf9b4899017e21d23385371e15ea87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.7

Security for jos-core 2.1.0

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

2.1.0 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