Skip to content

Commit

Permalink
Add Python readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimahriman committed Sep 11, 2023
1 parent 700b1eb commit c669736
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
16 changes: 16 additions & 0 deletions python/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Native HDFS Python bindings based on hdfs-native Rust package.

## Installation

```bash
pip install hdfs-native
```

## Example

```python
from hdfs_native import Client
client = Client("hdfs://localhost:9000")

status = client.get_file_info("/file.txt")
```
2 changes: 2 additions & 0 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ build-backend = "maturin"

[project]
name = "hdfs_native"
description = "Python bindings for hdfs-native Rust library"
readme = "README.md"
requires-python = ">=3.7"
classifiers = [
"Programming Language :: Rust",
Expand Down

0 comments on commit c669736

Please sign in to comment.