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.

Source Distribution

pydatalake-gen2-0.0.8.tar.gz (6.1 kB view hashes)

Uploaded Source

Built Distribution

pydatalake_gen2-0.0.8-py3-none-any.whl (11.3 kB view hashes)

Uploaded Python 3

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