{ "info": { "author": "Kontrol SAS", "author_email": "", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "Identity SDK\n============\n\nTanker identity generation in Python for the `Tanker SDK `_.\n\n.. image:: https://travis-ci.org/TankerHQ/identity-python.svg?branch=master\n :target: https://travis-ci.org/TankerHQ/identity-python\n\n.. image:: https://img.shields.io/pypi/v/tankersdk_identity.svg\n :target: https://pypi.org/project/tankersdk_identity\n\n.. image:: https://img.shields.io/codecov/c/github/TankerHQ/identity-python.svg?label=Coverage\n :target: https://codecov.io/gh/TankerHQ/identity-python\n\n\nInstallation\n------------\n\n\nWith `pip`:\n\n.. code-block:: console\n\n $ pip install tankersdk-identity\n\n\nAPI\n---\n\n\n.. code-block:: python\n\n tankersdk_identity.create_identity(app_id, app_secret, user_id)\n\nCreate a new Tanker identity. This identity is secret and must only be given to a user who has been authenticated by your application. This identity is used by the Tanker client SDK to open a Tanker session\n\n**app_id**\n The app ID. You can access it from the `Tanker dashboard `_.\n\n**app_secret**\n The app secret. A secret that you have saved right after the creation of your app.\n**user_id**\n The ID of a user in your application.\n\n.. code-block:: python\n\n tankersdk_identity.create_provisional_identity(app_id, email)\n\nCreate a Tanker provisional identity. It allows you to share a resource with a user who does not have an account in your application yet.\n\n**app_id**\n The app ID. You can access it from the `Tanker dashboard `_.\n\n**email**\n The email of the potential recipient of the resource.\n\n.. code-block:: python\n\n tankersdk_identity.get_public_identity(identity)\n\nReturn the public identity from an identity. This public identity can be used by the Tanker client SDK to share encrypted resource.\n\n**identity**\n A secret identity.\n\n.. code-block:: python\n\n tankersdk_identity.upgrade_user_token(app_id, user_id, user_token)\n\nReturn a Tanker identity from Tanker v1 user Token. Tanker v1 used a user token, when migrating to Tanker v2 you should use this function to migrate you used tokens to identities. This identity is secret and must only be given to a user who has been authenticated by your application. This identity is used by the Tanker client SDK to open a Tanker session\n\n**app_id**\n The app ID. You can access it from the `Tanker dashboard `_.\n\n**user_id**\n The ID of a user in your application.\n\n**user_token**\n The Tanker v1 user token.\n\nGoing further\n-------------\n\n\nRead more about identities in the `Tanker guide `_.\n\nCheck the `examples `_ folder for usage examples.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/TankerHQ/identity-python", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "tankersdk-identity", "package_url": "https://pypi.org/project/tankersdk-identity/", "platform": "", "project_url": "https://pypi.org/project/tankersdk-identity/", "project_urls": { "Homepage": "https://github.com/TankerHQ/identity-python" }, "release_url": "https://pypi.org/project/tankersdk-identity/1.2.0/", "requires_dist": [ "PyNaCl", "codecov ; extra == 'dev'", "pytest ; extra == 'dev'", "pytest-cov ; extra == 'dev'", "twine ; extra == 'dev'" ], "requires_python": "", "summary": "Tanker identity library", "version": "1.2.0" }, "last_serial": 5741517, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "5a4e5e0e0da78b31322e50144040a663", "sha256": "cdd060926959cd7f8da22e9c58e4fdca7f00091c96bb2996abcb83f077b04ca0" }, "downloads": -1, "filename": "tankersdk_identity-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5a4e5e0e0da78b31322e50144040a663", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7283, "upload_time": "2019-03-07T15:44:17", "url": "https://files.pythonhosted.org/packages/3d/8a/4751440235151e23135d806677247918aab8fcbc2cf9edfff47628b98cb1/tankersdk_identity-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8005a5ebb8df40d473e4b814ea59bbfd", "sha256": "73ca962f7d77b4e7a5e49eb1b727d244821cd3fa10d41272469fddf2149b3e04" }, "downloads": -1, "filename": "tankersdk-identity-0.1.0.tar.gz", "has_sig": false, "md5_digest": "8005a5ebb8df40d473e4b814ea59bbfd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4814, "upload_time": "2019-03-07T15:44:19", "url": "https://files.pythonhosted.org/packages/b5/40/6daf71177cf3fa99766e29941a6c7b6541c16226b29f4e2a40bc4496dc19/tankersdk-identity-0.1.0.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "ddbb7498ac6944829c9a1d60ba0b0002", "sha256": "f7337b41d63533beefa2d4868c4b986afecda42d2a23f31124e509feae0478e9" }, "downloads": -1, "filename": "tankersdk_identity-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ddbb7498ac6944829c9a1d60ba0b0002", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7282, "upload_time": "2019-03-07T15:51:07", "url": "https://files.pythonhosted.org/packages/77/2f/d1f6e6fd8cd6602c1e4641a9df53793f05884980e80b5ecb04dca8eae55b/tankersdk_identity-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1d236cb522e549acf0ebefc1c1e7eb85", "sha256": "24ca85bed72190301e0781abd11341b714ad1baa47429789f8a656437b55f946" }, "downloads": -1, "filename": "tankersdk-identity-1.0.0.tar.gz", "has_sig": false, "md5_digest": "1d236cb522e549acf0ebefc1c1e7eb85", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4818, "upload_time": "2019-03-07T15:51:08", "url": "https://files.pythonhosted.org/packages/81/1b/03d7944731dd1329aff622d09a16d743e50541380680c647fd560f693fbf/tankersdk-identity-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "ec8de491576ff5cd197669a4f1eba13a", "sha256": "8142bc497f72221168e07ffb9adf5996558de6afacfc7caa7c7b520db5e5834a" }, "downloads": -1, "filename": "tankersdk_identity-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ec8de491576ff5cd197669a4f1eba13a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11533, "upload_time": "2019-03-14T14:54:35", "url": "https://files.pythonhosted.org/packages/cb/74/a1c464d8a581f5428669369768cfc350955ca3f556b8fbe4e947cd6fced6/tankersdk_identity-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "38e5937b024c9dd717f24fdc8859de18", "sha256": "0bebfe316fd8f56edf2f7c04edffba78b71d6ca5a74e5cde227f6004c3bc8151" }, "downloads": -1, "filename": "tankersdk-identity-1.1.0.tar.gz", "has_sig": false, "md5_digest": "38e5937b024c9dd717f24fdc8859de18", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7414, "upload_time": "2019-03-14T14:54:37", "url": "https://files.pythonhosted.org/packages/ca/36/c27625afde39bf0131396283a10a4d909df34f992f56460f95da2df8dd2f/tankersdk-identity-1.1.0.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "ca0d862e9354981be3f5c59bea5558af", "sha256": "d62400ceed59f58c145e39867bfc4ee1d610da123fd3d3366b15d233e3f7528c" }, "downloads": -1, "filename": "tankersdk_identity-1.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ca0d862e9354981be3f5c59bea5558af", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10237, "upload_time": "2019-08-28T09:25:14", "url": "https://files.pythonhosted.org/packages/3f/5d/774cc121667a6416e796021e2c0faac172910b79639b2e2d5dd0215a18fd/tankersdk_identity-1.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bf0b46aef439cf2ee887b856452bdca2", "sha256": "35c7a528c26307f56e7741b3c383dd049247afb73f02bdf0904751ed2a411ca0" }, "downloads": -1, "filename": "tankersdk-identity-1.2.0.tar.gz", "has_sig": false, "md5_digest": "bf0b46aef439cf2ee887b856452bdca2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8538, "upload_time": "2019-08-28T09:25:16", "url": "https://files.pythonhosted.org/packages/1f/1c/bfc066af49b738741c1cb24b90d514e83016b147eb074a5a295430ead2bd/tankersdk-identity-1.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ca0d862e9354981be3f5c59bea5558af", "sha256": "d62400ceed59f58c145e39867bfc4ee1d610da123fd3d3366b15d233e3f7528c" }, "downloads": -1, "filename": "tankersdk_identity-1.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ca0d862e9354981be3f5c59bea5558af", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10237, "upload_time": "2019-08-28T09:25:14", "url": "https://files.pythonhosted.org/packages/3f/5d/774cc121667a6416e796021e2c0faac172910b79639b2e2d5dd0215a18fd/tankersdk_identity-1.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bf0b46aef439cf2ee887b856452bdca2", "sha256": "35c7a528c26307f56e7741b3c383dd049247afb73f02bdf0904751ed2a411ca0" }, "downloads": -1, "filename": "tankersdk-identity-1.2.0.tar.gz", "has_sig": false, "md5_digest": "bf0b46aef439cf2ee887b856452bdca2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8538, "upload_time": "2019-08-28T09:25:16", "url": "https://files.pythonhosted.org/packages/1f/1c/bfc066af49b738741c1cb24b90d514e83016b147eb074a5a295430ead2bd/tankersdk-identity-1.2.0.tar.gz" } ] }