Skip to main content

Python bindings for hdfs-native Rust library

Project description

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")

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hdfs_native-0.13.3.tar.gz (238.7 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

hdfs_native-0.13.3-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.3 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

hdfs_native-0.13.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

hdfs_native-0.13.3-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.3 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

hdfs_native-0.13.3-cp310-abi3-macosx_11_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

hdfs_native-0.13.3-cp310-abi3-macosx_10_12_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

Details for the file hdfs_native-0.13.3.tar.gz.

File metadata

  • Download URL: hdfs_native-0.13.3.tar.gz
  • Upload date:
  • Size: 238.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.10.2

File hashes

Hashes for hdfs_native-0.13.3.tar.gz
Algorithm Hash digest
SHA256 b00b350aa8c77e3e2504422a76f4157ab4436e8ed727e8acdf3fe36088b1fd6e
MD5 a646a06ed6d607fef1248f13b2d5dc24
BLAKE2b-256 8b73ca93c9ca5b24f35ef561a2fc1ebe2e9a59cd02086a56a78279ecc1db51e6

See more details on using hashes here.

File details

Details for the file hdfs_native-0.13.3-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hdfs_native-0.13.3-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 51d5718205198f21aefc682ab77dda960992b73ccc8d6b56ae61205d1500a787
MD5 6f6ad75327fbf72661df3bed99c8f6e6
BLAKE2b-256 b0ac9d3038b07ee71fcc4deaf902736ce9d277402550292371a4bc8045d45a18

See more details on using hashes here.

File details

Details for the file hdfs_native-0.13.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hdfs_native-0.13.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a6db36911495ce6fd37a3232e0e102ede4e5ae99d277c64e820a4f07132fa95c
MD5 2529604f91aba150a3f449fe7f9a2e86
BLAKE2b-256 9240107cd8c7fc1f31d88a10e28ac5cccc5a7aea9e60ea425b13ce5bb525e4f5

See more details on using hashes here.

File details

Details for the file hdfs_native-0.13.3-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for hdfs_native-0.13.3-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ada5ef1f1bd51b4617107da639e8bcff7573f15b6eca331be298fa34ce9258c4
MD5 f54ab673205fe7f2913104331dd703ab
BLAKE2b-256 dcc3b5f13470314bd5f5e538ec3cf898e243c56d30e32f223c9f65558ee63aab

See more details on using hashes here.

File details

Details for the file hdfs_native-0.13.3-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for hdfs_native-0.13.3-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9f8ae545a06794389091a6f8f484b418abad9390fa338cc14345dfc78f64ad7c
MD5 12286da587e5b17055a24c2eb8d7941e
BLAKE2b-256 bcb9ff5388e0a809f293e8cece765d3b7dcd1b7b55d0712869d3c3ec69135ec3

See more details on using hashes here.

File details

Details for the file hdfs_native-0.13.3-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for hdfs_native-0.13.3-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c50b8de717907308935554a945af6c50cb99800aa66c9e54ccbc2f4fb455852a
MD5 fc3e40e9c7b5c62ea1c6d2a20249267d
BLAKE2b-256 7c9c8ac403e7f07c03d707e39f741972f6db4dc1ac84667d39455e2646fac466

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page