Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.6.0 instead.

nestor-satellite

Python SDK to write satellites for Nestor: devices (a Raspberry Pi speaker, a robot, a screen with a keyboard) that pair with a Nestor server, hold one WebSocket link to it, talk with the assistant in writing, aloud or both, carry out its intents and report what they observe, following the nestor.satellite/1 protocol. It does not depend on the Nestor server, and audio (WebRTC) is the voice extra: a device in writing needs none of it.

Documentation: nestorhome.dev/docs/sdks/python (pairing options, the command, conformance).

pip install 'nestor-satellite[voice,sounddevice]'
NESTOR_PAIRING_URI='nestor+http://nestor.local:8471/?code=K7QF2M9X' nestor-satellite run --room salon

pip install nestor-satellite      # in writing only: type on stdin, read the answers
nestor-satellite run --core http://nestor.local:8471 --room bureau --text --no-voice

A driver of your own:

import asyncio

from nestor_satellite import EXPRESSION, IDENTIFY, Body, Device, Manifest, Satellite, TokenStore
from nestor_satellite.devices import Microphone, Speaker


class Led(Body):
    def behavior(self, behavior):
        print("attitude:", behavior)  # idle, listening, thinking, speaking

    def expression(self, expression, intensity):
        print("expression:", expression, intensity)

    def identify(self):
        print("blink!")  # a person is telling devices apart


satellite = Satellite(
    "http://nestor.local:8471",
    Manifest.of(Device("enceinte-salon", "raspberry-pi-4", "salon"), EXPRESSION, IDENTIFY),
    tokens=TokenStore("~/.config/nestor-satellite/enceinte-salon.json"),
    body=Led(),
    source=Microphone(),  # audio.capture, with the voice extra
    sink=Speaker(),  # audio.playback
    text_display=lambda text, final: print(text),  # text.display
    text_input=True,  # text.input: satellite.send_text("…")
)
asyncio.run(satellite.run())  # pairs the first time, then stays connected and reconnects

The text and audio capabilities follow from what the satellite is given; the manifest declares the others (body, sensors).

Updates from Nestor: run the command with --managed (under a service manager), or give a driver updater=PypiUpdater("my-satellite", module="my_satellite") and name its package in the manifest (software=Software.of("my-satellite")). The device finds newer versions on PyPI itself, installs one only when a person asks for it in Nestor, starts again on it, and goes back to the previous one if it is not welcomed within a minute. See Updates in the protocol.

The recorded voice that says device codes is shared under CC BY 4.0: see src/nestor_satellite/voice/LICENSE.

Development

The tests run the SDK against the Nestor server's conformance suite: the server (nestor-home) is a dev dependency, pinned and taken from PyPI. To test against a local checkout of the server instead (the project's environment wins over uv run --with): uv pip install -e '../nestor[voice]', then uv run --no-sync pytest; uv sync puts the pinned server back.

uv sync --all-extras
uv run pre-commit install
uv run ruff check && uv run ruff format --check && uv run ty check && uv run pytest

License

MIT

Metadata

Release files for nestor-satellite 0.5.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 nestor-satellite 0.5.0
File Size Uploaded Provenance Actions
nestor_satellite-0.5.0.tar.gz 460.2 kB Without provenance Details for nestor_satellite-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nestor-satellite 0.5.0
File Interpreter ABI Platform Actions
nestor_satellite-0.5.0-py3-none-any.whl Python 3 none any Details for nestor_satellite-0.5.0-py3-none-any.whl

Total release size: 936.4 kB

Release files / nestor_satellite-0.5.0.tar.gz

Download URL nestor_satellite-0.5.0.tar.gz
Size 460.2 kB
Tags Source
SHA-256 checksum
How to use checksums
cdb6b7065ea71691e7e1ca30a284ea4fc324dca1ca907fe68c3ed6c09aacf3d3
BLAKE2b-256 checksum
How to use checksums
7adc48da22866adebebf820f6e844485baff21d7332abb242f741e8ff5d2b089
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / nestor_satellite-0.5.0-py3-none-any.whl

Download URL nestor_satellite-0.5.0-py3-none-any.whl
Size 476.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a81b5555aa72a69fc2431417322cf95ad47f0d0b93d542577361e95bdd9c846f
BLAKE2b-256 checksum
How to use checksums
486ddb891c6901b2745db27a6a0e7f67bd3e78eb63415abf7e1682cf701a0757
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for nestor-satellite 0.5.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.

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