BSSL project integration with existing http clients
Project description
BSSL Integrations
BSSL project integration with existing http clients
Supported projects
- aiohttp
- aiohttp-socks
- httpx sync
Clientwithout proxy support (yet)
Installation
Project is available on PyPI (now in prerelease stage, so you need to allow prerelease installation).
pip install --pre bssl-integrations
poetry add --allow-prereleases bssl-integrations
uv add --prerelease if-necessary bssl-integrations # explicitly allow prelease
❗Note that the HTTP client libraries must be installed separately.
Usage
Aiohttp
Module expose BSSLConnector class, which is a subclass of aiohttp.TCPConnector with bssl context.
import aiohttp
import bssl
from bssl_integrations.aiohttp import BSSLConnector
my_tls_config = bssl.TLSClientConfiguration(...)
connector = BSSLConnector(my_tls_config)
session = aiohttp.ClientSession(connector=connector)
# do with session whatever you want
Aiohttp-socks
As aiohttp connector above, but with socks proxy support.
See aiohttp-socks for more info.
import aiohttp
import bssl
from bssl_integrations.aiohttp_socks import BSSLProxyConnector
my_tls_config = bssl.TLSClientConfiguration(...)
connector = BSSLProxyConnector(
host="127.0.0.1",
port=1080,
username="user",
password="password",
dest_tls_config=my_tls_config,
)
# OR
connector = BSSLProxyConnector.from_url("socks5://user:password@127.0.0.1:1080", dest_tls_config=my_tls_config)
session = aiohttp.ClientSession(connector=connector)
# do with session whatever you want
❗ Note that you need aiohttp-socks to be installed.
Httpx
import httpx
import bssl
from bssl_integrations.httpx import BSSLTransport
my_tls_config = bssl.TLSClientConfiguration(...)
transport = BSSLTransport(my_tls_config)
client = httpx.Client(transport=transport)
# do with client whatever you want
Credits
- bssl
- tls.peet.ws - TLS fingerprinting API
- jsonip.com - IP API
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 bssl_integrations-1.0.0a0.tar.gz.
File metadata
- Download URL: bssl_integrations-1.0.0a0.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f224038cc07a932a3b81949a8ef8af46fdc8cd986e3a245bc2aba9d0ea13186
|
|
| MD5 |
198f0b4883306f883e2aa3a4846daf3f
|
|
| BLAKE2b-256 |
8657632836cf2721893a0caaa440dfe15835d53afade6a8eed109052710173f6
|
Provenance
The following attestation bundles were made for bssl_integrations-1.0.0a0.tar.gz:
Publisher:
ci.yml on somespecialone/bssl-integrations
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bssl_integrations-1.0.0a0.tar.gz -
Subject digest:
4f224038cc07a932a3b81949a8ef8af46fdc8cd986e3a245bc2aba9d0ea13186 - Sigstore transparency entry: 627802674
- Sigstore integration time:
-
Permalink:
somespecialone/bssl-integrations@c3ebc7b186623c8de74c66119b65bfbb38c4a160 -
Branch / Tag:
refs/tags/v1.0.0a0 - Owner: https://github.com/somespecialone
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@c3ebc7b186623c8de74c66119b65bfbb38c4a160 -
Trigger Event:
push
-
Statement type:
File details
Details for the file bssl_integrations-1.0.0a0-py3-none-any.whl.
File metadata
- Download URL: bssl_integrations-1.0.0a0-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed612ee019b86b66c73c25a4f110aad373d7f01a9b0c23b51c3f02606e88cdec
|
|
| MD5 |
0714e19a47faea744273bbcd6aabcf8e
|
|
| BLAKE2b-256 |
532a3398fb27f79e8c8a9ba519a5b314b5d67aeae913a64158e6bbeafc2914d0
|
Provenance
The following attestation bundles were made for bssl_integrations-1.0.0a0-py3-none-any.whl:
Publisher:
ci.yml on somespecialone/bssl-integrations
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bssl_integrations-1.0.0a0-py3-none-any.whl -
Subject digest:
ed612ee019b86b66c73c25a4f110aad373d7f01a9b0c23b51c3f02606e88cdec - Sigstore transparency entry: 627802701
- Sigstore integration time:
-
Permalink:
somespecialone/bssl-integrations@c3ebc7b186623c8de74c66119b65bfbb38c4a160 -
Branch / Tag:
refs/tags/v1.0.0a0 - Owner: https://github.com/somespecialone
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@c3ebc7b186623c8de74c66119b65bfbb38c4a160 -
Trigger Event:
push
-
Statement type: