Skip to main content
Latest version on PyPI Supported Python versions CI Status Code coverage status

Run Python interactively inside live apps and devices.

herethere starts a small SSH-backed server inside a Python process, then lets you connect from the there CLI, another Python session, or a Jupyter notebook to inspect, modify, and interact with the namespace of that running process.

It was created for workflows where Python is running inside an app, device, or environment that is awkward to interact with directly. The same idea is useful for Raspberry Pi and robotics projects, Kivy/mobile apps, containers, long-running experiments, server-side apps, and other cases where logs or a separate remote shell are not enough.

herethere is based on the AsyncSSH library. AsyncSSH provides the SSH toolkit; herethere adds a small Python, CLI, and Jupyter workflow layer on top.

Code repository:

https://github.com/b3b/herethere

Documentation:

https://herethere.me/library

Features

  • Execute Python snippets inside the namespace of a live target process.

  • Connect using the there CLI, Python code, or Jupyter notebooks with %connect-there and %%there.

  • Retrieve values, view logs, run shell commands, and transfer files.

  • Produce structured JSON output for scripts and coding agents.

  • Use SSH authentication and encrypted transport through AsyncSSH.

  • Generate reviewable notebook cells from natural-language requests with %%there ai.

Installation

Install herethere in the Python environment that will start the server:

pip install herethere

If you want to connect from Jupyter using the IPython magics, install the magic extra in the notebook/client environment:

pip install "herethere[magic]"

Quickstart

Target process

Start herethere inside the Python process you want to interact with.

from herethere.here import ServerConfig, start_server

state = {"speed": 1}

await start_server(ServerConfig.load(prefix="here"), namespace=globals())

Terminal client

Run code or retrieve a value from the target process:

there run --code "state['speed'] = 3"
there get "state"

Use structured output for scripts and coding agents:

there --json get "state"

Jupyter notebook / client

Connect from your local Jupyter notebook:

%load_ext herethere.magic
%connect-there

Use the %%there cell magic to inspect variables, call functions, or update state while the target process keeps running:

%%there

print(state)
state["speed"] = 3
print(state)

Agent skill

herethere bundles an agent skill for using the there CLI. Install it for your project with Library Skills:

uvx library-skills

Trust model

A connected client can execute Python code inside the target process. Treat access to herethere like access to a Python REPL running inside your app.

Use it only for development workflows where you control both sides of the connection. Do not expose it publicly or give access to untrusted users.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

herethere-0.3.1.tar.gz (60.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

herethere-0.3.1-py3-none-any.whl (63.2 kB view details)

Uploaded Python 3

File details

Details for the file herethere-0.3.1.tar.gz.

File metadata

  • Download URL: herethere-0.3.1.tar.gz
  • Upload date:
  • Size: 60.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.10.20

File hashes

Hashes for herethere-0.3.1.tar.gz
Algorithm Hash digest
SHA256 8ea7a682a52cc5b99fdefa70a0f712c16691a633f72f43530c10e979d6c37ceb
MD5 69b65f34f1c5f43d90c0a2502aeec094
BLAKE2b-256 65397649caa906504bc73931d4e9d08f992c411f30ecc2c2f90ffe0546177b34

See more details on using hashes here.

File details

Details for the file herethere-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: herethere-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 63.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.10.20

File hashes

Hashes for herethere-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 26c6638f38d0c03a785efcd607645ffaec4bca0de584d19d3ed55b64d1319c0f
MD5 479b46d237e71f11654db302c4d61573
BLAKE2b-256 14ddbd60a211ceedad92f39a3f0edd3cf29de51afaf0032c33ad7a7cbc4d9146

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.2

2 files

This release

0.3.1 This release

2 files

0.3.0

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

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