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.4.tar.gz (228.1 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.4-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.4-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.4-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.4-cp310-abi3-macosx_11_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

hdfs_native-0.13.4-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.4.tar.gz.

File metadata

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

File hashes

Hashes for hdfs_native-0.13.4.tar.gz
Algorithm Hash digest
SHA256 a10df9389c8fc86c83402645f0096439c2222b362d044468404aa217f00c1a06
MD5 412a290fbc57e0b7a2612d8de1070623
BLAKE2b-256 8c3a8474c3d7d893cd8d46b622152882d73984956c8c2dd913b935ce0f5ef83b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hdfs_native-0.13.4-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f87a48a39a7f1600b0c7f7564b2f557591e9e70eae30af98e58091503ff949fb
MD5 7f34f38a44abf344080f04f81a683f3b
BLAKE2b-256 4e733ed69f5568f812c90dab982073054a536870a53a816d3aaacc3acdc5ae9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hdfs_native-0.13.4-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bad4c2b52efa138b0da64864f6f2b5ab8f555cffa64e257b79226a77ed240a02
MD5 1da299b1efe0834889cf952b44170e7b
BLAKE2b-256 ec23fb88774ea5a0714e3300015a55508e35ef01689f7d06eccaaff62060634c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hdfs_native-0.13.4-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c71f7709c8daee501f1ab71cd34f99cbbd24509a91d0ded7a3e9703bf13fc07f
MD5 99bc03d85450e5163e040ad78c6fb967
BLAKE2b-256 a71f6295526ac927f7b33d55ffcbde2f18ca06a820a301b2b249afb42aa14177

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hdfs_native-0.13.4-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dc7265c40bf9024cbd97eda7aa00db189d142bdbc7ab37263cdb5bed7fa7a8ca
MD5 85dd3eb2af7b42143329f0a7a4ea3429
BLAKE2b-256 69172ba31f2002eae3870ec338722d9059a6c938d8e3e5ba1e8016b729936e41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hdfs_native-0.13.4-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 08503ba487fa88926dff2750c0cdcf5e4074f3adc04c3a2e3f1b05fcb4aa82a9
MD5 a8691c44d5968376f8af115e87ce4047
BLAKE2b-256 6d85c82cf14d2380a904a3a90e17dc8e7809547ef7ddab4a9f4caa404d9747d1

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