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 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
302bcc6bc9a0b7d376f56d6d7bbdc5ab511e28492a12a9a330aa81a96f673365
|
|
| MD5 |
0770704efd59f592c47ef31656947009
|
|
| BLAKE2b-256 |
5618e2d8709d516bdfdbf0c3abaaa719ad000f1d83fc5eda7aff52832e461def
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
343ee90145dd3edf732b6a0a22a8ca541369618be9fbb3430904116ae3e120f0
|
|
| MD5 |
3c07ccfc73ebedd75e1373f6788d84dd
|
|
| BLAKE2b-256 |
6f687aca0d2bfa9155e257f02bdc00c1467a0db33ebe47adaf034690be04e58e
|