application-research / pestuary

A Python SDK to interact with Estuary nodes
MIT License
2 stars 2 forks source link

pestuary

A Python SDK to interact with Estuary nodes

Installation

Using pip

$ pip install pestuary

Setup API Key

Initialize the SDK using your API Key

export APIKEY = <YOUR_APIKEY>

Usage

Add dir (recursively) to estuary and create a collection around it

import pestuary

pestuary.add_content('/tmp/my-local-directory', create_collection=True)

List content on a collection

import pestuary

my_collection_uuid = "1234-1234-1234-1234"
pestuary.collection_list_content(my_collection_uuid, "/subdir-on-collection")

Pypi Release

When we create a tag on git we automatically publish a new version to https://pypi.org/project/pestuary/#history

Make sure to increment the version in setup.py before creating the new tag