REST API Client to Azure Data Lake Gen2
Project description
Python client for Azure Data Lake Gen2 REST API
It's simple implementation of Data Lake Gen2 REST api. Some of methods still not works properly.
Installation
pip3 install pydatalake-gen2
Usage
from azure.datalake.gen2.client import DataLakeGen2Client
client = DataLakeGen2Client(ACCOUNT_NAME, STORAGE_KEY)
# Create fylesystem (aka container)
headers = client.create_filesystem('/testfilesystem')
# List available filesystems (containers)
filesystems = client.list_filesystem()
# Get files from container
files = client.list_path('testfilesystem', directory="/optional/folder")
# Create directory
path = client.create_path('testfolder', 'testfolder2', resource='directory')
# Rename (move) file
files = client.rename_file('/testfolder/file1.txt', '/testfolder2/file2.txt')
This is really early version of client. So, please fell free to contribute!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pydatalake-gen2-0.0.7.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for pydatalake_gen2-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 429588a5ec38fdf6449c0f026545902227cc181940b4c2a03df9c56a53189970 |
|
MD5 | d6528d0af691962b661ef35c9b9e4ec6 |
|
BLAKE2b-256 | d675b104a492c96662a2ddcbd94498b265d3ad7a5240593c4735282225879705 |