magic_utils.tunnel package

Submodules

magic_utils.tunnel.tunnelmole module

Manage a tunnelmole process that exposes a local port via a public URL.

class magic_utils.tunnel.tunnelmole.TunnelMole(port: int = 8000)[source]

Bases: object

Manage a tunnelmole process that exposes a local port via a public URL.

is_running() bool[source]

Check if tunnelmole is still running.

start() str | None[source]

Start the tunnelmole process.

Returns:

If successful returns None, if no url was found the shell response of the command is returned.

stop()[source]

Stop the tunnelmole process if it’s running.

Module contents