Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pydatalake-gen2, version 0.0.10
Filename, size File type Python version Upload date Hashes
Filename, size pydatalake_gen2-0.0.10-py3-none-any.whl (11.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size pydatalake-gen2-0.0.10.tar.gz (6.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page