pure-transport
Pure Sasl Based Thrift Transport for PyHive
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-transportuv
uv add pure-transportpoetry
poetry add pure-transportInstalling 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
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
pure-saslpure-sasl is a pure Python client-side SASL…
permissive · top 5,000 on PyPI
thrift-saslImplements SASL authentication transports for…
permissive · top 5,000 on PyPI
hmsclientA Python client for connecting to and querying…
permissive · top 5,000 on PyPI
PyHivePyHive provides DB-API and SQLAlchemy…
permissive · top 5,000 on PyPI
thriftpy2ThriftPy2 is a pure Python implementation of…
permissive · top 5,000 on PyPI
hive-metastore-clientA Python client for connecting to Apache Hive…
unclear · top 15,000 on PyPI
thriftThrift is the Python bindings for Apache…
permissive · top 1,000 on PyPI
pymetastorepymetastore is a Python client for the Hive…
permissive · top 15,000 on PyPI
pyhiveapiA Python library for controlling Hive smart…
permissive · top 15,000 on PyPI