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_securetunnels import SBTunnel
tunnel = sbsecuretunnel.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 usernameauthkey
("") - CBT authkeydelete_after
(False) - delete the tunnel binary after kill (note: on Windows, make sure backslashes are escaped\\
)tunnel_location
(".") - location to download tunnel binary toready_file
("ready.check") - ready file for tunnel clientkill_file
("kill.check") - kill file for tunnel client
Tunnel options
These are all methods available on the tunnel object
bypass(bool)
- enable or disable bypassset_https_proxy(string)
- string should be the HTTPS proxyset_http_proxy(string)
- same as above for HTTPset_tunnel_name(string)
- set the name of the named tunnelset_pac_file(string)
- set the client to use the PAC file at path stringset_html_path(string)
- set the path to use for local HTML files to be servedset_proxy(host="string", port="string", username="string"/None, password="string/None)
- set proxy settingsset_accept_all_certs(bool)
- set whether to accept all certs in the tunnel client
Project details
Release history Release notifications | RSS feed
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.1.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for sbsecuretunnel-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb662e6d0e3dfc9e2a2027d5245e2c93370458a578a41a6ac52bc3ce1a5c17fd |
|
MD5 | 6939f09a03898c9e28898f8fc93d358f |
|
BLAKE2b-256 | f4ce7e4aafbcec99319553beed418316dd41f14b97e79630da55729dd4de9f67 |