Skip to main content

PhysLink

License: MIT CI Docs PyPI Python arXiv

Open In Colab

Quick Start →   |   Evaluate for your lab →   |   For Domain Scientists →


PhysLink bridges physical simulators and deep RL adapters in one pip install.

Plug your robot trajectories into DreamerV3 (and future backends) without writing boilerplate space definitions, checkpoint logic, or compliance checks. PhysLink handles the plumbing — you keep the science.

Without PhysLink With PhysLink
Hand-write observation/action space mappings per framework ObservationSpace.from_proprioception(joints=7)
Debug silent OOM on Colab at step 8 000 physlink.doctor() catches it before you start
Lose 3h of T4 training on session disconnect Auto-checkpoint every N steps, resume on reconnect
Manually verify energy conservation after adaptation register_invariant + compliance_report()
Stare at loss curves to diagnose model drift Triptych GIF — Imagination / Real / Difference in one call

Install

pip install physlink

Works on Google Colab out of the box. No CUDA required for diagnostics and space definitions.

Quick example

import physlink

# 1. Verify your environment (< 15 s)
physlink.doctor()

# 2. Define spaces from your robot config
obs = physlink.ObservationSpace.from_proprioception(joints=7, include_velocity=True)
act = physlink.ActionSpace.continuous(dims=7, bounds=(-1.0, 1.0))

# 3. Adapt
adapter = physlink.DreamerV3Adapter(obs, act)
adapter.fit(trajectories, steps=10_000)

# 4. Validate physics compliance
physlink.register_invariant(adapter, "energy", fn=energy_fn, tolerance=0.05)
report = adapter.compliance_report()
report.plot()

# 5. Visualise
adapter.visualize(trajectories)   # → triptych GIF
adapter.export("./run-01/")

Documentation

Full docs at Denis-hamon.github.io/physlink — includes API reference, lab adoption guide, and domain-scientist quickstart.

Status

v0.1.x — public API stable across minor versions (see CHANGELOG).
test-cpu CI passes on every PR. GPU benchmarks run on release tags.

Contributing

See CONTRIBUTING.md. Issues and PRs welcome — use the provided templates.

Metadata

Release files for physlink 0.1.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 physlink 0.1.2
File Size Uploaded Provenance Actions
physlink-0.1.2.tar.gz 29.7 kB With provenance Details for physlink-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 61.4 kB

Security for physlink 0.1.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.

Full provenance

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

Select from 2 files

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