Skip to main content

A-tunnel is a tool to expose localhost to the public internet using Cloudflare Quick Tunnels

Project description

A-tunnel

A minimal Python package to expose localhost to the public internet using Cloudflare Quick Tunnels.

  • Zero config.
  • No more login
  • Fast startup

😂 Why A-tunnel Exists

We've all seen that:

https://github.com/user-attachments/assets/6760cfc2-c917-40bf-aff6-9563e0dcfe9d

Before: "Bro, check out my website! http://localhost:3000" 😅

After: "Bro, check out my website! https://your-site.trycloudflare.com" ✨

Installation

# Using pip
pip install atunnel

# Or using uv
uv add atunnel

Usage

CLI

# Expose local port 8080
atunnel --port 8080

# With uv
uv run atunnel --port 8080

The public URL is printed to stdout. Press Ctrl+C to stop.

Python API

from atunnel.tunnel import Tunnel

with Tunnel(port=8080) as t:
    print(f"Public URL: {t.public_url}")
    input("Press Enter to stop...")

Security Notice

A-tunnel exposes your local development server to the public internet!

Please keep the following in mind:

  • Don't expose sensitive data: Never use A-tunnel with development servers that have access to production databases, API keys, or sensitive information
  • Use authentication: Ensure your development application has proper authentication enabled
  • Not for production: This tool is designed for development and testing purposes only

Project details


Download files

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

Source Distribution

atunnel-1.0.2.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

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

atunnel-1.0.2-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file atunnel-1.0.2.tar.gz.

File metadata

  • Download URL: atunnel-1.0.2.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for atunnel-1.0.2.tar.gz
Algorithm Hash digest
SHA256 cf499387c90dcb7e7c8a630bdc41f31aa812f1f72a519d99356c6a8f7a146a80
MD5 f6812edd2c3990cfaa088e7a7838ba48
BLAKE2b-256 f642f3691cee40162190ae6e8a3157f141e75bfecae5af805e31da72a3567beb

See more details on using hashes here.

File details

Details for the file atunnel-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: atunnel-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for atunnel-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b3692d4d3fac0d0961a2341e3a1680abd35dceb188487a96a0db596cd469754b
MD5 baa29c1f14e10f9e2694a6f79b9dd489
BLAKE2b-256 b10d4ed92fed5b76fd4348aa84e55658482d7772e61ef9c0d88097bb70cf949d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page