{ "info": { "author": "Darren Shepherd", "author_email": "darren.s.shepherd@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# gdapi-python\n\nA Python client for Rancher APIs\n\n## Installing\n\n pip install gdapi-python\n\n## Running as command line client\n\n```bash\nexport GDAPI_URL=http://localhost:8080/v1\n\ngdapi --help\n\n# curl -s http://localhost:8080/v1/widgets?foo=bar\ngdapi list-widget --foo=bar\n\n# curl -s -X POST http://localhost:8080/v1/widgets -H 'Content-Type: application/json' -d '{ \"foo\" : \"bar\" }'\ngdapi create-widget --foo=bar\n\n# curl -s -X PUT http://localhost:8080/v1/widgets/42 -H 'Content-Type: application/json' -d '{ \"foo\" : \"bar\" }'\ngdapi update-widget --id=42 --foo=bar\n\n# curl -s -X DELETE http://localhost:8080/v1/widgets/42\ngdapi delete-widget --id=42\n```\n\n### Environment variables\n\n|Name | Description | Example |\n|-----------------|----------------|-----------------------------------------|\n|GDAPI_URL | URL of the API | http://localhost:8080/v1 |\n|GDAPI_ACCESS_KEY | Access Key | 4C27AB31828A4E469C09 |\n|GDAPI_SECRET_KEY | Secrey Key | fDxEzyxdFMWbmugstPpzykj2qA84Tn9DPDiAc3Sb|\n\nThe above environment variables can be passed as arguments on the command line such as `--url`, `--access-key`, and `--secret-key`.\n\n### Bash Autocompletion\n\nAdd the below to your `.bashrc` or similar profile script:\n```\neval \"$(register-python-argcomplete gdapi)\"\n```\n\n## Using API\n\n```python\n\nimport gdapi\n\nclient = gdapi.Client(url='http://localhost:8080/v1',\n access_key='4C27AB31828A4E469C09',\n secret_key='fDxEzyxdFMWbmugstPpzykj2qA84Tn9DPDiAc3Sb')\n\n# curl -s http://localhost:8080/v1/widgets?foo=bar\nclient.list_widget(foo='bar')\n\n# curl -s -X POST http://localhost:8080/v1/widgets -H 'Content-Type: application/json' -d '{ \"foo\" : \"bar\" }'\nclient.create_widget(foo='bar')\n\n# curl -s -X PUT http://localhost:8080/v1/widgets/42 -H 'Content-Type: application/json' -d '{ \"foo\" : \"bar\" }'\nwidget = client.by_id_widget('42')\nclient.update(widget, foo='bar')\n\n# curl -s -X DELETE http://localhost:8080/v1/widgets/42\nwidget = client.by_id_widget('42')\nclient.delete(widget)\n\n# Links\n# curl -s -X DELETE http://localhost:8080/v1/widgets/42/foobars\nwidget = client.by_id_widget('42')\nwidget.foobars()\n```\n\n# Contact\nFor bugs, questions, comments, corrections, suggestions, etc., open an issue in\n [rancher/rancher](//github.com/rancher/rancher/issues) with a title starting with `[gdapi-python] `.\n\nOr just [click here](//github.com/rancher/rancher/issues/new?title=%5Bgdapi-python%5D%20) to create a new issue.\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/godaddy/gdapi-python", "keywords": null, "license": "MIT Style", "maintainer": null, "maintainer_email": null, "name": "gdapi-python", "package_url": "https://pypi.org/project/gdapi-python/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/gdapi-python/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/godaddy/gdapi-python" }, "release_url": "https://pypi.org/project/gdapi-python/0.5.3/", "requires_dist": null, "requires_python": null, "summary": "Python API and CLI for GDAPI standard", "version": "0.5.3" }, "last_serial": 2332849, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "89a525d0da32fe7b01166784dc655894", "sha256": "08b6fcada0f867ec664317488d7720192f69a294bd64a5ad7182acc081930177" }, "downloads": -1, "filename": "gdapi-python-0.1.0.tar.gz", "has_sig": false, "md5_digest": "89a525d0da32fe7b01166784dc655894", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8677, "upload_time": "2014-03-26T05:08:35", "url": "https://files.pythonhosted.org/packages/21/f9/64fc9e6bd6fa4b166d48417bee94c26b4dc365c82112f0b7f96337f5454b/gdapi-python-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "9e8afbb2ad910d12607f93ed715ebf01", "sha256": "3db7c4f002b2230f519e069761d6d6829a572f6fe0dc57c4d5410b312bbc2437" }, "downloads": -1, "filename": "gdapi-python-0.2.0.tar.gz", "has_sig": false, "md5_digest": "9e8afbb2ad910d12607f93ed715ebf01", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8924, "upload_time": "2014-03-31T23:49:44", "url": "https://files.pythonhosted.org/packages/dd/d8/0885663d6707b98dba8b4fe90af7629de927b009563552dc404d80fcde53/gdapi-python-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "2efbeb208da721dfd2f879474a28b0b7", "sha256": "f38e6d0e4fa13791da7a9d3fa8f651935790a698fca6e97c455e76d58094c866" }, "downloads": -1, "filename": "gdapi-python-0.2.1.tar.gz", "has_sig": false, "md5_digest": "2efbeb208da721dfd2f879474a28b0b7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9038, "upload_time": "2014-04-02T00:06:53", "url": "https://files.pythonhosted.org/packages/77/d8/a6c27e1ad4082ef4c1ad02370f6d7c5132add3e4a0cf62748e6fd1aeac3a/gdapi-python-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "8d8920ba08af72c6bf14e9c591f37815", "sha256": "0a35c383b35917ab3c3b9c93a4c94789580faed05a09c8b6e58454e41712579c" }, "downloads": -1, "filename": "gdapi-python-0.2.2.tar.gz", "has_sig": false, "md5_digest": "8d8920ba08af72c6bf14e9c591f37815", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9082, "upload_time": "2014-04-11T23:25:13", "url": "https://files.pythonhosted.org/packages/cb/04/20394c1dfdd63e471cb836e8e8d864637883b4064da4252c5c536c4aae5b/gdapi-python-0.2.2.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "c4646beb02873c24a7afdf991a0fa36e", "sha256": "593ca881091965206c608cd515282d6fa495228cb03873ea46dc89ae34f6eedb" }, "downloads": -1, "filename": "gdapi-python-0.3.0.tar.gz", "has_sig": false, "md5_digest": "c4646beb02873c24a7afdf991a0fa36e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9126, "upload_time": "2014-05-19T20:32:36", "url": "https://files.pythonhosted.org/packages/99/d0/f8f868f49d95f8a4d961dc45d071d68c52381459f1323b76e1dff6e74e78/gdapi-python-0.3.0.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "5352705ade6a83d9da83052129dedd57", "sha256": "da2beab3e9de8c761fd59efbbb30c7e5ce623b9e354f179bd5b015ac0a043864" }, "downloads": -1, "filename": "gdapi-python-0.4.0.tar.gz", "has_sig": false, "md5_digest": "5352705ade6a83d9da83052129dedd57", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9376, "upload_time": "2015-04-23T00:17:39", "url": "https://files.pythonhosted.org/packages/82/3b/becbeda61d4c5b361b306b0008beedf6197160ffee486657819ba281e1f2/gdapi-python-0.4.0.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "761e3e583b101557f94ac88ab1ce6f51", "sha256": "8b48d0f8c1c128d42d50e8c5b91032a2e06847f3efab2807250eddf08f42afe9" }, "downloads": -1, "filename": "gdapi-python-0.5.0.tar.gz", "has_sig": false, "md5_digest": "761e3e583b101557f94ac88ab1ce6f51", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9396, "upload_time": "2015-06-01T17:12:58", "url": "https://files.pythonhosted.org/packages/f3/0e/634ffdcea14f7a18c0364484b18dee7ee633e98dc60a2a76f4a4d05adec3/gdapi-python-0.5.0.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "7482d22c71c061a6294e7cfafcd05ac8", "sha256": "ec6547a7a85173f66bb78c20b53acefed1391deccb528e47583d23dc01ed5cc3" }, "downloads": -1, "filename": "gdapi-python-0.5.1.tar.gz", "has_sig": false, "md5_digest": "7482d22c71c061a6294e7cfafcd05ac8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9514, "upload_time": "2015-09-17T15:54:49", "url": "https://files.pythonhosted.org/packages/1d/32/597684653727af1ba64d2b25796fb52369218c483b5fe8b827631c0a5849/gdapi-python-0.5.1.tar.gz" } ], "0.5.2": [ { "comment_text": "", "digests": { "md5": "902f7e19a2672dfbb8dee3c0ec9320ad", "sha256": "05d619f74f87fc3e230c786bcce6a3ed45829f5eacd09264f8d676895b98b348" }, "downloads": -1, "filename": "gdapi-python-0.5.2.tar.gz", "has_sig": false, "md5_digest": "902f7e19a2672dfbb8dee3c0ec9320ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9572, "upload_time": "2016-03-18T22:15:21", "url": "https://files.pythonhosted.org/packages/28/b7/3d10358bf0845493f8b0b13844ba170b83bc82a5ad8026f119a0098be886/gdapi-python-0.5.2.tar.gz" } ], "0.5.3": [ { "comment_text": "", "digests": { "md5": "ac342407bda99a6510890d0e6f37c398", "sha256": "1a935073b8f99cc76f0384057ca1b647691010e5c97aea4f065331785d31bed5" }, "downloads": -1, "filename": "gdapi-python-0.5.3.tar.gz", "has_sig": false, "md5_digest": "ac342407bda99a6510890d0e6f37c398", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9622, "upload_time": "2016-09-09T04:31:28", "url": "https://files.pythonhosted.org/packages/e2/8e/7cda861f7ce2e7474ad2d5de0cb6bd2ed37864fba46c95f3fdf5027df46f/gdapi-python-0.5.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ac342407bda99a6510890d0e6f37c398", "sha256": "1a935073b8f99cc76f0384057ca1b647691010e5c97aea4f065331785d31bed5" }, "downloads": -1, "filename": "gdapi-python-0.5.3.tar.gz", "has_sig": false, "md5_digest": "ac342407bda99a6510890d0e6f37c398", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9622, "upload_time": "2016-09-09T04:31:28", "url": "https://files.pythonhosted.org/packages/e2/8e/7cda861f7ce2e7474ad2d5de0cb6bd2ed37864fba46c95f3fdf5027df46f/gdapi-python-0.5.3.tar.gz" } ] }