skillfed

thrift-sasl

Thrift SASL Python module that implements SASL transports for Thrift (`TSaslClientTransport`).

thrift-sasl v0.4.3 11.6M downloads/30d#1,376 on PyPI18
Permissive license Apache License, Version 2.0 Abandoned released

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-sasl

uv

uv add thrift-sasl

poetry

poetry add thrift-sasl

Installing 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

Programming Language :: Python :: 2Programming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

thrift sasl authenticationsasl transport for thriftthrift client authenticationrpc sasl securitythrift secure transportsasl client transportthrift authentication module
abandonedlegacy-rpcauthentication

More Networking packages