{ "info": { "author": "Andy Klier", "author_email": "andyklier@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# caws \n\nconfigure AWS responsibly using profile names and environment vars. \n\nrather than changing your AWS SDK credentials with `aws configure`, AWS suggests \nsetting the ENV var AWS\\_DEFAULT\\_PROFILE to a [profile] in your ~/.aws/credentials. \nwhen set, this ENV var will over-ride the profile set with `aws configure`. \n\ncaws will write to an rc file setting AWS\\_DEFAULT\\_PROFILE to the given profile name. \nif you do not have the rc file caws will create it for you. \n\n*you'll need to add `. .cawsrc` to your RC file (using bash: .bashrc or .bash\\_profile)* \n\nadd new profiles using `$ aws configure --profile newname` \n\none benefit of using AWS\\_DEFAULT\\_PROFILE method instead of `aws configure` is the \nability to add which AWS profile you're currently using to your command prompt. \n\n### dependencies \n\npython3 \naws cli \n\n### usage \n\n*change AWS\\_DEFAULT\\_PROFILE to profilename* \n`$ caws profilename` \n\n*change AWS\\_DEFAULT\\_PROFILE to profilename and also update ~/.aws/credentials and ~/.aws/config* \n`$ caws profilename --withcreds` \n\n*show help and exit* \n`$ caws -h` \n\n### example bash usage \n\nbecause python cannot source files on the parent process, caws has the unfortunate inability to update the ENV var it is updating. \ntherefore, a thin bash helper function can be used to run caws in the background: \n\n```shell\nkaws() {\n eval \"caws $1 > /dev/null\"\n . ~/.cawsrc \n}\n``` \n\nexample PS1 with colored path parts! \n\n```shell\nfunction color_path() {\n ROYGBIV=('\\e[31m' '\\e[38;5;208m' '\\e[93m' '\\e[92m' '\\e[36m' '\\e[94m' '\\e[95m' '\\e[97m' '\\e[93m' '\\e[38;5;208m' '\\e[91m' '\\e[95m' '\\e[96m' '\\e[34m' '\\e[92m')\n explode_path=$(pwd)\n exploded=$(echo $explode_path | tr \"/\" \"\\n\")\n final=\"\"\n sep=\"/\"\n x=0 \n for part in $exploded\n do \n final+=\"${ROYGBIV[$x]}$sep$part\\e[0m\"\n x=$(expr $x + 1)\n done\n printf $final\n}\nparse_git_branch() {\n local b=$(git symbolic-ref HEAD 2> /dev/null)\n if [ \"${b#refs/heads/}\" != \"\" ]\n then\n printf \" \\e[38;5;208m(${b#refs/heads/})\\e[0m\"\n fi\n}\nPS1='\\[\\033[45m\\]\\u\\[\\033[0;96m\\] aws:\\[\\033[92m\\]$AWS_DEFAULT_PROFILE`parse_git_branch` \\[\\033[37m\\]- `color_path`\\[\\033[37m\\]\\n$ \\[\\033[0m\\]'\n``` \n\n![Usage Screep Cap][screencap] \n\n[screencap]: https://believe-it-or-not-im-walking-on-air.s3.amazonaws.com/screencap.jpg \"Usage Screen Cap\"\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://bitbucket.org/rednap/caws", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "caws", "package_url": "https://pypi.org/project/caws/", "platform": "", "project_url": "https://pypi.org/project/caws/", "project_urls": { "Homepage": "https://bitbucket.org/rednap/caws" }, "release_url": "https://pypi.org/project/caws/0.0.7/", "requires_dist": [ "setuptools" ], "requires_python": "", "summary": "configure AWS responsibly using profile names.", "version": "0.0.7" }, "last_serial": 5620137, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "8a3066b17e58ea53f9361172ceecafc1", "sha256": "9f23f27688897eb9ddbff6439f3b09fd63eb67e21b6373edebf98825f007214c" }, "downloads": -1, "filename": "caws-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "8a3066b17e58ea53f9361172ceecafc1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4268, "upload_time": "2019-07-03T02:43:04", "url": "https://files.pythonhosted.org/packages/69/8d/4a6c1120460aa193a53a845cfe3bec1b85b8ea721853f7aae73e9aac6af9/caws-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6cd59f099f92272b0705cac39a7b1554", "sha256": "c1b0ab0aad15db5e3459a26ffab79bcfb347b627579eed74a7b4ff07f5539d59" }, "downloads": -1, "filename": "caws-0.0.1.tar.gz", "has_sig": false, "md5_digest": "6cd59f099f92272b0705cac39a7b1554", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2770, "upload_time": "2019-07-03T02:43:06", "url": "https://files.pythonhosted.org/packages/a9/14/d21db06e2c383d7f5d65323043ca26ed0b250e336fc1e48429afa5c2cf56/caws-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "484bdd0bc641a2fc33d62bbf1754e11a", "sha256": "a9fb8f5e0ca6005876d55e932d4af9abb4259bbdb95dfc3fc1aaf500b7341694" }, "downloads": -1, "filename": "caws-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "484bdd0bc641a2fc33d62bbf1754e11a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4475, "upload_time": "2019-07-08T16:37:16", "url": "https://files.pythonhosted.org/packages/01/92/6b2b21bbaa8c513a422bb6e402b325f6998e353f141fe150b40e631c1def/caws-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2d98be9f809efdeeffc2316a7c05235a", "sha256": "67f43824796131dc85a5a9dbaf79c90554713855ffc703616ec28985978fe088" }, "downloads": -1, "filename": "caws-0.0.2.tar.gz", "has_sig": false, "md5_digest": "2d98be9f809efdeeffc2316a7c05235a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3013, "upload_time": "2019-07-08T16:37:19", "url": "https://files.pythonhosted.org/packages/96/7d/47f94e680c39a344b3c67cec394a6e3c2255cc9a0e420e5c8bf154acdb6c/caws-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "f11c2858c0dc9d580f9e67323a09442b", "sha256": "11a1bf0fb1fa87f8b1b5a1382f9f871eb3457cfae77f18118b54108a7b11c6e6" }, "downloads": -1, "filename": "caws-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "f11c2858c0dc9d580f9e67323a09442b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5827, "upload_time": "2019-07-13T18:20:54", "url": "https://files.pythonhosted.org/packages/8f/82/8559e168826f78f7cb33f01baf67cb48bd0f69a938896f76e11d2bbaae38/caws-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2387a41e894fbc723880bb2d7b8ca267", "sha256": "523dffc0c3babff9d41c4465e7b01b94cbe464aa09a66a7bc52280632de85822" }, "downloads": -1, "filename": "caws-0.0.3.tar.gz", "has_sig": false, "md5_digest": "2387a41e894fbc723880bb2d7b8ca267", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4464, "upload_time": "2019-07-13T18:20:58", "url": "https://files.pythonhosted.org/packages/a2/7d/6c7d980d930a1f0db7a1817080cc07c0bf26095ac49f823c04f1a9d0bfc6/caws-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "76a5b38aa166db745c92cbcba19faf4a", "sha256": "205e3cb237fa283c7bc1d5c27d83da34266cce472018fd8c027e712678517dc0" }, "downloads": -1, "filename": "caws-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "76a5b38aa166db745c92cbcba19faf4a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5840, "upload_time": "2019-07-13T18:55:13", "url": "https://files.pythonhosted.org/packages/6e/63/2817aebdbb2553b49dba441cda946cb47047c3efc98a1683402b4d2729ec/caws-0.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "84d5485eb7769deb42801349cc61e12b", "sha256": "0560c24f9a0a080e344109f01c3c6524964de4c6801ba8c809ced6390c05bcc7" }, "downloads": -1, "filename": "caws-0.0.4.tar.gz", "has_sig": false, "md5_digest": "84d5485eb7769deb42801349cc61e12b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4473, "upload_time": "2019-07-13T18:55:17", "url": "https://files.pythonhosted.org/packages/7d/e7/aba30ceb0c033a55307d58736644156d9e7b8c5dca490ed8c8578eb14759/caws-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "b6f1af489d7c78f4194b55ea8282209b", "sha256": "c70a777094300d36374a4ac7dd8d0c5ab665580adca9e2020bc61ff6a028919c" }, "downloads": -1, "filename": "caws-0.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "b6f1af489d7c78f4194b55ea8282209b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5894, "upload_time": "2019-07-19T16:32:34", "url": "https://files.pythonhosted.org/packages/67/52/4b80d59e69ad001c617538e33e63dce6982cb29e42767f7d4d6a070fd3d1/caws-0.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "88a37b80a34aed99462808a3bc203379", "sha256": "483f6bcad2296a8d129b8ab824701aadda86efb96a89cb9e95bf7c7c4182fde6" }, "downloads": -1, "filename": "caws-0.0.5.tar.gz", "has_sig": false, "md5_digest": "88a37b80a34aed99462808a3bc203379", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4545, "upload_time": "2019-07-19T16:32:35", "url": "https://files.pythonhosted.org/packages/92/72/2ccf3c8c02d9c580691d4e7dbb314c8d783fd298e43dd961c73d2c9111fd/caws-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "5d7392d30456a943079b97029b941ad3", "sha256": "f8a3dd163863034fcfcbb33d1cf8d5f40606d81c304852f3e55f1427942a22b3" }, "downloads": -1, "filename": "caws-0.0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "5d7392d30456a943079b97029b941ad3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6024, "upload_time": "2019-08-01T17:16:13", "url": "https://files.pythonhosted.org/packages/dc/4e/f71227afc3a4c57fc21f8576c66a8a559338852e64a6ca41a12b80458ce7/caws-0.0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4c0caa0c6fb5c89f7c7f49ad2f9d9339", "sha256": "6398ec895d84c6911014b790a45fd71d4f2ced66ae5b58911b71bc0e3d6aedae" }, "downloads": -1, "filename": "caws-0.0.6.tar.gz", "has_sig": false, "md5_digest": "4c0caa0c6fb5c89f7c7f49ad2f9d9339", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4681, "upload_time": "2019-08-01T17:16:14", "url": "https://files.pythonhosted.org/packages/23/38/37eb09f3afaaebfe9a68d74c7c7591dee638d253cc894872226825b86fa6/caws-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "baa92bd3ba0104f90911c62c30aefef1", "sha256": "18619badfa6ad9dc2b26bc65087f9e810a1420ff5c099af580c5f4a8b5e7ed3f" }, "downloads": -1, "filename": "caws-0.0.7-py3-none-any.whl", "has_sig": false, "md5_digest": "baa92bd3ba0104f90911c62c30aefef1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6098, "upload_time": "2019-08-01T18:41:27", "url": "https://files.pythonhosted.org/packages/7c/63/5a92155111e1a912e949f74a879bb14f07e2444924d74eff3f06d61a8481/caws-0.0.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "908fe6b396404ee6e0f8bff91d93e021", "sha256": "52541ae37fb98fc8af7628f4d566d8b276ab26f0c25ddfab53ad1bdcd8a77add" }, "downloads": -1, "filename": "caws-0.0.7.tar.gz", "has_sig": false, "md5_digest": "908fe6b396404ee6e0f8bff91d93e021", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4750, "upload_time": "2019-08-01T18:41:28", "url": "https://files.pythonhosted.org/packages/b1/ff/50b3a2bb5ffc01def0be3043c1139a733397c780a8b06c262971f9254dc3/caws-0.0.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "baa92bd3ba0104f90911c62c30aefef1", "sha256": "18619badfa6ad9dc2b26bc65087f9e810a1420ff5c099af580c5f4a8b5e7ed3f" }, "downloads": -1, "filename": "caws-0.0.7-py3-none-any.whl", "has_sig": false, "md5_digest": "baa92bd3ba0104f90911c62c30aefef1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6098, "upload_time": "2019-08-01T18:41:27", "url": "https://files.pythonhosted.org/packages/7c/63/5a92155111e1a912e949f74a879bb14f07e2444924d74eff3f06d61a8481/caws-0.0.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "908fe6b396404ee6e0f8bff91d93e021", "sha256": "52541ae37fb98fc8af7628f4d566d8b276ab26f0c25ddfab53ad1bdcd8a77add" }, "downloads": -1, "filename": "caws-0.0.7.tar.gz", "has_sig": false, "md5_digest": "908fe6b396404ee6e0f8bff91d93e021", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4750, "upload_time": "2019-08-01T18:41:28", "url": "https://files.pythonhosted.org/packages/b1/ff/50b3a2bb5ffc01def0be3043c1139a733397c780a8b06c262971f9254dc3/caws-0.0.7.tar.gz" } ] }