Skip to main content

Native HDFS Python bindings based on hdfs-native Rust package.

Installation

pip install hdfs-native

Example

from hdfs_native import Client
client = Client("hdfs://localhost:9000")

status = client.get_file_info("/file.txt")

To use explicit Kerberos credentials, pass the principal and optionally a keytab and/or credential cache to either Client or AsyncClient:

from hdfs_native import Client

client = Client(
    "hdfs://namenode.example.com:9000",
    kerberos_principal="client@EXAMPLE.COM",
    kerberos_keytab="/run/secrets/client.keytab",
)

kerberos_principal is required when kerberos_keytab or kerberos_cache is provided. A keytab without an explicit cache uses a native in-memory cache. The same arguments are available on AsyncClient.

CLI

There is a built-in CLI hdfsn that implements most of the behavior of hdfs dfs but with a more bash-like syntax. The easiest way to use the CLI is with UV.

Install CLI with UV

uv tool install hdfs-ntaive

Auto-complete support

The CLI supports auto-complete for HDFS paths using argcomplete. There are two ways to enable this support

To permanently enable support for all Python modules using argcomplete:

uv tool install argcomplete
activate-global-python-argcomplete

To enable support just for hdfsn in your active shell:

uv tool install argcomplete
eval "$(register-python-argcomplete hdfsn)"

Kerberos support

Kerberos (SASL GSSAPI) is supported through a runtime dynamic link to libgssapi_krb5. This must be installed separately, but is likely already installed on your system. If not you can install it by:

Debian-based systems

apt-get install libgssapi-krb5-2

RHEL-based systems

yum install krb5-libs

MacOS

brew install krb5

Running tests

The same requirements apply as the Rust tests, requiring Java, Maven, Hadoop, and Kerberos tools to be on your path. Then you can:

python3 -m venv .venv
source .venv/bin/activate
pip3 install maturin
maturin develop -E devel
pytest

Metadata

Release files for hdfs-native 0.14.8

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

Source distribution (sdist)

Source distribution for hdfs-native 0.14.8
File Size Uploaded Provenance Actions
hdfs_native-0.14.8.tar.gz 286.8 kB Without provenance Details for hdfs_native-0.14.8.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for hdfs-native 0.14.8
File Actions
hdfs_native-0.14.8-cp314-cp314t-win_amd64.whl CPython 3.14 CPython 3.14 free-threading Windows x86-64 Details for hdfs_native-0.14.8-cp314-cp314t-win_amd64.whl
hdfs_native-0.14.8-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64 Details for hdfs_native-0.14.8-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
hdfs_native-0.14.8-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ ARM64 Details for hdfs_native-0.14.8-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
hdfs_native-0.14.8-cp314-cp314t-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 Details for hdfs_native-0.14.8-cp314-cp314t-macosx_11_0_arm64.whl
hdfs_native-0.14.8-cp314-cp314t-macosx_10_12_x86_64.whl CPython 3.14 CPython 3.14 free-threading macOS 10.12+ x86-64 Details for hdfs_native-0.14.8-cp314-cp314t-macosx_10_12_x86_64.whl
hdfs_native-0.14.8-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for hdfs_native-0.14.8-cp310-abi3-win_amd64.whl
hdfs_native-0.14.8-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for hdfs_native-0.14.8-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
hdfs_native-0.14.8-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for hdfs_native-0.14.8-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
hdfs_native-0.14.8-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for hdfs_native-0.14.8-cp310-abi3-macosx_11_0_arm64.whl
hdfs_native-0.14.8-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for hdfs_native-0.14.8-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 56.9 MB

Release files / hdfs_native-0.14.8.tar.gz

Download URL hdfs_native-0.14.8.tar.gz
Size 286.8 kB
Tags Source
SHA-256 checksum
How to use checksums
77b822fa0d24f60c17cd97010643faf92fc5d744b741fb5d5b3f1240ff25c03f
BLAKE2b-256 checksum
How to use checksums
246c93cfce372367fb5e28c325f6e8823e69457493f94be34c67cc78daa6e365
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / hdfs_native-0.14.8-cp314-cp314t-win_amd64.whl

Download URL hdfs_native-0.14.8-cp314-cp314t-win_amd64.whl
Size 5.2 MB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
c43749717c72154140836c5e2354f4f13e4dde1052570ae6732203dab346f3f2
BLAKE2b-256 checksum
How to use checksums
93cd6734813c6ec85d3f61cb82bb89780f524129efe30647fdfcd8aa01d76799
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / hdfs_native-0.14.8-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL hdfs_native-0.14.8-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 6.0 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
22bfc7ccf4fd33a4f687056b1bf63df934c18d0b16dfdfd8df0ed0092fc82b2d
BLAKE2b-256 checksum
How to use checksums
093c919b3546b57cb3e08c0089f252a1cecdefa6d3a6c5f0770871b3ea24cad1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / hdfs_native-0.14.8-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL hdfs_native-0.14.8-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 6.0 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
b1bf0b738c3bddd2a851785f6a23f180892fac7d41c7a8f1a9553db0587b3b70
BLAKE2b-256 checksum
How to use checksums
85c92bc9edc297551a69e8759c7c24c5f529d17d5c50b595e93f7500664387e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / hdfs_native-0.14.8-cp314-cp314t-macosx_11_0_arm64.whl

Download URL hdfs_native-0.14.8-cp314-cp314t-macosx_11_0_arm64.whl
Size 5.4 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1f86cc5312e2d358b9a9c71986b7a4b8e5b8bc9d532871e192184c8fee703afb
BLAKE2b-256 checksum
How to use checksums
21816e54c5045cea25eef9c45aa1abb75313e8bf9c01857c05a8bd0d33769de1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / hdfs_native-0.14.8-cp314-cp314t-macosx_10_12_x86_64.whl

Download URL hdfs_native-0.14.8-cp314-cp314t-macosx_10_12_x86_64.whl
Size 5.7 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
ce3b5fe10962f99bb2b1f09076f2ef22fa4259bcf31d373142467870e82c78d2
BLAKE2b-256 checksum
How to use checksums
4606941f68029d30b78a76c95969748a327458d57314ddeb2d9ed39407ce0f5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / hdfs_native-0.14.8-cp310-abi3-win_amd64.whl

Download URL hdfs_native-0.14.8-cp310-abi3-win_amd64.whl
Size 5.2 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
5b656adee9f983a3087eb7a27aea4e332b8559a5325c3457a48c393a34f1fead
BLAKE2b-256 checksum
How to use checksums
fbb7b8b5a5e01f7db6568e13b73c7fd26500927229ab35507909b5bb5347b957
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / hdfs_native-0.14.8-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL hdfs_native-0.14.8-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 6.0 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
aa9451870b5c19ea0a8b231ecf42392ef1e1f215a362b433d5bf5ad64eb8c993
BLAKE2b-256 checksum
How to use checksums
537b05c608dc8b8cc633596e522e1cceec3b06d913008e9e1fdcee2fdb28fc13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / hdfs_native-0.14.8-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL hdfs_native-0.14.8-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 6.0 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
4fc196dad4307abed4e35676183167210cffc99eaa854b49f4e0e26baf243582
BLAKE2b-256 checksum
How to use checksums
24072e1fdcb05d36f0c77ad6a817d1ab220191d88d284d2f622659f9304cf488
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / hdfs_native-0.14.8-cp310-abi3-macosx_11_0_arm64.whl

Download URL hdfs_native-0.14.8-cp310-abi3-macosx_11_0_arm64.whl
Size 5.4 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
64611fe35de09dd8b05532618ffe54fd5882d0e81e34eb219985c71a2bf977b4
BLAKE2b-256 checksum
How to use checksums
7eec1dcb2a541805e8ae88b367086cd69e369de380728a45cb8263e6aec624ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / hdfs_native-0.14.8-cp310-abi3-macosx_10_12_x86_64.whl

Download URL hdfs_native-0.14.8-cp310-abi3-macosx_10_12_x86_64.whl
Size 5.7 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
d46df1da88a5d054b161d93d967c0225300d4e1569927eadf2bb4e6a1f73d7e6
BLAKE2b-256 checksum
How to use checksums
74e0590a1de9a69d5721815b82863b65148ca2ca9e989cb8e28bf10c8d257d97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for hdfs-native 0.14.8

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.14.8 This release

11 release files No provenance

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