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

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.10.3.tar.gz (154.0 kB view details)

Uploaded Source

Built Distributions

hdfs_native-0.10.3-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

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

hdfs_native-0.10.3-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.4 MB view details)

Uploaded CPython 3.8+ manylinux: glibc 2.17+ ARM64

hdfs_native-0.10.3-cp38-abi3-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.8+ macOS 11.0+ ARM64

hdfs_native-0.10.3-cp38-abi3-macosx_10_12_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.8+ macOS 10.12+ x86-64

File details

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

File metadata

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

File hashes

Hashes for hdfs_native-0.10.3.tar.gz
Algorithm Hash digest
SHA256 0c1ed53ffef85f416c9238fc3e2a68b17800e5807467137eb505bec7bb0c5caf
MD5 5b0382a26612ac2da7865c54be7e0c80
BLAKE2b-256 e3dce7e75d1224c9b7e8065cf8e99ee5b5aa5a67ecb340d91b0e80bdd9e9d259

See more details on using hashes here.

File details

Details for the file hdfs_native-0.10.3-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hdfs_native-0.10.3-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c1fd8289f95fba0ca307a49612c3337bba7e9213c6cb578d244044665463000a
MD5 499f35e14aa2932cc8a064ae92f7a0fd
BLAKE2b-256 8a440b5203a8b8378bef69c8437116623bc4de979eb8e537741c7c8ed71e67d3

See more details on using hashes here.

File details

Details for the file hdfs_native-0.10.3-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for hdfs_native-0.10.3-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 15455e2bdb50ead9bde7bfeb534be50281d96015f4cdfcc1a8a5c3ea24e7c444
MD5 8026f59e417370c1faa8c716d74466a2
BLAKE2b-256 201fbeee4e8dd46e064f6a3ee44189c7e0d779e4fb4ea709f79a5297eb9dc65b

See more details on using hashes here.

File details

Details for the file hdfs_native-0.10.3-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for hdfs_native-0.10.3-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8b40b2076492b0c8da219af2fe7b75cc1f0d6fa9608e71c4206fdc3da8d3b2df
MD5 f56b5c66ae9f21131260b2f97459f049
BLAKE2b-256 f9e7fa0fc8d015968c416a5bca0723f6dcd6446e38dde20c52969178996837b3

See more details on using hashes here.

File details

Details for the file hdfs_native-0.10.3-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for hdfs_native-0.10.3-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d5e9c1f14a2d410089a0023184cba6f85cd447d7775ae53c5650a63fcd5c7d56
MD5 3992989031752132f3ff8082f6d9a1bd
BLAKE2b-256 cd8745b92cd50610e26207ba120875f02f4df69df7a540aeda5656f50f2b414f

See more details on using hashes here.

Supported by

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