Skip to main content

InCountry Storage SDK

Project description

Introduction

This is the python SDK for the InCountry storage network. Sign up for a free account at https://incountry.com, then note down your Zone ID and API key.

Installation

Use pip or pipenv to install the package:

pip3 install incountry

Setup your environment:

export INC_ENDPOINT=<api endpoint>
export INC_ZONE_ID=<zone id>
export INC_API_KEY=<api key>
export INC_SECRET_KEY=<generate uuid>

and now use the SDK:

> import incountry

> global_client = incountry.Storage()
> global_client.write(country='jp', key='key1', body="Store this data in Japan")

> r = global_client.read(country='jp', key='key1')
> print(r)
{'body': 'Store this data in Japan', 'key': 'key1', 'key2': None, 'key3': None, 'profile_key': None, 'range_key': None, 'version': 1, 'zone_id': 645}

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

incountry-0.1.1.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

incountry-0.1.1-py2.py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 2 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