Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

tnldotdev-tnl

Give your Python ASGI app an HTTPS URL through tnl. Requires Python 3.12+ on macOS or Linux, arm64 or x64.

publish an asgi app

Install the tnl CLI for setup, then add the SDK and prepare a namespace publisher:

uv add tnldotdev-tnl
tnl auth login
tnl publisher setup --namespace

If your ASGI app lives in myapp.py, save this as preview.py:

import asyncio

import tnl
from myapp import app


async def main():
    async with tnl.open(app) as tunnel:
        print(tunnel.url)
        await tunnel.wait()


asyncio.run(main())

Run uv run python preview.py. tnl starts the app and waits until its temporary public URL can receive visitors. Press Ctrl+C to remove the URL and stop the app. By default, visitors need a current sign-in, share link, or token.

To use a provisioned publisher credential instead of local setup, pass publisher_credential_file="/absolute/private/publisher.json" to tnl.open, or set TNL_PUBLISHER_CREDENTIAL_FILE.

use a configured app

Declare an app service in tnl.yml:

version: 1
tnl:
  services:
    api:
      public_url: {}
      target:
        type: app

Then start it with Uvicorn through tnl:

import tnl

if __name__ == "__main__":
    tnl.run("myapp:app", service="api", port=0, reload=True)

Run from the project directory. service="api" selects the service above. port=0 picks a free port, and tnl wait checks public readiness. Restart the project's apps together after changing configuration.

connect to a service

Use await tnl.connect("database") to get settings for a declared service. The platform wheel includes the native tnl binary required for every protocol. See Python connection examples for PostgreSQL, TCP, Kubernetes, and the current MySQL and HTTP adapter limits.

Metadata

Release files for tnldotdev-tnl 0.1.0rc43

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 tnldotdev-tnl 0.1.0rc43
File Actions
tnldotdev_tnl-0.1.0rc43-py3-none-manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for tnldotdev_tnl-0.1.0rc43-py3-none-manylinux_2_17_x86_64.whl
tnldotdev_tnl-0.1.0rc43-py3-none-manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for tnldotdev_tnl-0.1.0rc43-py3-none-manylinux_2_17_aarch64.whl
tnldotdev_tnl-0.1.0rc43-py3-none-macosx_12_0_x86_64.whl Python 3 none macOS 12.0+ x86-64 Details for tnldotdev_tnl-0.1.0rc43-py3-none-macosx_12_0_x86_64.whl
tnldotdev_tnl-0.1.0rc43-py3-none-macosx_12_0_arm64.whl Python 3 none macOS 12.0+ ARM64 Details for tnldotdev_tnl-0.1.0rc43-py3-none-macosx_12_0_arm64.whl

Total release size: 80.2 MB

Release files / tnldotdev_tnl-0.1.0rc43-py3-none-manylinux_2_17_x86_64.whl

Download URL tnldotdev_tnl-0.1.0rc43-py3-none-manylinux_2_17_x86_64.whl
Size 20.8 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
99b6fac8c11e3beabe68499120f65a6a00c548799325b1dd30f4ab3badbfcd29
BLAKE2b-256 checksum
How to use checksums
cb17f778c4adcd310912b8e0a58d680df09bbc38abd95d686b6bca08dcbad8f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / tnldotdev_tnl-0.1.0rc43-py3-none-manylinux_2_17_aarch64.whl

Download URL tnldotdev_tnl-0.1.0rc43-py3-none-manylinux_2_17_aarch64.whl
Size 18.7 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
d2662ceae8f8945afc1850b2d9e144de7df56e4f445dc5f7bfbb1b6042fa4741
BLAKE2b-256 checksum
How to use checksums
c230324ec31cc863e14851194e349111eea59e9dcd4cae351b3900eaa2daddf6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / tnldotdev_tnl-0.1.0rc43-py3-none-macosx_12_0_x86_64.whl

Download URL tnldotdev_tnl-0.1.0rc43-py3-none-macosx_12_0_x86_64.whl
Size 21.1 MB
Tags Python 3 macOS 12.0+ x86-64
SHA-256 checksum
How to use checksums
9fb467aee988b75267fa931613698c3f3bdb0a43b42fa52c424230d288179db7
BLAKE2b-256 checksum
How to use checksums
6e5cd68aae1146fda3a3d005de0ec4608f8e6948da5f4c9dfc8cb67eece523e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / tnldotdev_tnl-0.1.0rc43-py3-none-macosx_12_0_arm64.whl

Download URL tnldotdev_tnl-0.1.0rc43-py3-none-macosx_12_0_arm64.whl
Size 19.5 MB
Tags Python 3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
323e76601439001c2bf3eaa87fbdb845fd09f1fa3dd6ab89a5b1d1cb6024e281
BLAKE2b-256 checksum
How to use checksums
634ad48ecf902719feee7cea7d10364ff97663019f29143dffe02acc8ee79b22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for tnldotdev-tnl 0.1.0rc43

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