{ "info": { "author": "Syed Humair", "author_email": "syed.humair@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# aws-devops-challenge\n\n### Getting Started\n1. Get the AWS API Key and Secret\n2. Place create a folder ~/.aws/\n`mkdir -p ~/.aws/`\n3. Create `credentials` file inside `~/.aws/` folder\n`vi ~/.aws/credentials`.\nThe contents of the file should look like this:\n```\n[default]\naws_access_key_id = YOUR_ACCESS_KEY_ID\naws_secret_access_key = YOUR_SECRET_ACCESS_KEY\n```\n\n4. (Optional)You can choose to create `~/.aws/config` file to select your default region:\n```\ntouch ~/.aws/config\n[default]\nregion = YOUR_PREFERRED_REGION\n```\n\n5. (Optional) Note: It is recommended but not required to create a python environment using:\n`python3 -m venv YOUR_PYTHON_ENV_NAME`\n`source YOUR_PYTHON_ENV_NAME/bin/activate`\n\n6. Install `s3-inspect` using the following:\n```\npip install s3-inspect\n```\n\n7. Running the python package\n\n`python -m s3inspect -h`\n```\nusage: __main__.py [-h] [-u {b,kb,mb,gb}] [-p PREFIX] [-gs] [-gr] [-gc]\n [--timeperiod TIMEPERIOD] [--granularity GRANULARITY]\n [--metrics METRICS] [-l]\n regex\n\nInspect S3 Bucket\n\npositional arguments:\n regex Regex Support for Buckets list)\n\noptional arguments:\n -h, --help show this help message and exit\n -u {b,kb,mb,gb}, --unit {b,kb,mb,gb}\n Return files sizes in these units: b (bytes), kb\n (kilobytes), mb (megabytes), gb (gigabytes)\n -p PREFIX, --prefix PREFIX\n Add prefix for the keys. Example: images/\n -gs, --groubystoragetype\n When this is set information is grouped by Storage\n Type\n -gr, --groubyregion When this is set information is grouped by Region Type\n -gc, --getcost When this is set cost report is returned Type\n --timeperiod TIMEPERIOD\n Example: '{\"Start\":\"2019-01-01\",\"End\":\"2019-05-20\"}'\n --granularity GRANULARITY\n Example: MONTHLY\n --metrics METRICS Example: 'BlendedCost UNBLENDED_COST AMORTIZED_COST'\n -l, --list Displays a list of available S3 Buckets in account\n\n```\n### Examples\n\n- Following is to use only `regex` for bucket name\n\n\n```\n$ python s3inspect test*\n\n------------------------------------------------------------------\nS3 Bucket Inspection Report:\n------------------------------------------------------------------\nBucket Name: tests32424312341234\n------------------------------------------------------------------\nBucket Creation Date: 2019-05-21 08:04:15+00:00\nRecent File Modification Date (Bucket): 2019-05-21 08:08:38+00:00\nTotal Files: 3\nTotal Files Size = 0.003 MB\n```\n\n- The following is an example to get Cost Summary in Json format\n`time python s3inspect -gc --granularity MONTHLY --metrics 'BlendedCost' --timeperiod '{\"Start\":\"2019-01-01\",\"End\":\"2019-05-20\"}' test*`\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/syedhumair/aws-devops-challenge", "keywords": "aws,s3,challenge", "license": "Creative Commons Attribution-Noncommercial-Share Alike license", "maintainer": "", "maintainer_email": "", "name": "S3-Inspect", "package_url": "https://pypi.org/project/S3-Inspect/", "platform": "", "project_url": "https://pypi.org/project/S3-Inspect/", "project_urls": { "Homepage": "https://github.com/syedhumair/aws-devops-challenge" }, "release_url": "https://pypi.org/project/S3-Inspect/1.4/", "requires_dist": [ "boto3 (==1.9.151)", "botocore (==1.12.151)", "docutils (==0.14)", "jmespath (==0.9.4)", "python-dateutil (==2.8.0)", "s3transfer (==0.2.0)", "six (==1.12.0)", "urllib3 (==1.24.3)" ], "requires_python": "", "summary": "A package to inspect contents of S3 buckets and generate report", "version": "1.4" }, "last_serial": 5344394, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "603fd5eabb3a5c9c296af8e29cdd866b", "sha256": "ad0c9c3f14fbdd4fbc49caceb87c32dc07d8aae33d41cb3105ef1f310e81b2bf" }, "downloads": -1, "filename": "S3-Inspect-0.1.tar.gz", "has_sig": false, "md5_digest": "603fd5eabb3a5c9c296af8e29cdd866b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5478, "upload_time": "2019-05-21T00:40:17", "url": "https://files.pythonhosted.org/packages/63/e6/bc3871e4109492f5c790eca7b8023db7f65645bc73558c92f1c2ba3d602d/S3-Inspect-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "49a0e56bb254aa80ef5aa39206bd5562", "sha256": "4682ecb0d4fc7a8c364aa2095c2240cbbd72160ba1fd16cd4ac6ddf0ec843a8e" }, "downloads": -1, "filename": "S3_Inspect-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "49a0e56bb254aa80ef5aa39206bd5562", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7052, "upload_time": "2019-05-21T07:27:09", "url": "https://files.pythonhosted.org/packages/e3/aa/0da1a1606cce76ce81800f9fe52e29aa83294b9571c12598e4ea91854281/S3_Inspect-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "279a71540cb93eaa3c72f38cda1b822e", "sha256": "367d6ddda7d507f2e215e482fd41c61c3bcbf702327237af5016da2436916986" }, "downloads": -1, "filename": "S3-Inspect-0.2.tar.gz", "has_sig": false, "md5_digest": "279a71540cb93eaa3c72f38cda1b822e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5647, "upload_time": "2019-05-21T06:53:31", "url": "https://files.pythonhosted.org/packages/a4/ea/6f24ec8d58171b75cbd4c7619b33d192f50f2362842929a04c8f181eb6f9/S3-Inspect-0.2.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "0ff8f7087ed1e9fe1d52e95970dec129", "sha256": "f08a6e1bf8b4c13c8da7329361c18f860c60f214183efe350c78368e22dd3e5e" }, "downloads": -1, "filename": "S3_Inspect-1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "0ff8f7087ed1e9fe1d52e95970dec129", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7040, "upload_time": "2019-05-21T07:46:36", "url": "https://files.pythonhosted.org/packages/e2/a3/0c353bf19e4e476614685ff9c9cb060ec8c99c15c9ec99699a03d652776c/S3_Inspect-1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cb3dc20358dc4e593693a415f011e19a", "sha256": "a00ab8e89c1e9a9749be6e70e69a544e65aa1ea00dd6d78ea9e90de566d9265b" }, "downloads": -1, "filename": "S3-Inspect-1.1.tar.gz", "has_sig": false, "md5_digest": "cb3dc20358dc4e593693a415f011e19a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5638, "upload_time": "2019-05-21T07:46:38", "url": "https://files.pythonhosted.org/packages/d3/6b/984d3c38296c8f8ca776597f5e60980d9cc949bf0110f6ef7d80eb665ee1/S3-Inspect-1.1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "1a57ed0efab036eb4040b2a7c7523142", "sha256": "045684b30e127c8e4bcd7ea676d3ddbfb0560bb27e14c0d476935f8d2063712c" }, "downloads": -1, "filename": "S3_Inspect-1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "1a57ed0efab036eb4040b2a7c7523142", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7044, "upload_time": "2019-05-21T08:19:51", "url": "https://files.pythonhosted.org/packages/77/51/c03d57e145e76876ba0733e2cc1a43f21b459280acfca0fe62de3ce9cc35/S3_Inspect-1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "55f106e97d48c07156f206d170a9fab7", "sha256": "f3c15057b4424aae7cd8e8b729a715c577450d84b6b7ad206cebb9c6614f5dc7" }, "downloads": -1, "filename": "S3-Inspect-1.2.tar.gz", "has_sig": false, "md5_digest": "55f106e97d48c07156f206d170a9fab7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6355, "upload_time": "2019-05-21T08:19:52", "url": "https://files.pythonhosted.org/packages/9d/f6/346d09e2972ad9bc1f8911e696f49d30d5fd21fd18d76e81ad907971b527/S3-Inspect-1.2.tar.gz" } ], "1.3": [ { "comment_text": "", "digests": { "md5": "83a7808075d225fea2d6e1671fe3af62", "sha256": "c4b066bbcc181fd35bd98edf88de8aa8f56eb499687928141f0a81c0485f489d" }, "downloads": -1, "filename": "S3_Inspect-1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "83a7808075d225fea2d6e1671fe3af62", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8227, "upload_time": "2019-05-22T12:49:33", "url": "https://files.pythonhosted.org/packages/0e/dc/c3aad7687f8e4c5c382aa3ea1497acb028ac9b2f68cfe171e9209403a47a/S3_Inspect-1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "116f8d569f6857875b0ba60167dc9a8a", "sha256": "39494b48f34da5efbb0d9e040d1d30da79c873a64847bfd98799360e7966451d" }, "downloads": -1, "filename": "S3-Inspect-1.3.tar.gz", "has_sig": false, "md5_digest": "116f8d569f6857875b0ba60167dc9a8a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6887, "upload_time": "2019-05-22T12:49:34", "url": "https://files.pythonhosted.org/packages/8f/53/cd905ccaee0140126b9ff8facb0c20bb02150c0ab6e7f1d8364f8d3b20d2/S3-Inspect-1.3.tar.gz" } ], "1.4": [ { "comment_text": "", "digests": { "md5": "acf32687c3518d5fc333b271935480c8", "sha256": "f7068edbe33ff3368b94bdee6ca66c568be2be8f4b78884fb606a4b8fc320ad4" }, "downloads": -1, "filename": "S3_Inspect-1.4-py3-none-any.whl", "has_sig": false, "md5_digest": "acf32687c3518d5fc333b271935480c8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8228, "upload_time": "2019-05-31T20:23:09", "url": "https://files.pythonhosted.org/packages/52/fa/9c836f2023fc88b7a7948b063f7bc6c0ead8ac1f31cb1a92eeb193d4e604/S3_Inspect-1.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6950e0b7fe6004acacb57fc869a2ae21", "sha256": "0ddff5700de80c0db64b09f81f522f77ae2062cf61a344bbe38528a01861f552" }, "downloads": -1, "filename": "S3-Inspect-1.4.tar.gz", "has_sig": false, "md5_digest": "6950e0b7fe6004acacb57fc869a2ae21", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6867, "upload_time": "2019-05-31T20:23:11", "url": "https://files.pythonhosted.org/packages/b1/2b/e6b42f23921e9873bc873b852f07f58af954153bbe661cab8cf4ae44d58d/S3-Inspect-1.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "acf32687c3518d5fc333b271935480c8", "sha256": "f7068edbe33ff3368b94bdee6ca66c568be2be8f4b78884fb606a4b8fc320ad4" }, "downloads": -1, "filename": "S3_Inspect-1.4-py3-none-any.whl", "has_sig": false, "md5_digest": "acf32687c3518d5fc333b271935480c8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8228, "upload_time": "2019-05-31T20:23:09", "url": "https://files.pythonhosted.org/packages/52/fa/9c836f2023fc88b7a7948b063f7bc6c0ead8ac1f31cb1a92eeb193d4e604/S3_Inspect-1.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6950e0b7fe6004acacb57fc869a2ae21", "sha256": "0ddff5700de80c0db64b09f81f522f77ae2062cf61a344bbe38528a01861f552" }, "downloads": -1, "filename": "S3-Inspect-1.4.tar.gz", "has_sig": false, "md5_digest": "6950e0b7fe6004acacb57fc869a2ae21", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6867, "upload_time": "2019-05-31T20:23:11", "url": "https://files.pythonhosted.org/packages/b1/2b/e6b42f23921e9873bc873b852f07f58af954153bbe661cab8cf4ae44d58d/S3-Inspect-1.4.tar.gz" } ] }