{ "info": { "author": "InCountry", "author_email": "developers@incountry.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "\n# Introduction\n\nThis is the python SDK for the InCountry storage network. Sign up for a free account at\nhttps://incountry.com, then copy your Environment ID (the UUID) and the API key.\n\n# Installation\n\nUse `pip` or `pipenv` to install the package:\n\n pip3 install incountry\n\nand now use the SDK:\n\n python\n\n > import incountry\n\n > incdb = incountry.Storage(env_id=\"4e00667a-58a4-420b-97b7-243073124b89\", \\\n api_key=\"key.yowivz.8ec54a9e647d43cbbc66-8b3096e7a70f\", secret_key=\"any secret value\")\n\n > incdb.write(country='ru', key='key1', body=\"Store this data in Russia\")\n\n\t> r = incdb.read(country='ru', key='key1')\n\t> print(r)\n\t{'body': 'Store this data in Russia', 'key': 'key1', 'key2': None, 'key3': None, 'profile_key': None, 'range_key': None, 'version': 1}\n\n > incdb.delete(country='jp', key='key1')\n > r = incdb.read(country='jp', key='key1')\n > print(r)\n None\n\nInstead of passing parameters, you can configure the client in your environment:\n\n export INC_ENV_ID=\n export INC_API_KEY=\n export INC_SECRET_KEY=`uuidgen`\n\n\n# API\n\n## incountry.Storage(params)\n\nReturns a storage API client.\n\n @param env_id: The id of the environment into which you wll store data\n @param api_key: Your API key\n @param endpoint: Optional. Will use DNS routing by default.\n @param encrypt: Pass False to **disable** encryption of values. This is not recommended.\n @param secret_key: pass the encryption key for AES encrypting fields\n @param debug: pass True to enable some debug logging\n @param use_ssl: Pass False to talk to an unencrypted endpoint\n\n### Storage.write(params)\n\nWrites a single record to the storage network.\n\n @param country: required - 2 letter country code indicating location to store data\n @param key: required - unique key for this record (unique within the environment and country)\n @param body: body of the record in any format\n @param profile_key: identifier of the end-customer which owns this data\n @param range_key: sorted key for the record, like a timestamp. BigInt type.\n @param key2: secondary key to lookup the record\n @param key3: secondary key to lookup the record\n\n### Storage.read(params)\n\nReads a single record from the storage network.\n\n @param country: required - 2 letter country code indicating location where the data is stored\n @param key: required - primary key for this record \n\n### Storage.delete(params)\n\nDelete a single record from the storage network.\n\n @param country: required - 2 letter country code indicating location where the data is stored\n @param key: required - primary key for this record \n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/incountry/incountry-sdks", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "incountry", "package_url": "https://pypi.org/project/incountry/", "platform": "", "project_url": "https://pypi.org/project/incountry/", "project_urls": { "Homepage": "https://github.com/incountry/incountry-sdks" }, "release_url": "https://pypi.org/project/incountry/0.3.0/", "requires_dist": [ "requests", "pycryptodome" ], "requires_python": ">=3.6.0", "summary": "InCountry Storage SDK", "version": "0.3.0" }, "last_serial": 5886500, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "0e18ee1d6ca6d69b95f453b95b2e1a6c", "sha256": "5604f8386a8d7b560fdcba44e16fed36455bf4198a93f1b360e9769be34b20a9" }, "downloads": -1, "filename": "incountry-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0e18ee1d6ca6d69b95f453b95b2e1a6c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6.0", "size": 4020, "upload_time": "2019-07-15T23:30:44", "url": "https://files.pythonhosted.org/packages/e9/63/4fd78f45e5cd10e3134db8b33214d7c75d6d59c7230ecb7eea0f443856d7/incountry-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9dd202a3ff47da5fcc6aae5c988c8de8", "sha256": "bf8485855c143d4406ea6a4f14547afbf4b1d6ee72e8d49190a842a21525cb10" }, "downloads": -1, "filename": "incountry-0.1.1.tar.gz", "has_sig": false, "md5_digest": "9dd202a3ff47da5fcc6aae5c988c8de8", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 4668, "upload_time": "2019-07-15T23:30:45", "url": "https://files.pythonhosted.org/packages/9b/c4/7a2b5ad9cc3838022b882c71177fda019d358c08e65cdf075ab435708c8c/incountry-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "1ac50794703033f66b4398a2eca3c2cd", "sha256": "bd57c7f2d57565d2e97d806c2a32ec3c3af182da47a16e36d2d600a53ad03089" }, "downloads": -1, "filename": "incountry-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1ac50794703033f66b4398a2eca3c2cd", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6.0", "size": 5089, "upload_time": "2019-07-17T23:58:35", "url": "https://files.pythonhosted.org/packages/3c/07/1a6c55b494d35cfba74c732780c63144d327481dfddff3925160f851bcfd/incountry-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2402ad8f9733ce2ef8b537795aee4c10", "sha256": "44c65f12756a04de460475f5f7279bce26c732814dccc110a9e553fcc3bb1c2f" }, "downloads": -1, "filename": "incountry-0.2.0.tar.gz", "has_sig": false, "md5_digest": "2402ad8f9733ce2ef8b537795aee4c10", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 5038, "upload_time": "2019-07-17T23:58:36", "url": "https://files.pythonhosted.org/packages/8b/40/4c6b57b20d3c410f8adedd8426f943cd45da0a44395304f0d1d77a5f0840/incountry-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "00bb66afa3ad97be44437f3731922019", "sha256": "92bc537d7f996d15e3f7aa63b2c8b0aeab221bd96b44361cd111c38dadb502fc" }, "downloads": -1, "filename": "incountry-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "00bb66afa3ad97be44437f3731922019", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6.0", "size": 5765, "upload_time": "2019-08-26T22:33:12", "url": "https://files.pythonhosted.org/packages/24/6d/8c1feeb6344f893c3009a76a8b3e9afbb7c337f8a33072abec67bf309b44/incountry-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "85bb2be70ca9f5663475e32de8018d56", "sha256": "d1f8b57273243fac56c9bb043f562cc8d8b1bbb791471fab8ac2ca2b05efcca0" }, "downloads": -1, "filename": "incountry-0.3.0.tar.gz", "has_sig": false, "md5_digest": "85bb2be70ca9f5663475e32de8018d56", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 5690, "upload_time": "2019-08-26T22:33:14", "url": "https://files.pythonhosted.org/packages/d6/7d/49adcd9a20d9b7bba53e714f3d9f8e690a20c1024a67b284f9e87ff7cd78/incountry-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "00bb66afa3ad97be44437f3731922019", "sha256": "92bc537d7f996d15e3f7aa63b2c8b0aeab221bd96b44361cd111c38dadb502fc" }, "downloads": -1, "filename": "incountry-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "00bb66afa3ad97be44437f3731922019", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6.0", "size": 5765, "upload_time": "2019-08-26T22:33:12", "url": "https://files.pythonhosted.org/packages/24/6d/8c1feeb6344f893c3009a76a8b3e9afbb7c337f8a33072abec67bf309b44/incountry-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "85bb2be70ca9f5663475e32de8018d56", "sha256": "d1f8b57273243fac56c9bb043f562cc8d8b1bbb791471fab8ac2ca2b05efcca0" }, "downloads": -1, "filename": "incountry-0.3.0.tar.gz", "has_sig": false, "md5_digest": "85bb2be70ca9f5663475e32de8018d56", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 5690, "upload_time": "2019-08-26T22:33:14", "url": "https://files.pythonhosted.org/packages/d6/7d/49adcd9a20d9b7bba53e714f3d9f8e690a20c1024a67b284f9e87ff7cd78/incountry-0.3.0.tar.gz" } ] }