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

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.0
File Size Uploaded Provenance Actions
hdfs_native-0.15.0.tar.gz 296.2 kB Without provenance Details for hdfs_native-0.15.0.tar.gz

Built distributions (wheels)

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

Total release size: 60.0 MB

Release files / hdfs_native-0.15.0.tar.gz

Download URL hdfs_native-0.15.0.tar.gz
Size 296.2 kB
Tags Source
SHA-256 checksum
How to use checksums
15a24364b2ee5d165cb1098a42744b5af18c4a337fd288168964c7b70b478873
BLAKE2b-256 checksum
How to use checksums
2110db8f6fcaafd03889f20e745a52365cbd74c7f0fb50d2ab15106be62dfde4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","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.0-cp314-cp314t-win_amd64.whl

Download URL hdfs_native-0.15.0-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
0308890ae6e1d2841666cefb55bd7516ba92d9a5ac8bd96d14f81d849ccfcee9
BLAKE2b-256 checksum
How to use checksums
4919524392803d64562333828357ac4c2b64bc962b9d2a940d4dee8465950e9b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","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.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL hdfs_native-0.15.0-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
dec7a8ed58315140b186c368fcc8dff48917ffdfc38a59cb4945dc7b2d8440b2
BLAKE2b-256 checksum
How to use checksums
743729799a40097684e3b356d0d6104d36171e8c93ab1b12573f55e598324454
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","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.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL hdfs_native-0.15.0-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
53f1924d880dac52f266fc14e28e4e7503747516c7137e949c5e7cd35779c6a2
BLAKE2b-256 checksum
How to use checksums
a6f563c120b7aebb81a64a850e0bc48de02a685c38a16434492e76b7e2640955
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","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.0-cp314-cp314t-macosx_11_0_arm64.whl

Download URL hdfs_native-0.15.0-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
eac62c323865967ce9742d9b4594b1f55506417fe4653aebe0afc53b77368a68
BLAKE2b-256 checksum
How to use checksums
058e2b6039a74250e5d3d8fb0041821fcb52d187465ecb702da0cb972ae90ab6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","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.0-cp314-cp314t-macosx_10_12_x86_64.whl

Download URL hdfs_native-0.15.0-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
bd0ad4a53423ed7a54e224c6e99aadbbc177e95b52d51b6b4a2a19240f7e5d7f
BLAKE2b-256 checksum
How to use checksums
e28d3a04798a97a213007263fe834a2227f0dbf1ab46bd9af57f3d58851e377b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","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.0-cp311-abi3-win_amd64.whl

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

Download URL hdfs_native-0.15.0-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
40daef7d461e56738bd2cfd5c060b1d37d67ae717430873f8ece29f2c9004394
BLAKE2b-256 checksum
How to use checksums
66dc39f298ae0833182cdaf6f19f77762a8861eb233a30001d3403908c695640
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","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.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL hdfs_native-0.15.0-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
6425f1454980373a757a5b28a64e59bbc7270367b73f9978c4ff5f8ff63a0c99
BLAKE2b-256 checksum
How to use checksums
cdb3b92124795cd3d52b7bc45f5e293bd016ca0f9ae67303d40b0afc2860c56d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","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.0-cp311-abi3-macosx_11_0_arm64.whl

Download URL hdfs_native-0.15.0-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
fe28cecca8716359bbe878f21736259e04a216aabd58c0fb3535c154d78cc279
BLAKE2b-256 checksum
How to use checksums
38a7a546e8d8e125ec762b6fe1161971db6c91a9fe2876e266f45c6d280fa839
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","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.0-cp311-abi3-macosx_10_12_x86_64.whl

Download URL hdfs_native-0.15.0-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
1036c6162c7f819f55d54c35ca2741da408845c1ca4eae486ad06c29cc38e562
BLAKE2b-256 checksum
How to use checksums
587fe5173b52c083e9f5209ac97bdf240539c43c561eebbf9daa8aec11e3b0f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","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.0

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