Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

BSSL Integrations

Made in Ukraine license pypi python versions CI uv

BSSL project integration with existing http clients

Supported projects

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

Release files for bssl-integrations 1.0.0a0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bssl-integrations 1.0.0a0
File Size Uploaded
bssl_integrations-1.0.0a0.tar.gz 9.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bssl-integrations 1.0.0a0
File Interpreter ABI Platform
bssl_integrations-1.0.0a0-py3-none-any.whl Python 3 none any Details

Total release size: 21.8 kB

Release files / bssl_integrations-1.0.0a0.tar.gz

Download URL bssl_integrations-1.0.0a0.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4f224038cc07a932a3b81949a8ef8af46fdc8cd986e3a245bc2aba9d0ea13186
BLAKE2b-256 checksum
How to use checksums
8657632836cf2721893a0caaa440dfe15835d53afade6a8eed109052710173f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2025.

Transparency log

Release files / bssl_integrations-1.0.0a0-py3-none-any.whl

Download URL bssl_integrations-1.0.0a0-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ed612ee019b86b66c73c25a4f110aad373d7f01a9b0c23b51c3f02606e88cdec
BLAKE2b-256 checksum
How to use checksums
532a3398fb27f79e8c8a9ba519a5b314b5d67aeae913a64158e6bbeafc2914d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.0a0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page