Skip to main content

reality

reality is a typed Python toolkit for loading 3D/CAD assets and asking deterministic spatial questions about them. It preserves source geometry where the selected backend supports it, while returning structured evidence and explicit uncertainty rather than invented physical facts. Optional AI features provide advisory text only; geometry and physics results remain separate.

Install

python -m pip install reality

Quick examples

Ask the copilot

import reality

answer = reality.copilot("What should I inspect before loading a shelf?")
print(answer)

The copilot uses a configured local or hosted AI provider. If none is ready, it returns an honest setup message instead of inventing an answer.

Read a 3D model

import reality

obj = reality.perceive.from_3d("file.obj", units="m")
print(obj.summary)
print(obj.bounds)
print(obj.estimated_mass)  # Available only with known units and density evidence.

Screen a supplied load case

import reality

obj = reality.perceive.from_3d("bracket.obj", units="m")
prediction = reality.reason.predict(
    "will this fail under 500 kg?",
    obj,
    load_axis="z",
    load_case="axial_compression",
    support="opposed_face",
    yield_strength_pa=250_000_000,
    yield_source="material certificate",
)
print(prediction.will_fail, prediction.safety_factor)

Optional extras

python -m pip install "reality[video]"   # File-only MP4 frame extraction
python -m pip install "reality[assimp]"  # FBX, DAE, and 3DS import support
python -m pip install "reality[cad]"     # STEP, STP, and IGES B-rep support

What it includes

  • OBJ, STL, PLY, GLB, and glTF reading through Trimesh.
  • Optional CAD, Assimp, USD, video, GPU, and physics integrations.
  • Spatial World queries, relationship graphs, copy-on-write branches, and consequence analysis.
  • Structured 3D interpretation through reality.perceive.from_3d().
  • Bounded physical screening and editing workflows that keep source geometry immutable unless an explicit edit is committed.

Honest limitations

  • Mesh operations primarily use axis-aligned bounds; they are not general triangle-mesh collision detection or finite-element analysis.
  • A generic material name does not establish an engineering grade or yield strength. Supply traceable material properties for load screening.
  • Optional integrations require their own installed backends. Reality never silently installs applications, downloads models, or uploads files.
  • Image and video features produce observations, not calibrated metric geometry or a verified digital twin.
  • The built-in simulation fallback is an approximate Euler/AABB model. Use a validated backend and domain review for safety-critical work.

Development

python -m pip install -e ".[dev]"
pytest -q
ruff format --check .
ruff check .
python -m mypy src/reality

Licensed under Apache-2.0.

Metadata

Release files for reality 0.2.3

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

Source distribution (sdist)

Source distribution for reality 0.2.3
File Size Uploaded Provenance Actions
reality-0.2.3.tar.gz 3.1 MB With provenance Details for reality-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for reality 0.2.3
File Interpreter ABI Platform Actions
reality-0.2.3-py3-none-any.whl Python 3 none any Details for reality-0.2.3-py3-none-any.whl

Total release size: 3.3 MB

Release files / reality-0.2.3.tar.gz

Download URL reality-0.2.3.tar.gz
Size 3.1 MB
Tags Source
SHA-256 checksum
How to use checksums
6770e3deb2aa424ef52e13a61e759fdfdd4862818160273940ff54d0bae1a35e
BLAKE2b-256 checksum
How to use checksums
70fcd030adae4d9d0dd0bfe679124cbdc3b6edacef8be93357989ce3050b227a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 7, 2026.

Transparency log

Release files / reality-0.2.3-py3-none-any.whl

Download URL reality-0.2.3-py3-none-any.whl
Size 190.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fba474696f2bb86c9b25ca12a873a57f11defecd0e0b36d167f3b549b443d137
BLAKE2b-256 checksum
How to use checksums
5f366a7947b2b159241ce2938f270eb9412ee432080ab7bad13281096f92724b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 7, 2026.

Transparency log

Security for reality 0.2.3

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for reality-0.2.3.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 Oct 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.

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