Registry / http-networking / prime-tunnel

prime-tunnel

JSON →
library0.1.6pypypi✓ verified 86d ago

Python SDK from Prime Intellect to expose local services (e.g. Jupyter, web apps) via secure tunnels. Version 0.1.6, released monthly. Requires Python ≥3.10.

pip install prime-tunnel
INSTALL
IMPORT
SIG · PRIME-TUNNEL
P
prime-tunnel
http-networkingpythonv0.1.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TunnelClient
from prime_tunnel import TunnelClient
Primary class to create tunnels.

Initialize a tunnel client with your Prime API key and expose a local port.

from prime_tunnel import TunnelClient import os client = TunnelClient(api_key=os.environ.get('PRIME_API_KEY', '')) # Expose local port 8888 tunnel = client.create_tunnel(port=8888) print(f"Tunnel URL: {tunnel.url}")
prime --version
Debug
Known issues
gotchaAPI key required for all tunnel operations. Set PRIME_API_KEY environment variable or pass it to the constructor.
fix
export PRIME_API_KEY='your_key_here' or use os.environ.get('PRIME_API_KEY', '')
affects: *
gotchaTunnel URLs are transient; the service may assign a different URL each time.
fix
Persist the URL if needed; re-create tunnels if the URL changes.
affects: 0.1.x
Errors
Common errors & fixes
AttributeError: module 'prime_tunnel' has no attribute 'TunnelClient'
Installed wrong package or import path incorrect.
fix
pip uninstall prime-tunnel && pip install prime-tunnel && from prime_tunnel import TunnelClient
prime_tunnel.exceptions.AuthenticationError: Invalid API key
API key missing or incorrect.
fix
Set PRIME_API_KEY environment variable to a valid key from Prime Intellect Console.
Upgrade
Version history
0.1.6latest on PyPI · released Apr 13, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
prime-tunnel — pip install prime-tunnel · libregistry