Skip to main content

ovphysx

ovphysx is a self-contained Python library for ovstage/USD-based physics simulation with Warp-array output and downstream DLPack interoperability. It wraps NVIDIA PhysX and provides:

  • ovstage attachment plus rigid-body / articulation simulation
  • Same-device warp.array output on CPU and CUDA through session reads (PhysX.read() / read_sync())
  • Downstream zero-copy framework interoperability through Warp's DLPack support
  • Environment cloning for batched reinforcement-learning workloads

Quick start

pip install ovphysx physx-usd-schemas newton-usd-schemas

newton-usd-schemas is the Newton USD schema the snippet below registers next to the external PhysX schemas; scenes that author no newton:* attributes can leave it out and drop the newton_schema_root() entry.

from pathlib import Path

import ovphysx
from ovphysx.samples.python_samples.schema_support import physx_schema_paths
import ovstage
from ovphysx.population import physics_population_descs
from ovphysx import PhysX

usd_path = (
    Path(ovphysx.__file__).resolve().parent
    / "samples"
    / "data"
    / "simple_physics_scene.usda"
)
if not usd_path.is_file():
    raise FileNotFoundError(f"ovphysx sample data is missing: {usd_path}")

# Register external PhysX and Newton schemas before the first population.
ovstage.population.register_usd_schemas(
    [*[str(p) for p in physx_schema_paths()], str(ovphysx.newton_schema_root())]
)
stage = ovstage.Stage("scene")
ovstage.population.open_usd_with_desc(
    stage,
    str(usd_path),
    ordinal=1,
    time=ovstage.population.DEFAULT_TIME,
    descs=physics_population_descs(rendering=True),
)
# attach_ovstage() reads at a sealed ordinal.
stage.advance_write_floor(ordinal=1).wait()

physx = PhysX()
physx.wait_task(physx.attach_ovstage(stage, read_ordinal=1))
physx.step_sync(1.0 / 60.0)
physx.wait_task(physx.detach_ovstage())
physx.destroy()
stage.destroy()

For full documentation and tutorials, see ovphysx/docs/ inside the installed package, or the ovphysx repository.

Metadata

Release files for ovphysx 0.8.0.43443703471

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

Built distributions (wheels)

Table of built distributions (wheels) for ovphysx 0.8.0.43443703471
File Interpreter ABI Platform Actions
ovphysx-0.8.0.43443703471-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for ovphysx-0.8.0.43443703471-py3-none-win_amd64.whl
ovphysx-0.8.0.43443703471-py3-none-manylinux_2_35_x86_64.whl Python 3 none Linux glibc 2.35+ x86-64 Details for ovphysx-0.8.0.43443703471-py3-none-manylinux_2_35_x86_64.whl
ovphysx-0.8.0.43443703471-py3-none-manylinux_2_35_aarch64.whl Python 3 none Linux glibc 2.35+ ARM64 Details for ovphysx-0.8.0.43443703471-py3-none-manylinux_2_35_aarch64.whl

Total release size: 481.5 MB

Release files / ovphysx-0.8.0.43443703471-py3-none-win_amd64.whl

Download URL ovphysx-0.8.0.43443703471-py3-none-win_amd64.whl
Size 158.5 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
25d9004bcb6b649e673cd0a96ea704bb3ad3c3b7a4178b521f716faa76eab841
BLAKE2b-256 checksum
How to use checksums
9ee87c8e76fecd24d0abd9a640af4241aec83fea5ab44480142e458e1d8925c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / ovphysx-0.8.0.43443703471-py3-none-manylinux_2_35_x86_64.whl

Download URL ovphysx-0.8.0.43443703471-py3-none-manylinux_2_35_x86_64.whl
Size 161.3 MB
Tags Linux glibc 2.35+ x86-64 Python 3
SHA-256 checksum
How to use checksums
0b3186bae349e003a5e4e70641c2b349935ceb1d67342e2fcfe19960bab43ddd
BLAKE2b-256 checksum
How to use checksums
91994949b3d7d5b8e620d385100d1608d9fd7b462ce1af805fdb6f5700c28adc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / ovphysx-0.8.0.43443703471-py3-none-manylinux_2_35_aarch64.whl

Download URL ovphysx-0.8.0.43443703471-py3-none-manylinux_2_35_aarch64.whl
Size 161.7 MB
Tags Linux glibc 2.35+ ARM64 Python 3
SHA-256 checksum
How to use checksums
97823201da0cbe73014ae5218fdcb2bbd22bd6b48ce4e27b0fba39a07771835e
BLAKE2b-256 checksum
How to use checksums
d7d3a1f6843672fcfc7bdd6af1ccbfc8063e61846ca1dda93e689850a33eb94d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for ovphysx 0.8.0.43443703471

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.

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