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.0rc42

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

Total release size: 80.2 MB

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

Download URL tnldotdev_tnl-0.1.0rc42-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
34890e8ebe33d12cbf927d2cff2db6613faf86dc78880f25a2457c0f7a7813a2
BLAKE2b-256 checksum
How to use checksums
6a8eec695d9aa2975efd90aae011a05b51b0e4adad7873eac309f0b14b7ddc74
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.0rc42-py3-none-manylinux_2_17_aarch64.whl

Download URL tnldotdev_tnl-0.1.0rc42-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
e27afc1bd5cc84fbfeb5a6944b529eb8ec0df9cfdcc3f7b5bcd637ceef4b5fda
BLAKE2b-256 checksum
How to use checksums
2d6861f6d37bb975d9f59bc9bc7938f1a414e7313dc227ad1a32000efc1b103d
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.0rc42-py3-none-macosx_12_0_x86_64.whl

Download URL tnldotdev_tnl-0.1.0rc42-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
382505a8807d7c8c68fe226b794d8a5b52c4db62343d4c34c6f1f66fe970eb71
BLAKE2b-256 checksum
How to use checksums
356e796e0c5f9683bb75d3bd2ac07e32d5ad80ece64318aef417cbd81574353e
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.0rc42-py3-none-macosx_12_0_arm64.whl

Download URL tnldotdev_tnl-0.1.0rc42-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
9f7b7545e20613d4e6aa548564ed77fb275fb1c6d3ac2d6b108fc742a016f11c
BLAKE2b-256 checksum
How to use checksums
0a7c7934a0709ab8bf2a7d671b7ab642beed16ed16ecb6d8734486ca7252d845
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.0rc42

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