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.15.1

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.15.1
File Size Uploaded Provenance Actions
hdfs_native-0.15.1.tar.gz 296.3 kB Without provenance Details for hdfs_native-0.15.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for hdfs-native 0.15.1
File Actions
hdfs_native-0.15.1-cp314-cp314t-win_amd64.whl CPython 3.14 CPython 3.14 free-threading Windows x86-64 Details for hdfs_native-0.15.1-cp314-cp314t-win_amd64.whl
hdfs_native-0.15.1-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.15.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
hdfs_native-0.15.1-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.15.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
hdfs_native-0.15.1-cp314-cp314t-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 Details for hdfs_native-0.15.1-cp314-cp314t-macosx_11_0_arm64.whl
hdfs_native-0.15.1-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.15.1-cp314-cp314t-macosx_10_12_x86_64.whl
hdfs_native-0.15.1-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for hdfs_native-0.15.1-cp311-abi3-win_amd64.whl
hdfs_native-0.15.1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.11 abi3 Linux glibc 2.17+ x86-64 Details for hdfs_native-0.15.1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
hdfs_native-0.15.1-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.11 abi3 Linux glibc 2.17+ ARM64 Details for hdfs_native-0.15.1-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
hdfs_native-0.15.1-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for hdfs_native-0.15.1-cp311-abi3-macosx_11_0_arm64.whl
hdfs_native-0.15.1-cp311-abi3-macosx_10_12_x86_64.whl CPython 3.11 abi3 macOS 10.12+ x86-64 Details for hdfs_native-0.15.1-cp311-abi3-macosx_10_12_x86_64.whl

Total release size: 60.0 MB

Release files / hdfs_native-0.15.1.tar.gz

Download URL hdfs_native-0.15.1.tar.gz
Size 296.3 kB
Tags Source
SHA-256 checksum
How to use checksums
74a3ac56317eec08f7450e428cd6d7ac08f8d21af17585f0aa8fcfd31fb63cb5
BLAKE2b-256 checksum
How to use checksums
618832149f2330564c3845281fcae4c1c71be6600a6b84d3d4934303f2f7557e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.15.1-cp314-cp314t-win_amd64.whl

Download URL hdfs_native-0.15.1-cp314-cp314t-win_amd64.whl
Size 5.5 MB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
14c6a3e1d6d43b17ddb51b89925701931a4e47edae86699c45b4b051fd3bee07
BLAKE2b-256 checksum
How to use checksums
fa194004cde6a36c39e94be6a5148c489a9e536dcfec260782b432e5bb4bcd00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.15.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL hdfs_native-0.15.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 6.3 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
32519b3cdda9c806ef0e4f8dcd5852a58e84c0ba6eae4a5582a8ad71721b34de
BLAKE2b-256 checksum
How to use checksums
7a6542288b4d77004c72d39110f3d6e5bf793963e99f1dca390afdb96c08d438
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.15.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL hdfs_native-0.15.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 6.3 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
4b60753060b811119fcf822ef81000e733bc9bf034654c0d7c051b28707e768f
BLAKE2b-256 checksum
How to use checksums
4f70d219b13f41acddd4ce9241e1fd0eb762684fa79a06ff428a60a1813a4ffe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.15.1-cp314-cp314t-macosx_11_0_arm64.whl

Download URL hdfs_native-0.15.1-cp314-cp314t-macosx_11_0_arm64.whl
Size 5.7 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3d14a0d73890ead7c634935e479b0fc4f6789ce3b4e2d3ab215e6d0b3a2a1325
BLAKE2b-256 checksum
How to use checksums
47c38b42f8d33da0a0483459396e5f621573f47b57429e217aaaab3a09079ea0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.15.1-cp314-cp314t-macosx_10_12_x86_64.whl

Download URL hdfs_native-0.15.1-cp314-cp314t-macosx_10_12_x86_64.whl
Size 6.0 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
92b148a8a5126082574d0458b9696776967b5fdf874df625c2014cee074e9a63
BLAKE2b-256 checksum
How to use checksums
f082a7c9787ee2f46f6365a7c7ea6abfdf6137192a73843400774b56bb263649
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.15.1-cp311-abi3-win_amd64.whl

Download URL hdfs_native-0.15.1-cp311-abi3-win_amd64.whl
Size 5.5 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
2711452704d011669eff0a48c00bf127d95bf03e983470f0dd66dd5ed2c3226e
BLAKE2b-256 checksum
How to use checksums
5b06a0bf168606e70e48b74f44013802279de872c0730f1c49df911f004568c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.15.1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL hdfs_native-0.15.1-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 6.3 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
16b7e4a2ce629148495f252c3ddbd0797d50b02be95164498a7010d52991419f
BLAKE2b-256 checksum
How to use checksums
f81bf39e31dc41946bb91ff5309fbe227cd5fc4fd30253957ef9dcb0aa3558a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.15.1-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL hdfs_native-0.15.1-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 6.3 MB
Tags CPython 3.11 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
253e0ea2da02912570370403af2844b210aba737a47b918fd93d58c3e68700b2
BLAKE2b-256 checksum
How to use checksums
5bf0b1d12c8edda809ac39976bec7b35b81f347f5041b5a5f6d8a8d6b38082f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.15.1-cp311-abi3-macosx_11_0_arm64.whl

Download URL hdfs_native-0.15.1-cp311-abi3-macosx_11_0_arm64.whl
Size 5.7 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8650c8d5c59815dcfd9bfacc9b8916d8cd903304ec79ab2d28fb0914bdee9db3
BLAKE2b-256 checksum
How to use checksums
cf776bd5f6e8bdcc449b7734bf574a9f25679a80a10475785168f5e98b5d1404
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.15.1-cp311-abi3-macosx_10_12_x86_64.whl

Download URL hdfs_native-0.15.1-cp311-abi3-macosx_10_12_x86_64.whl
Size 6.0 MB
Tags CPython 3.11 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
661e18499d9fb850b3bc7aa7d1e0a2341874ab2b21dd7a2c4cc35eca4369fc1b
BLAKE2b-256 checksum
How to use checksums
bc8a4f0e3e6c7273b311ae5640616304cf964496ba8394cdc83139bf3f399d9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.15.1

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.15.1 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