Skip to main content

A lightweight Python package that creates a seamless bridge between Google Colab notebooks and Localxpose service. It enables easy exposure and access to web applications running in Colab environments making it simple to test and showcase web services directly from your Colab notebooks.

Project description

loclx_colab

loclx_colab is a lightweight Python package that creates a seamless bridge between Google Colab notebooks and Localxpose service. It enables easy exposure and access to web applications running in Colab environments, making it simple to test and showcase web services directly from your Colab notebooks.

Features

  • Automatic loclx package installation
  • LocalXpose service management
  • Create, stop and list HTTP tunnels

Installation

To install the package on Colab, run:

!pip install loclx_colab

Usage

Create an HTTP tunnel

import loclx_colab.loclx as lx

port = 1234 # The service port that you want to expose
access_token = "your_access_token" # Your LocalXpose token here
url = lx.http_tunnel_start(port, access_token) 
print(f"Your service is exposed to this URL: {url}")

Stop the HTTP tunneling service

lx.http_tunnel_stop()

List HTTP tunels

lx.http_tunnel_status()

Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitHub.

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

loclx_colab-0.1.2.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file loclx_colab-0.1.2.tar.gz.

File metadata

  • Download URL: loclx_colab-0.1.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.1

File hashes

Hashes for loclx_colab-0.1.2.tar.gz
Algorithm Hash digest
SHA256 fbb6d9dbc2b008600f89041055a8c69056e27aa5e5196a6c38745f56e11a9798
MD5 e2cf75044fb32f194805a73e935ab6c0
BLAKE2b-256 2352aeb39f84ce5122ecb87cd4919cebdfef6c398eac6c20516f8a4b4c731ea9

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