A bundeld set of tools, clients for the lange-suite of tools and more.
Project description
lange-python
Python helpers for Lange services.
Mesh Relay Worker
MeshRelay connects a local HTTP service to the Lange mesh relay and forwards
public relay requests to your local target.
pip install lange-python
from lange.mesh.relay import MeshRelay
relay = MeshRelay(
host="wss://api.lange-labs.com",
key="default",
target="http://localhost:3000",
)
relay.start()
try:
print(relay.status)
print(relay.remote_relay_address)
finally:
relay.stop()
By default, MeshRelay reads authentication from the LANGE_LABS_API_KEY
environment variable. Keep API keys in the environment or a local secret store
instead of hardcoding them in application code.
export LANGE_LABS_API_KEY="your-api-key"
The relay exposes lifecycle state for integrations:
status: one ofunauthenticated,off,pending,connected, orfailedconnected: whether the relay websocket is currently connectedremote_relay_address: public REST relay address returned by the APIworker_config: full worker configuration returned by the API
Reload authentication or reconnect the worker without rebuilding it:
relay.reload()
relay.reload(api_key=None)
relay.reconnect()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lange_python-0.7.0.tar.gz.
File metadata
- Download URL: lange_python-0.7.0.tar.gz
- Upload date:
- Size: 19.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42910df48df509294c2f0b5acf55f16cc09c587ab9c3e7df7e5e966fa80aa949
|
|
| MD5 |
bb04a09be1ef01a18630bf9c9bc7d915
|
|
| BLAKE2b-256 |
0d20521f0b5476279d696068d5d6bc31db9150994af5934f47dbf049412130fa
|
Provenance
The following attestation bundles were made for lange_python-0.7.0.tar.gz:
Publisher:
publish.yml on langelabs/lange-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lange_python-0.7.0.tar.gz -
Subject digest:
42910df48df509294c2f0b5acf55f16cc09c587ab9c3e7df7e5e966fa80aa949 - Sigstore transparency entry: 2082142252
- Sigstore integration time:
-
Permalink:
langelabs/lange-python@1d52f208ce365a39cd5b0d0c179056801ce29992 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/langelabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1d52f208ce365a39cd5b0d0c179056801ce29992 -
Trigger Event:
push
-
Statement type:
File details
Details for the file lange_python-0.7.0-py3-none-any.whl.
File metadata
- Download URL: lange_python-0.7.0-py3-none-any.whl
- Upload date:
- Size: 30.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4564bb673d55f39144d41a2476373e2a36a0cec407d6dc259d917c4b3ee34614
|
|
| MD5 |
cb2b2796fdf9754763c738497d849bd8
|
|
| BLAKE2b-256 |
6c1841efe603162da8fe3869b4924af7e189e3a5e85611ffebe93f85d3236c95
|
Provenance
The following attestation bundles were made for lange_python-0.7.0-py3-none-any.whl:
Publisher:
publish.yml on langelabs/lange-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lange_python-0.7.0-py3-none-any.whl -
Subject digest:
4564bb673d55f39144d41a2476373e2a36a0cec407d6dc259d917c4b3ee34614 - Sigstore transparency entry: 2082142265
- Sigstore integration time:
-
Permalink:
langelabs/lange-python@1d52f208ce365a39cd5b0d0c179056801ce29992 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/langelabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1d52f208ce365a39cd5b0d0c179056801ce29992 -
Trigger Event:
push
-
Statement type: