{ "info": { "author": "Eugene Wright", "author_email": "eugene@ewright3.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "\n===========\nApiKeyStore \n===========\n\nOne vault to rule them all\n--------------------------\n\n|buildVersion| |buildStatus| |MitLicense|\n\n|pythonVersion|\n\n----------------------------\n\nA module for easily storing and retriving API credentials in a database. \n\nWe all know it's a bad practice to save API credentials in our code, but almost every example of working with an API, instructu you to go just that. \nthe top four lines of every sample API script starts like this\n\n.. code:: python3\n\n # Assign appropriate values to these variables\n sample_host = \"https://baseurl.com/endpoint/path\"\n sample_script_key = \"YOUR PRIVATE KEY\"\n sample_user = \"YOUR USERNAME\"\n sample_password = \"YOUR PASSWORD\"\n\nMy goal is to create an easy to use module that will allow you to protect youe credentials, by only allowing the script to access them at runtime.\n\n.. code:: python3\n\n import apikeystore as aks\n import requests\n\n #create new vault\n myvault = aks.Vault(\"Test-vault1.db\")\n myvault.new()\n\n mycreds = aks.Creds(vaultName=\"Test-vault1.db\")\n credDetails = {\n 'appName' : 'virusTotal',\n 'urlBase' : 'https://www.virustotal.com/vtapi/v2/',\n 'userId' : '',\n 'appKey' : 'cf51cae902609f18f1f37b33c79eb9ad559c599d29441592e1ca1c4c48d175ab',\n 'authType': 'basic'\n }\n mycreds.addCreds(**credDetails)\n\n mycreds = aks.Creds(vaultName=\"Test-vault1.db\")\n vTcred = mycreds.getCred(appName='virusTotal')\n vTendpoint = vTcred['urlBase'] + 'file/report?'\n payload = {\n 'resource': '993dcc7f09c690c6f1d3049b3f66092451f2e82536cf81d15ceef447bc4b3b27', \n 'apikey' : vTcred['appKey']\n }\n\n r = requests.get(vTendpoint, params=payload)\n print(r.status_code)\n #r.json() \n\n\n\n\n\n\n\n\n.. |buildVersion| image:: https://img.shields.io/badge/Version-0.2.0a-blue.svg\n.. |buildStatus| image:: https://img.shields.io/bitbucket/pipelines/ewright3/apikeystore.svg?logo=python&longCache=true&style=flat\n.. |pythonVersion| image:: https://img.shields.io/badge/python-3.5%20|%203.6%20|%203.7-blue.svg\n.. |MitLicense| image:: https://img.shields.io/badge/License-MIT-orange.svg\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/ewright3/apikeystore/", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "apikeystore", "package_url": "https://pypi.org/project/apikeystore/", "platform": "", "project_url": "https://pypi.org/project/apikeystore/", "project_urls": { "Homepage": "https://bitbucket.org/ewright3/apikeystore/" }, "release_url": "https://pypi.org/project/apikeystore/0.0.9/", "requires_dist": null, "requires_python": "", "summary": "", "version": "0.0.9" }, "last_serial": 4527718, "releases": { "0.0.1": [], "0.0.9": [ { "comment_text": "", "digests": { "md5": "1136ed5cc40a6c73690bd9e4d955ee0d", "sha256": "426c5a133cfb212b02c0e4b185db7f1296b8f8d9787f3a10fde946fbc1d02287" }, "downloads": -1, "filename": "apikeystore-0.0.9-py3-none-any.whl", "has_sig": false, "md5_digest": "1136ed5cc40a6c73690bd9e4d955ee0d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5968, "upload_time": "2018-11-26T02:36:33", "url": "https://files.pythonhosted.org/packages/23/33/9b98e98e8707db63f1fd7b24698b4e9a4dbe674bced4f8fc05f7dd08ef53/apikeystore-0.0.9-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "27038ab7ba6a3748df74b88ce3d653db", "sha256": "a556c3d068fc4cec23e89ae4384565182bc31237b294e3728105b9797c1b51bd" }, "downloads": -1, "filename": "apikeystore-0.0.9.tar.gz", "has_sig": false, "md5_digest": "27038ab7ba6a3748df74b88ce3d653db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6789, "upload_time": "2018-11-26T02:36:35", "url": "https://files.pythonhosted.org/packages/98/14/47ebacaf39791547e7feb43219bb35585fb0ffc4cc4873a9e61650109ec5/apikeystore-0.0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1136ed5cc40a6c73690bd9e4d955ee0d", "sha256": "426c5a133cfb212b02c0e4b185db7f1296b8f8d9787f3a10fde946fbc1d02287" }, "downloads": -1, "filename": "apikeystore-0.0.9-py3-none-any.whl", "has_sig": false, "md5_digest": "1136ed5cc40a6c73690bd9e4d955ee0d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5968, "upload_time": "2018-11-26T02:36:33", "url": "https://files.pythonhosted.org/packages/23/33/9b98e98e8707db63f1fd7b24698b4e9a4dbe674bced4f8fc05f7dd08ef53/apikeystore-0.0.9-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "27038ab7ba6a3748df74b88ce3d653db", "sha256": "a556c3d068fc4cec23e89ae4384565182bc31237b294e3728105b9797c1b51bd" }, "downloads": -1, "filename": "apikeystore-0.0.9.tar.gz", "has_sig": false, "md5_digest": "27038ab7ba6a3748df74b88ce3d653db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6789, "upload_time": "2018-11-26T02:36:35", "url": "https://files.pythonhosted.org/packages/98/14/47ebacaf39791547e7feb43219bb35585fb0ffc4cc4873a9e61650109ec5/apikeystore-0.0.9.tar.gz" } ] }