Skip to main content

A wrapper for Smartbear SecureTunnel, to make testing local sites easier in CrossBrowserTesting

Project description

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

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

sbsecuretunnel-0.0.3.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

sbsecuretunnel-0.0.3-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file sbsecuretunnel-0.0.3.tar.gz.

File metadata

  • Download URL: sbsecuretunnel-0.0.3.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for sbsecuretunnel-0.0.3.tar.gz
Algorithm Hash digest
SHA256 302bcc6bc9a0b7d376f56d6d7bbdc5ab511e28492a12a9a330aa81a96f673365
MD5 0770704efd59f592c47ef31656947009
BLAKE2b-256 5618e2d8709d516bdfdbf0c3abaaa719ad000f1d83fc5eda7aff52832e461def

See more details on using hashes here.

File details

Details for the file sbsecuretunnel-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: sbsecuretunnel-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for sbsecuretunnel-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 343ee90145dd3edf732b6a0a22a8ca541369618be9fbb3430904116ae3e120f0
MD5 3c07ccfc73ebedd75e1373f6788d84dd
BLAKE2b-256 6f687aca0d2bfa9155e257f02bdc00c1467a0db33ebe47adaf034690be04e58e

See more details on using hashes here.

Supported by

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