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.5.tar.gz (228.4 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.5-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.5-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.5-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.2 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.10+macOS 11.0+ ARM64

hdfs_native-0.13.5-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.5.tar.gz.

File metadata

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

File hashes

Hashes for hdfs_native-0.13.5.tar.gz
Algorithm Hash digest
SHA256 a11c4744af8a6b2220cef54f17a2475349852117098364f1191155c5943c6935
MD5 94ab025467a0bd057c07dd5893dae7ad
BLAKE2b-256 86d4463ca66e1ec4c396189d8a34dab81dedf3fa0ebc1ff3dca9478a6ddf74b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hdfs_native-0.13.5-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 298720ec6d7530ac9d2aa7d0eb453ae22d001894b878bdbcc38e8d6ce01e8f1b
MD5 51de32477e67c5dee17e1ceb7fb9264d
BLAKE2b-256 0354567b7b374023e0aa0f5cfb7a9cd5ff8a6a11d5d088b7b585d8413e329f81

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hdfs_native-0.13.5-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3a799883a8b2c0cf825deb1f5a1b4756b08bd815b5ff9d90f907267a3c5ea764
MD5 43f1f2e35f27b396cd4b79c567f90939
BLAKE2b-256 cb06e82aa1d0f4ce53d3a07deffc5c9eb972b07a102f1548627a773df12b3573

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hdfs_native-0.13.5-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6f7d0b3bd9a8058e7a6b053d6edabac3db966636593668d5b6b5b5f336f899a4
MD5 2a095e24c2beb2ec0475e8c13ee59f3a
BLAKE2b-256 4698496de2f69d1a965e51cca0b16c1539ef02eb5700cae38f9c27422dafee81

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hdfs_native-0.13.5-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ad0e13c91a1a5b9077fc06d7847dfbae480681d05926d645a5192e0b95cc3524
MD5 6fb87e5e2d2572f38eedf65b1a8bed97
BLAKE2b-256 0418bd60d37a810cd57c80c336cb7b7bf4d265ffbe6caba9346b58aa0ecc7f6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hdfs_native-0.13.5-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7f9a09084dc8ab30389200dd21d41760a0b4f85d6385d53039aebce3e1680eb0
MD5 6ef744c8cfda37a516c4a89a4be18772
BLAKE2b-256 e345f230ea64f5197eeef9b5ad723e3da41ec1669f654e3efbd21be6405288d9

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