skillfed

pure-transport

Pure Sasl Based Thrift Transport for PyHive

pure-transport v0.2.0 220.2K downloads/30d#9,311 on PyPI17
Permissive license GPLv3+ Abandoned released

What it is and what it does

pure-transport wraps the Thrift protocol layer to enable PyHive connections using Pure-SASL authentication instead of the system sasl library. It was designed primarily to work around compilation difficulties on Windows, where the sasl library is hard to build from source, and secondarily to support custom socket types like SSL. The package depends on thrift, pure-sasl, and thrift-sasl to function.

The transport accepts basic SSL configuration through use_ssl and socket_kwargs parameters. However, the package has been abandoned since early 2020 and is classified as Alpha. It also has a known incompatibility with SQLAlchemy engines due to PyHive's internal assertions about connection parameters, which the author documents but does not resolve within pure-transport itself.

Use it for:

  • Connecting to Hive from Windows systems where compiling the sasl library is impractical or blocked.
  • Establishing encrypted Hive connections via SSL sockets when the default PyHive transport is insufficient.
  • Providing a custom Thrift transport layer to PyHive when standard authentication mechanisms are unavailable.
  • Avoiding system-level sasl library dependencies in containerized or restricted deployment environments.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides a Thrift transport for PyHive connections using Pure-SASL authentication, with optional SSL socket support as an alternative to the standard sasl library.

No, not recommended for new projects. The package is abandoned (last release 2020-01-29, no commits since), classified as Alpha, and relies on outdated Python version support (up to 3.4). While install friction is low and there are no known vulnerabilities, the lack of maintenance means compatibility with modern Python, Thrift, and Hive versions is uncertain. For Windows users needing pure-SASL, evaluate whether PyHive itself or alternative Hive clients now have better native support.

Install

pure-transport on PyPI

pip

pip install pure-transport

uv

uv add pure-transport

poetry

poetry add pure-transport

Installing pure-transport

Before you install

Low install friction with a pure Python wheel, but the package is abandoned as of 2020-01-29 with no recent maintenance. The three runtime dependencies (thrift, pure-sasl, thrift-sasl) are stable libraries, but relying on unmaintained code for production Hive connections carries risk.

License in practice

Licensed under GPLv3+, a copyleft license requiring derivative works to be distributed under the same terms. This may restrict use in proprietary or closed-source projects.

Quickstart

pip install pure-transport

from pure_transport import PureTransport
transport = PureTransport(host='localhost', port=10000, use_ssl=False)

Requires PyHive to be installed separately; PyHive itself has its own dependencies and setup requirements. SQLAlchemy integration requires manual edits to PyHive's hive.py file due to assertion conflicts.

Verify before relying

  • Whether pure-sasl and thrift-sasl remain actively maintained and compatible with modern Python versions beyond 3.4.
  • Current compatibility with modern Hive server versions and whether SSL socket support covers all required cipher suites.
  • Whether the package works with Python versions beyond those listed in classifiers (3.3, 3.4).

Package facts

License GPLv3+ (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 3 — thrift, pure-sasl, thrift-sasl
Maintenance abandoned — 2,389 days since the last release
Last repo commit
First released
Downloads 220,152/month — #9,311 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pure_transport-0.2.0-py3-none-any.whl

Keywords: pyhive

Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Topic :: Software Development :: Libraries :: Python Modules

Tags

pyhive thrift transportpure-sasl hive connectionhive ssl socketthrift transport saslwindows hive clientpyhive custom transport
hive-clientabandoned

More Python Modules packages