Skip to main content

Petra

Petra checks a physical design against the claims written in it. A design is a short .petra file that describes a steel connection, a truss, a wire circuit or a bolted joint. Petra answers pass, fail, marginal or unknown, and backs every pass and fail with a certificate that a small kernel re-checks in exact arithmetic.

Petra checks the loads a design states. It does not choose them, and it does not replace the engineer who signs the design.

Install

pip install petra-lang

Use

petra new shear_tab > tab.petra
petra check tab.petra

petra new prints an example design to edit. petra check prints the verdict, the check that governs it, and every check behind it. petra kinds lists what Petra can check, and petra docs lists the documents that ship with it.

Learn more

License

Code is under Apache-2.0 and docs are under Creative Commons Attribution 4.0. To send a change, read contributing.

Metadata

Release files for petra-lang 0.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 petra-lang 0.1.0
File Size Uploaded Provenance Actions
petra_lang-0.1.0.tar.gz 400.0 kB With provenance Details for petra_lang-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for petra-lang 0.1.0
File Interpreter ABI Platform Actions
petra_lang-0.1.0-py3-none-any.whl Python 3 none any Details for petra_lang-0.1.0-py3-none-any.whl

Total release size: 852.7 kB

Release files / petra_lang-0.1.0.tar.gz

Download URL petra_lang-0.1.0.tar.gz
Size 400.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d2123f8baa6439035b596e879183f7546ec790fca967bea76b8fa7bb09e0f826
BLAKE2b-256 checksum
How to use checksums
a55b2f3d9e6454d930dc30f854119759deb7b3a5783d52ca4280dfc4384c0778
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Release files / petra_lang-0.1.0-py3-none-any.whl

Download URL petra_lang-0.1.0-py3-none-any.whl
Size 452.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d06ab3367b19b4bcf50a62b74b541a6da4dd16d736903c13b1927d202bc5b62d
BLAKE2b-256 checksum
How to use checksums
f1ee3284f049030431eecf7ba18575b8a99671806b3db2232915176e5e731ae4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Security for petra-lang 0.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for petra_lang-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

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

0.1.0 This release

2 release files Full 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