pyexpose.providers package
Submodules
pyexpose.providers.localhost_run module
- class pyexpose.providers.localhost_run.LocalRunConnector[source]
Bases:
ExposeConnectorConnector to localhost.run service, It only supports HTTP/HTTPS endpoints right now
from pyexpose.providers.localhost_run import LocalRunConnector connector = LocalRunConnector() async with serveo.connect() as session: async with session.tunnel(8080) as tunnel: print("localhost.run exposed ip is " + tunnel.ip)
- get_factory() Callable[[], LocalRunSession][source]
Returns a factory function that creates a new
ExposeSessionVarinstance.- Returns:
A factory function that creates a new
ExposeSessionVarinstance.- Return type:
Callable[[],
ExposeSessionVar]
- class pyexpose.providers.localhost_run.LocalRunSession(session: SSHClientConnection, stdin: SSHWriter, stdout: SSHReader, stderr: SSHReader)[source]
Bases:
ExposeSessionSession for localhost.run service
pyexpose.providers.serveo module
- class pyexpose.providers.serveo.ServeoConnector[source]
Bases:
ExposeConnectorProvider to connect to serveo.net, a free ssh tunneling service.
from pyexpose.providers.serveo import ServeoConnector connector = ServeoConnector() async with connector.connect() as session: async with session.tunnel(8080) as tunnel: print("serveo.net exposed ip is " + tunnel.ip)
- get_factory() Callable[[], ServeoSession][source]
Returns a factory function that creates a new
ExposeSessionVarinstance.- Returns:
A factory function that creates a new
ExposeSessionVarinstance.- Return type:
Callable[[],
ExposeSessionVar]
- class pyexpose.providers.serveo.ServeoSession(session: SSHClientConnection, stdin: SSHWriter, stdout: SSHReader, stderr: SSHReader)[source]
Bases:
ExposeSessionSession for serveo