cbt_tunnels
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 cbttunnels
How to use
from cbttunnels.cbt_tunnels import CBTtunnel
tunnel = CBTtunnel(username="username", authkey="authkey")
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 zip/bianry 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
Metadata
Release files for cbttunnels 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cbttunnels-0.0.3.tar.gz | 4.5 kB | Without provenance | Details for cbttunnels-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cbttunnels-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for cbttunnels-0.0.3-py3-none-any.whl |
Total release size: 9.2 kB
Release files / cbttunnels-0.0.3.tar.gz
| Download URL | cbttunnels-0.0.3.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b7eb4a760ad5563288b7a4f0eed07f4688924907be76c39afbc182a95737ae8
|
|
BLAKE2b-256 checksum How to use checksums |
b801b15095c2f5c35ed3eb14c30e5509a7f8646e45c230583149b6a6fba6e173
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.0
|
Release files / cbttunnels-0.0.3-py3-none-any.whl
| Download URL | cbttunnels-0.0.3-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9c0bb8990f1620bc72e84d17f757f71b7f1e9616c909ca102f62f930a4595cff
|
|
BLAKE2b-256 checksum How to use checksums |
ab9fffaae22086ea605497b74e3f00c7437c1a820030d47f395fc30640ae6576
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.0
|
Security for cbttunnels 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.