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
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
incountry-0.1.1.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for incountry-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5604f8386a8d7b560fdcba44e16fed36455bf4198a93f1b360e9769be34b20a9 |
|
MD5 | 0e18ee1d6ca6d69b95f453b95b2e1a6c |
|
BLAKE2b-256 | e9634fd78f45e5cd10e3134db8b33214d7c75d6d59c7230ecb7eea0f443856d7 |