Skip to main content

openhorizon-studio

OpenHorizon Studio's client for Python, and its command line, oh-studio: your team's robots and their takes, read and marked through OpenHorizon's relay with an API key.

uv tool install openhorizon-studio      # the oh-studio command

Without uv, install it into a virtual environment of its own. Ubuntu 23.04 and later refuse pip install into the system's own Python ("externally-managed-environment"):

python3 -m venv ~/oh-studio && ~/oh-studio/bin/pip install openhorizon-studio
~/oh-studio/bin/oh-studio --help

In your own project, pip install openhorizon-studio into that project's virtual environment.

It is built for Python 3.10 to 3.14 on Apple Silicon Macs (macOS 11 or newer) and on 64-bit ARM Linux with glibc 2.28 or newer (Ubuntu 20.04 and later: a Jetson, a Thor, a robot's own computer).

It needs Python 3.10 or newer and nothing else: the standard library only. Recording a take on a practice robot (below) needs the session extra, which adds websockets:

uv tool install 'openhorizon-studio[session]'

A key

A team admin makes an API key on Account, API keys. It is shown once. Keep it for this user:

oh-studio login            # asks for the key, checks it with the relay, keeps it 0600

Or set OH_STUDIO_KEY, or pass key= to Studio. A key goes to https://relay.openhorizon.so (or OH_STUDIO_RELAY) over https only, and is never printed, logged or put in an error.

A proxy: HTTPS_PROXY for the relay (else https_proxy), HTTP_PROXY for an http address elsewhere, and NO_PROXY to leave hosts out (*, a host and its subdomains, .domain, an address or a range, each with an optional port). The proxy sees only where to connect, never the key. This computer (localhost, 127.0.0.1, [::1]) is never asked through one, whatever is set, and the system's own proxy settings are not read. Only an http:// proxy is used; any other is refused in words, so a program never goes straight where its network asked for a proxy.

The command line

oh-studio robots                                   # the robots your team reaches
oh-studio takes g1-01 --to-check                   # takes nobody has marked yet, newest first
oh-studio take g1-01 e1700000000000-pick_cube      # one take (--json: whole, ticks too)
oh-studio good g1-01 e1700000000000-pick_cube
oh-studio wrong g1-01 e1700000000001-pick_cube dropped_object
oh-studio frame g1-01 e1700000000000-pick_cube cam_high 0 -o picture.jpg
oh-studio scorecard g1-01
oh-studio stop g1-01                               # press STOP; it never clears it
oh-studio session start --robot http://localhost:9090 --task "pick cube" --seconds 5   # a practice take
oh-studio takes http://localhost:9090              # a practice robot on this computer: no relay, no key

A robot is named by its id or its name, as oh-studio robots lists them. Every command takes --json. A failure exits 1 with its cause and what to do on stderr (with --json, as an object with error, fix, status and code).

The library

from openhorizon_studio import Studio, StudioError, TAKE_REASONS, checked

studio = Studio()  # the key from OH_STUDIO_KEY or `oh-studio login`
robot = studio.robot("g1-01")
for take in robot.takes():
    if not checked(take):
        print(take["id"], take.get("skill"))

robot.good("e1700000000000-pick_cube")
robot.wrong("e1700000000001-pick_cube", "dropped_object")  # one of TAKE_REASONS

try:
    robot.take("e1-nothing")
except StudioError as e:
    print(e.status, e.code, e.cause, e.fix)

Answers are the robot's own, as its API documents them, never reshaped. robot.frame(take, camera, tick) gives the JPEG's bytes; a picture cut short on the way is an error, never a picture. Robot.local("http://localhost:9090") asks a robot's runtime straight, with no relay and no key.

A take from a program

Asked straight with no key, a program records a take only on a practice robot on this computer (openhorizon serve --g1 --loopback), never a real one. Before anything is sent, the address must be localhost, 127.0.0.1 or [::1], and the robot's first message must say it is a practice robot that records takes; a robot that does not say so is sent nothing.

Through the relay, with a team's operator key, a program records a take that it steers, on a robot started with --relay-programs and --execute (--relay-drive lets people steer, never a program): Studio().robot("g1-01").session("pick cube"). The relay and the robot decide: a take that would not steer is refused, and one that steered nothing is not kept. For about the first second the relay holds steering while it measures the delay (take.held says why), and every command passes the same round-trip gate as the page's. A key revoked, a plan ended or a robot removed mid-take closes the socket, and the robot ends the take.

from openhorizon_studio import Robot

robot = Robot.local("http://localhost:9090")
with robot.session("pick cube") as take:
    take.walk(2.0, vx=0.5)  # 20 commands a second for 2 s, on this thread, then a zero
    take.drive(wz=-0.3)  # ONE command: the robot zeroes it 0.3 s later unless it is sent again
print(take.id)  # the kept take; leaving the block with an error keeps it as abandoned

Each axis runs from -1 to 1, and the axes are the robot's own (take.axes). Nothing in the client sends from a thread or a timer, so a program that hangs goes quiet and the robot stops by itself. take.stop() presses STOP; a STOP not confirmed also closes the take's socket, so the robot ends the take. oh-studio session start records a take steering nothing, on a practice robot here only; Ctrl-C ends it early, kept as abandoned.

STOP

oh-studio stop ROBOT and robot.stop() press STOP and return the robot's own answer. Neither clears it: that is a person's who has looked, on the page.

A program's STOP is never anyone's only stop. A person's STOP on the page goes straight to the robot. A key's is checked by the relay's key service first; the relay holds its answer a while after the key last listed robots, and once that has lapsed, a key service out of reach (503) or too many keys being checked (429) means the STOP is refused. A STOP that was refused or not answered raises StudioError ("STOP not confirmed"), and one that could not be sent ("STOP was not sent": no key, a robot name not found); its fix says to press STOP on the page and keep the robot's own stop at hand. That is a G1's handheld remote, the program that drives an OpenArm, or the person beside an Asimov.

What a key cannot do

Clear STOP, open a headset's link or make keys. Those are a person's, signed in on the page. A key lists robots, reads takes, their pictures and the scorecard, marks takes, and presses STOP. An operator key may also steer a take of its own through the relay, on a robot started with --relay-programs and --execute (above).

Licence

Source-available, not open source: the OpenHorizon Personal Use License 1.0 (LICENSE in this folder). An individual may use it for their own personal purposes. A company, a school or university, a research lab or any other organisation needs a written licence from OpenHorizon Labs; a team on a paid OpenHorizon Studio plan has one for its own programs and the robots paired to it. See COMMERCIAL-LICENSE.md at the repository's root.

Metadata

Release files for openhorizon-studio 0.1.1

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 openhorizon-studio 0.1.1
File Actions
openhorizon_studio-0.1.1-cp314-cp314-manylinux_2_28_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ ARM64 Details for openhorizon_studio-0.1.1-cp314-cp314-manylinux_2_28_aarch64.whl
openhorizon_studio-0.1.1-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details for openhorizon_studio-0.1.1-cp314-cp314-macosx_11_0_arm64.whl
openhorizon_studio-0.1.1-cp313-cp313-manylinux_2_28_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ ARM64 Details for openhorizon_studio-0.1.1-cp313-cp313-manylinux_2_28_aarch64.whl
openhorizon_studio-0.1.1-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for openhorizon_studio-0.1.1-cp313-cp313-macosx_11_0_arm64.whl
openhorizon_studio-0.1.1-cp312-cp312-manylinux_2_28_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ ARM64 Details for openhorizon_studio-0.1.1-cp312-cp312-manylinux_2_28_aarch64.whl
openhorizon_studio-0.1.1-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for openhorizon_studio-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
openhorizon_studio-0.1.1-cp311-cp311-manylinux_2_28_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ ARM64 Details for openhorizon_studio-0.1.1-cp311-cp311-manylinux_2_28_aarch64.whl
openhorizon_studio-0.1.1-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for openhorizon_studio-0.1.1-cp311-cp311-macosx_11_0_arm64.whl
openhorizon_studio-0.1.1-cp310-cp310-manylinux_2_28_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ ARM64 Details for openhorizon_studio-0.1.1-cp310-cp310-manylinux_2_28_aarch64.whl
openhorizon_studio-0.1.1-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for openhorizon_studio-0.1.1-cp310-cp310-macosx_11_0_arm64.whl

Total release size: 4.3 MB

Release files / openhorizon_studio-0.1.1-cp314-cp314-manylinux_2_28_aarch64.whl

Download URL openhorizon_studio-0.1.1-cp314-cp314-manylinux_2_28_aarch64.whl
Size 547.9 kB
Tags CPython 3.14 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
9c2ee9012eaeba9f2b46fe320207b6bad8fd399c2ff8b8c9006e44ed402bc3e7
BLAKE2b-256 checksum
How to use checksums
1903bf1450b2d3257c14b3ccd1a801c1996cc68c680d87e519932248ab5bc1ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / openhorizon_studio-0.1.1-cp314-cp314-macosx_11_0_arm64.whl

Download URL openhorizon_studio-0.1.1-cp314-cp314-macosx_11_0_arm64.whl
Size 362.7 kB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5b76605001e9d4122c69c9e89e3c0aac1fec9cca57cebdb3f8d8a550be1536b0
BLAKE2b-256 checksum
How to use checksums
ead517525fce4087a834cbc451e3dab26afe0ef5f88115cd2267c271efea9454
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / openhorizon_studio-0.1.1-cp313-cp313-manylinux_2_28_aarch64.whl

Download URL openhorizon_studio-0.1.1-cp313-cp313-manylinux_2_28_aarch64.whl
Size 523.2 kB
Tags CPython 3.13 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
7deb83d040cbee84702c8587774bbdb53c11ed8f1527f98e62d0fb8c221e91a6
BLAKE2b-256 checksum
How to use checksums
ada8fea7c40605b27728620a6363ddf0ac8d7063d22484714d9a8d00b5ee6eff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / openhorizon_studio-0.1.1-cp313-cp313-macosx_11_0_arm64.whl

Download URL openhorizon_studio-0.1.1-cp313-cp313-macosx_11_0_arm64.whl
Size 352.0 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e6faca46d4546724e3baf598e5a662b93cc7e655742e571f75abd8dd534b29e0
BLAKE2b-256 checksum
How to use checksums
27662a3c7f4bddd78dc13b87866964adaeb85a1fe61a00f042fbd0c5425ee087
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / openhorizon_studio-0.1.1-cp312-cp312-manylinux_2_28_aarch64.whl

Download URL openhorizon_studio-0.1.1-cp312-cp312-manylinux_2_28_aarch64.whl
Size 517.8 kB
Tags CPython 3.12 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
d78a43d824593a70dc62e2cebf7297fe9cbe0cda9223cfee253aab03780ed4af
BLAKE2b-256 checksum
How to use checksums
45176f802165d4d9ba78f1dc5ac7df99f4c1b8f8c800de298ba57fca2027fb92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / openhorizon_studio-0.1.1-cp312-cp312-macosx_11_0_arm64.whl

Download URL openhorizon_studio-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
Size 346.0 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0278808daadf7ca34efa2e0e911c6370039af19c630cb3fa8e5705f590598ce3
BLAKE2b-256 checksum
How to use checksums
ac616260c0cf3c44713db288cbcd825086009dbf637f8a7c0cf96bb59e0a676a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / openhorizon_studio-0.1.1-cp311-cp311-manylinux_2_28_aarch64.whl

Download URL openhorizon_studio-0.1.1-cp311-cp311-manylinux_2_28_aarch64.whl
Size 479.9 kB
Tags CPython 3.11 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
636d590c26c6f9d482143a6e7b84e5264963496397bd717289d31475b1aebb7a
BLAKE2b-256 checksum
How to use checksums
db7e6cd32153c4ec4fd0385d6e197573f0ef33f84a7a19652107ce8f689cbd29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / openhorizon_studio-0.1.1-cp311-cp311-macosx_11_0_arm64.whl

Download URL openhorizon_studio-0.1.1-cp311-cp311-macosx_11_0_arm64.whl
Size 336.3 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9b20a5a2ea5b7869c799cda1ab6100654fd7489b2c8275d311b05527d13830dc
BLAKE2b-256 checksum
How to use checksums
1b04d54f668897713fcd3bf819c1666bf84f5a09f56327a64ef36cf1ee689317
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / openhorizon_studio-0.1.1-cp310-cp310-manylinux_2_28_aarch64.whl

Download URL openhorizon_studio-0.1.1-cp310-cp310-manylinux_2_28_aarch64.whl
Size 468.9 kB
Tags CPython 3.10 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
27fba2e2dedb9fbb7ee32d00272f4bf221bd8dd600a4f21d2ef74969d47bacb3
BLAKE2b-256 checksum
How to use checksums
90e4c07370232ca65d2514ad534c687ceff1254679b25184a5c334ec6f71ba6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / openhorizon_studio-0.1.1-cp310-cp310-macosx_11_0_arm64.whl

Download URL openhorizon_studio-0.1.1-cp310-cp310-macosx_11_0_arm64.whl
Size 326.2 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1e5bd35be78d999389b93dc6f51de7d87e669fc809ab935ef4d106f69cf8fd00
BLAKE2b-256 checksum
How to use checksums
09ee94c52ddeef71555090940560a29674d0df9e45d1001d956549b90b2d2af6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for openhorizon-studio 0.1.1

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