Skip to main content

sbsecuretunnel

A python module to make using tunnels easy.

Note: this is pre-release software. If you encounter any problems, please reach out to CrossBrowserTesting

pip

pip install sbsecuretunnel

How to use

from sbsecuretunnel.sb_securetunnel import SBTunnel
tunnel = SBTunnel(username="you@email.com", authkey="yourauthkey")
tunnel.start_tunnel()
...
tunnel.kill_tunnel()

Features

  • Automatically gets the correct tunnel for your platform
  • Handles cleanly starting and stopping the tunnel connection
  • Handles all features of the tunnel

Creating a tunnel object

The tunnel object is created with the following options:

  • username ("") - CBT username
  • authkey ("") - CBT authkey
  • delete_after (False) - delete the tunnel binary after kill (note: on Windows, make sure backslashes are escaped \\)
  • tunnel_location (".") - location to download tunnel binary to
  • ready_file ("ready.check") - ready file for tunnel client
  • kill_file ("kill.check") - kill file for tunnel client

Tunnel options

These are all methods available on the tunnel object

  • bypass(bool) - enable or disable bypass
  • set_https_proxy(string) - string should be the HTTPS proxy
  • set_http_proxy(string) - same as above for HTTP
  • set_tunnel_name(string) - set the name of the named tunnel
  • set_pac_file(string) - set the client to use the PAC file at path string
  • set_html_path(string) - set the path to use for local HTML files to be served
  • set_proxy(host="string", port="string", username="string"/None, password="string/None) - set proxy settings
  • set_accept_all_certs(bool) - set whether to accept all certs in the tunnel client

Metadata

Release files for sbsecuretunnel 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sbsecuretunnel 0.0.3
File Size Uploaded
sbsecuretunnel-0.0.3.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sbsecuretunnel 0.0.3
File Interpreter ABI Platform
sbsecuretunnel-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 9.1 kB

Release files / sbsecuretunnel-0.0.3.tar.gz

Download URL sbsecuretunnel-0.0.3.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
302bcc6bc9a0b7d376f56d6d7bbdc5ab511e28492a12a9a330aa81a96f673365
BLAKE2b-256 checksum
How to use checksums
5618e2d8709d516bdfdbf0c3abaaa719ad000f1d83fc5eda7aff52832e461def
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

Release files / sbsecuretunnel-0.0.3-py3-none-any.whl

Download URL sbsecuretunnel-0.0.3-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
343ee90145dd3edf732b6a0a22a8ca541369618be9fbb3430904116ae3e120f0
BLAKE2b-256 checksum
How to use checksums
6f687aca0d2bfa9155e257f02bdc00c1467a0db33ebe47adaf034690be04e58e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.1

2 release files

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