thrift-sasl
Thrift SASL Python module that implements SASL transports for Thrift (`TSaslClientTransport`).
What it is and what it does
thrift-sasl wraps Thrift's transport layer to add SASL (Simple Authentication and Security Layer) authentication. It provides TSaslClientTransport, which sits between a raw socket and Thrift's protocol layer, negotiating SASL authentication before RPC traffic flows. The package depends on pure-sasl for SASL mechanism implementation, six for Python 2/3 compatibility, and thrift itself.
The package is designed for applications that need to authenticate Thrift clients against SASL-enabled servers—typically in enterprise or Hadoop-adjacent environments. However, it has been abandoned since 2021-05-26 and receives no maintenance, so it carries risk if you encounter bugs or need support for newer Thrift or Python versions.
Use it for:
- Authenticate Thrift clients against Kerberos-enabled servers in distributed systems
- Secure RPC communication in legacy systems that rely on Thrift and SASL authentication
- Add authentication to Thrift services without implementing custom security layers
- Integrate Thrift clients with enterprise SASL-based authentication backends
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Implements SASL authentication transports for Thrift RPC clients, enabling secure authentication over Thrift connections using the TSaslClientTransport.
No, unless you are maintaining legacy code already using thrift-sasl. The package is abandoned (last release 2021-05-26, no commits since), and modern alternatives or direct Thrift security mechanisms are preferable. If you must use it, treat it as a maintenance burden and plan for eventual replacement.
Install
thrift-sasl on PyPI
pip
pip install thrift-sasluv
uv add thrift-saslpoetry
poetry add thrift-saslInstalling thrift-sasl
Before you install
Low install friction with pure-Python dependencies. However, the package is abandoned—last release was 2021-05-26 with no recent maintenance. Use only if you are locked into an existing Thrift SASL integration and cannot migrate.
License in practice
Licensed under Apache License, Version 2.0 (permissive), allowing commercial and private use with minimal restrictions. No notable licensing barriers to adoption.
Quickstart
pip install thrift-sasl
from thrift_sasl import TSaslClientTransport
from thrift.transport import TSocket
socket = TSocket.TSocket('localhost', 'port')
transport = TSaslClientTransport(socket, 'host', 'mechanism')
Requires a working Thrift installation and a SASL mechanism available on the system; pure-sasl provides fallback SASL support.
Verify before relying
- Whether pure-sasl provides sufficient SASL mechanism coverage for your target authentication backend
- Compatibility with modern Thrift versions and current Python 3.x releases beyond 3.9
- Whether the package's dependencies (six, thrift) are actively maintained
Package facts
| License | Apache License, Version 2.0 (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — pure-sasl, six, thrift |
| Maintenance | abandoned — 1,906 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 11,626,242/month — #1,376 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: thrift_sasl-0.4.3-py2.py3-none-any.whl
Keywords: thrift, sasl, transport
Tags
More Networking packages
h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
psutilpsutil retrieves real-time information about…
permissive · top 1,000 on PyPI
pyOpenSSLpyOpenSSL wraps OpenSSL's SSL/TLS functionality…
permissive · top 1,000 on PyPI
uvloopuvloop is a drop-in replacement for Python's…
permissive · top 1,000 on PyPI
execnetexecnet lets you spawn and communicate with…
permissive · top 1,000 on PyPI
pyzmqPyZMQ provides Python bindings for ZeroMQ…
permissive · top 1,000 on PyPI
pure-transportProvides a Thrift transport for PyHive…
permissive · top 15,000 on PyPI
thriftThrift is the Python bindings for Apache…
permissive · top 1,000 on PyPI
thriftpy2ThriftPy2 is a pure Python implementation of…
permissive · top 5,000 on PyPI
pure-saslpure-sasl is a pure Python client-side SASL…
permissive · top 5,000 on PyPI
hmsclientA Python client for connecting to and querying…
permissive · top 5,000 on PyPI
hive-metastore-clientA Python client for connecting to Apache Hive…
unclear · top 15,000 on PyPI
opentelemetry-exporter-jaeger-thriftExports OpenTelemetry tracing data to Jaeger…
permissive · top 15,000 on PyPI
pylibsrtppylibsrtp encrypts and decrypts Secure…
permissive · top 5,000 on PyPI
httpx-aiohttpProvides aiohttp-based transports for httpx,…
unclear · top 5,000 on PyPI
paypalhttpPayPalHttp is a generic HTTP client library…
permissive · top 5,000 on PyPI