{ "info": { "author": "Jon Crain", "author_email": "jwc9412@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7" ], "description": "## [Kinghorn](https://en.wikipedia.org/wiki/Australian_scrub_python)\n#### *Python 3 library for caching AWS resources*\n\n#### Purpose\nThis library provides caching of AWS resources, which can save development time and money making API calls, as well as reduce the chances of errors taking place from running scripts against resources in flux. I use it to cache resources such as EC2 instances, volumes, and snapshots for retrieval in later scripts. I disliked having to call an API and perform an O(n^2) operation to unwrap my instance metadata every time I did something with boto3. With Kinghorn I can easily place resources in dictionaries for constant time access.\n\n#### Opinions\nI've chosen to discard metadata and \"unwrap\" entity metadata for storage. I've used clients instead of resources for Kinghorn to make it easy to alter the library to access low level API functions if needed. The library expects appropriate credentials in ~/.aws/credentials.\n\n#### Installation instructions for Mac OS X\n - ruby -e \"$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)\"\n - brew install python\n - curl -O http://python-distribute.org/distribute_setup.py\n - python distribute_setup.py\n - curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py\n - python get-pip.py\n - pip3 install boto3\n - python3 -m kinghorn\n\n\n#### Publishing\n - Bump version in `setup.py` and `kinghorn/__init.py__` and run ./publish.sh\n\n#### Configuration\nConfiguration is handled with environment variables, as follows:\n - KINGHORN_ENVIRONMENT - Which environment your API credentials are for, for example factory, production, etc.\n - KINGHORN_LOGGING_OUT - Set to 1 to log to std out, useful for local testing and debugging\n - KINGHORN_LOGGING_LEVEL\n - KINGHORN_LOGGING_FILE\n - KINGHORN_CACHE_LOCATION\n\n#### Files\n - `publish.sh` - Helper script to publish to PyPI\n - `setup.py` - Metadata for publishing packages\n - `.gitignore` - Files to ignore for git\n - `kinghorn/__main__.py` - Basic validation script for module\n - `kinghorn/__init__.py` - Exports all public functions\n - `kinghorn/kinghorn.py` - The library\n - `kinghorn/test_kinghorn.py` - An example file describing some ways to use the library and testing all functions\n\n#### Future feature ideas\n - Additional entities for different services in AWS as I need them\n - Automated configurable cache expiration\n - Passthrough to the AWS API on cache miss\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/TeslaGov/kinghorn", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "kinghorn", "package_url": "https://pypi.org/project/kinghorn/", "platform": "", "project_url": "https://pypi.org/project/kinghorn/", "project_urls": { "Homepage": "https://github.com/TeslaGov/kinghorn" }, "release_url": "https://pypi.org/project/kinghorn/0.0.7/", "requires_dist": [ "boto3" ], "requires_python": "", "summary": "Cache AWS resources", "version": "0.0.7" }, "last_serial": 5416937, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "0c29878e01e7dd5a443e0c48d435f271", "sha256": "10be82d74e032429510aee8147f95bc14a5293fe6411d9eb07d75a04994e51ca" }, "downloads": -1, "filename": "kinghorn-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "0c29878e01e7dd5a443e0c48d435f271", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4310, "upload_time": "2019-05-28T15:24:22", "url": "https://files.pythonhosted.org/packages/33/97/32c2537e636e184cb55b85e9ec247e0c61055519ea5b5beb5942c4519394/kinghorn-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f4b1e2be54c0a4c32e8a0edc6df6b703", "sha256": "a3429ff7e73bc9872bf6ba9d54efd0a624f19d342687af7b6f29a84223cff08a" }, "downloads": -1, "filename": "kinghorn-0.0.1.tar.gz", "has_sig": false, "md5_digest": "f4b1e2be54c0a4c32e8a0edc6df6b703", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3953, "upload_time": "2019-05-28T15:24:24", "url": "https://files.pythonhosted.org/packages/4e/2a/beb3601427c28b25f6a0dd7a0628b4675d24ab2246f118b50137a9d93956/kinghorn-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "d213c3743bde6e8d4dedd2d33df3190e", "sha256": "574d97c5bc4209ce7cd112ec7e02beaa40c4ca0b3b301a132161a7569fa6c527" }, "downloads": -1, "filename": "kinghorn-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "d213c3743bde6e8d4dedd2d33df3190e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4389, "upload_time": "2019-05-28T17:12:58", "url": "https://files.pythonhosted.org/packages/fe/ff/31b8edb84dec084b1829c96da05d9811e7ca4a873d59d8937cfe0dc9b64b/kinghorn-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fc1cd2002983f0932fb03ee822c5013c", "sha256": "282860619ce87b7b78c21c1e22d206006a7843f65255bf237b4c151f39fef75e" }, "downloads": -1, "filename": "kinghorn-0.0.2.tar.gz", "has_sig": false, "md5_digest": "fc1cd2002983f0932fb03ee822c5013c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4031, "upload_time": "2019-05-28T17:13:00", "url": "https://files.pythonhosted.org/packages/5a/6b/3fd260c062a5cdc85669431a6c34f46604cac1f91cae2f37f6790a5d5637/kinghorn-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "f2df1b8f8d65c60bb29a8818fe499c2c", "sha256": "3b3c5ec633aa7f7283a2e4b5dce2cf1680c7744c7312021ce97a72f6bb10613b" }, "downloads": -1, "filename": "kinghorn-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "f2df1b8f8d65c60bb29a8818fe499c2c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4804, "upload_time": "2019-05-28T17:44:42", "url": "https://files.pythonhosted.org/packages/3b/06/06e08c5d194d6a7009d06354b09cdd78a25dbf276e73411267762059df22/kinghorn-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ca06bc632942c78002280ccedbf8c2f8", "sha256": "33a10ec2df9e3f93929bbf32d9e0f5f10b9bb3f52eeccc61ebe65e40227c2551" }, "downloads": -1, "filename": "kinghorn-0.0.3.tar.gz", "has_sig": false, "md5_digest": "ca06bc632942c78002280ccedbf8c2f8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4152, "upload_time": "2019-05-28T17:44:43", "url": "https://files.pythonhosted.org/packages/59/40/dc6cf27a60f83e7fe7a74307f246e67fbec45f0ba2e727aa770abfbe7d62/kinghorn-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "e0b8b509a0e8ade28a37970849ad1597", "sha256": "1352ae93efa84966a29b081e268156bc078dfe2206768f24004629281886da86" }, "downloads": -1, "filename": "kinghorn-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "e0b8b509a0e8ade28a37970849ad1597", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5049, "upload_time": "2019-05-28T18:05:02", "url": "https://files.pythonhosted.org/packages/bc/3e/93af497afe9596cc3f415868c25aca4a772c571a9f6508b2a6a9b981e2ce/kinghorn-0.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0ca37b745e12bca31c82053bd33128bf", "sha256": "b8d45d5264da6a19eb7a08ffc47efe3698421821b2a3a9a2d5bac69f0ffb138d" }, "downloads": -1, "filename": "kinghorn-0.0.4.tar.gz", "has_sig": false, "md5_digest": "0ca37b745e12bca31c82053bd33128bf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4262, "upload_time": "2019-05-28T18:05:04", "url": "https://files.pythonhosted.org/packages/c3/84/6536ad7d1723a60b0e08fa98b0f144bb9aa83f4e4545b5e1fca22f256f68/kinghorn-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "83b06b90da19fd37f8a1cf01f0f15425", "sha256": "31421ed3e596b1199a3ba61242593278c052c8c16ba41c89e2d2582bac005f71" }, "downloads": -1, "filename": "kinghorn-0.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "83b06b90da19fd37f8a1cf01f0f15425", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5122, "upload_time": "2019-05-28T18:50:03", "url": "https://files.pythonhosted.org/packages/fc/17/6df6502f02f35ce5fd2e9d5ef313d437ec68e591a75b08c025c183e2dd43/kinghorn-0.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "94307779145da7829a346b47ac7ad965", "sha256": "0c9a63c710855e61ae8d127aeea96c6dcf711158c522abde40c99a14545613a3" }, "downloads": -1, "filename": "kinghorn-0.0.5.tar.gz", "has_sig": false, "md5_digest": "94307779145da7829a346b47ac7ad965", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4419, "upload_time": "2019-05-28T18:50:05", "url": "https://files.pythonhosted.org/packages/bb/50/0c6fd138886aae3368048d17220a4d8180cbf3a7ef47b6538bc0a33f9b2b/kinghorn-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "92c3678a1b65f7d7cb48fed32b744ab4", "sha256": "c6467b67ba83114ca71cacd80df57ed845a0ef040854165653f4408050f21876" }, "downloads": -1, "filename": "kinghorn-0.0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "92c3678a1b65f7d7cb48fed32b744ab4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4973, "upload_time": "2019-05-28T19:48:52", "url": "https://files.pythonhosted.org/packages/18/0c/615620ebfe12227603c679307b00a255967cc05df749c1e58d6c283c5e8f/kinghorn-0.0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ef60de28d5c3d7b7b07729640e285e91", "sha256": "67d214ffbfae777677ff1f9b8578b2f1cdccac3a3ab8d2b858d90652d54a0037" }, "downloads": -1, "filename": "kinghorn-0.0.6.tar.gz", "has_sig": false, "md5_digest": "ef60de28d5c3d7b7b07729640e285e91", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4309, "upload_time": "2019-05-28T19:48:56", "url": "https://files.pythonhosted.org/packages/e9/04/53e73ea554139c620ca182377437999abd7883e697531a458e2ab2505423/kinghorn-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "dfc20363791d48f1821156d67feba1cc", "sha256": "fbe400dad4dab137d305eae440458ed12e5620c624b94ac9ac1e089704d9947a" }, "downloads": -1, "filename": "kinghorn-0.0.7-py3-none-any.whl", "has_sig": false, "md5_digest": "dfc20363791d48f1821156d67feba1cc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6231, "upload_time": "2019-06-18T19:46:47", "url": "https://files.pythonhosted.org/packages/75/9a/10d1c332631aaabff98a2408b338ed691d029c73fb0168f24ef9bcd57044/kinghorn-0.0.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "62ac86ccb6710d430fd8fc9d9fe84899", "sha256": "6f95d5ec2ba8729916c2205b11df0daadd82eeefd209a6ef55bbd705bd0dbdcc" }, "downloads": -1, "filename": "kinghorn-0.0.7.tar.gz", "has_sig": false, "md5_digest": "62ac86ccb6710d430fd8fc9d9fe84899", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4734, "upload_time": "2019-06-18T19:46:48", "url": "https://files.pythonhosted.org/packages/79/e5/251561b82d7852785263bc8899aca1eea9e91a169904c68f26dcb535843c/kinghorn-0.0.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "dfc20363791d48f1821156d67feba1cc", "sha256": "fbe400dad4dab137d305eae440458ed12e5620c624b94ac9ac1e089704d9947a" }, "downloads": -1, "filename": "kinghorn-0.0.7-py3-none-any.whl", "has_sig": false, "md5_digest": "dfc20363791d48f1821156d67feba1cc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6231, "upload_time": "2019-06-18T19:46:47", "url": "https://files.pythonhosted.org/packages/75/9a/10d1c332631aaabff98a2408b338ed691d029c73fb0168f24ef9bcd57044/kinghorn-0.0.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "62ac86ccb6710d430fd8fc9d9fe84899", "sha256": "6f95d5ec2ba8729916c2205b11df0daadd82eeefd209a6ef55bbd705bd0dbdcc" }, "downloads": -1, "filename": "kinghorn-0.0.7.tar.gz", "has_sig": false, "md5_digest": "62ac86ccb6710d430fd8fc9d9fe84899", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4734, "upload_time": "2019-06-18T19:46:48", "url": "https://files.pythonhosted.org/packages/79/e5/251561b82d7852785263bc8899aca1eea9e91a169904c68f26dcb535843c/kinghorn-0.0.7.tar.gz" } ] }