{ "info": { "author": "Darren Shepherd", "author_email": "darren.s.shepherd@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# Cattle Python API and Client\n\nA Python client for Cattle\n\n## Installing\n\n pip install cattle\n\n## Running as command line client\n\n```bash\nexport CATTLE_URL=http://localhost:8080/v1\n\ncattle --help\n\n# curl -s http://localhost:8080/v1/widgets?foo=bar\ncattle list-widget --foo=bar\n\n# curl -s -X POST http://localhost:8080/v1/widgets -H 'Content-Type: application/json' -d '{ \"foo\" : \"bar\" }'\ncattle create-widget --foo=bar\n\n# curl -s -X PUT http://localhost:8080/v1/widgets/42 -H 'Content-Type: application/json' -d '{ \"foo\" : \"bar\" }'\ncattle update-widget --id=42 --foo=bar\n\n# curl -s -X DELETE http://localhost:8080/v1/widgets/42\ncattle delete-widget --id=42\n```\n\n### Environment variables\n\n|Name | Description | Example |\n|-----------------|----------------|-----------------------------------------|\n|CATTLE_URL | URL of the API | http://localhost:8080/v1 |\n|CATTLE_ACCESS_KEY | Access Key | 4C27AB31828A4E469C09 |\n|CATTLE_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 cattle)\"\n```\n\n## Using API\n\n```python\n\nimport cattle\n\nclient = cattle.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 [rancher/rancher](//github.com/rancher/rancher/issues) with a title starting with `[cattle-cli] `.\n\nOr just [click here](//github.com/rancher/rancher/issues/new?title=%5Bcattle-cli%5D%20) to create a new issue.\n\n\n## Release Process\n\nFirst, be ibuildthecloud, because he owns the PyPi account. Then create a file `${HOME}/.pypirc`\n\n```\n[distutils]\nindex-servers = pypi\n\n[pypi]\nrepository: https://pypi.python.org/pypi\nusername: ibuildthecloud\npassword: *************\n```\n\nThen run `python setup.py sdist upload`\n\n\n## License\n\nMIT Style\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/cattleio/cattle-cli", "keywords": null, "license": "MIT Style", "maintainer": null, "maintainer_email": null, "name": "cattle", "package_url": "https://pypi.org/project/cattle/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/cattle/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/cattleio/cattle-cli" }, "release_url": "https://pypi.org/project/cattle/0.5.4/", "requires_dist": null, "requires_python": null, "summary": "Python API and CLI for Cattle", "version": "0.5.4" }, "last_serial": 2015244, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "a339466a0dc6c4a1e0d333eb0c1245e5", "sha256": "be3b50193c2621857fe974da08261c5290fc177f62ab7b75a967f4308b417f6a" }, "downloads": -1, "filename": "cattle-0.1.0.tar.gz", "has_sig": false, "md5_digest": "a339466a0dc6c4a1e0d333eb0c1245e5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2823, "upload_time": "2014-03-26T05:28:22", "url": "https://files.pythonhosted.org/packages/60/ec/eedc73d29a2962c66d149e9d3647368ead217242a59fa31a889103b57710/cattle-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "cc1d4df962df2ac2ce729cd327da87ed", "sha256": "78c0c7c367f8d3459cbd8476cc089779215a0cb9803b4d9c75edec1bb6097ae0" }, "downloads": -1, "filename": "cattle-0.2.0.tar.gz", "has_sig": false, "md5_digest": "cc1d4df962df2ac2ce729cd327da87ed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2907, "upload_time": "2014-03-31T23:57:34", "url": "https://files.pythonhosted.org/packages/fa/96/ac7d401a39c6cae6dc464bd26fa193ec67309066f93c508284cc5440246c/cattle-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "09a0e214b429197e711ce8edb5e32520", "sha256": "5c12a6c35e44a2fbd4a58a07b4367aafbd04078dce9f34e64ac5b60ca5da8e77" }, "downloads": -1, "filename": "cattle-0.2.1.tar.gz", "has_sig": false, "md5_digest": "09a0e214b429197e711ce8edb5e32520", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2908, "upload_time": "2014-04-02T00:14:59", "url": "https://files.pythonhosted.org/packages/60/31/694ad1575904325db50f6976d491f3ecb56cd594d8eb183f9edb34071f0d/cattle-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "dbdac3f0a7f0f217381c090ec7f3bcb1", "sha256": "340990bcbdc723c8c57cad6bac9b7a5a5f8efbe43031e656e0b9795f1aa6e20c" }, "downloads": -1, "filename": "cattle-0.2.2.tar.gz", "has_sig": false, "md5_digest": "dbdac3f0a7f0f217381c090ec7f3bcb1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2933, "upload_time": "2014-04-11T23:48:07", "url": "https://files.pythonhosted.org/packages/81/22/47bb6cf4b4a791fce5133ec681f9c5efce92dde84e1f12ae815deeea450f/cattle-0.2.2.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "290a33f967e5cd30bff2fa39cec12496", "sha256": "87ebec0cb07ff986857b69c2d61d6e7aa45cdae672581d5cb312cc05ba1b6a9f" }, "downloads": -1, "filename": "cattle-0.3.0.tar.gz", "has_sig": false, "md5_digest": "290a33f967e5cd30bff2fa39cec12496", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2933, "upload_time": "2014-05-19T20:35:22", "url": "https://files.pythonhosted.org/packages/a0/8c/b1e73c869721e7ae67ed8dadda8da182613d5096570fedf0d77ff9d54edf/cattle-0.3.0.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "822068432312e0da71c34d400b1a8d00", "sha256": "c8df240aa4be1fe80a3f6ad5b986ebc5f0ba3940c6fb81a22a678e9285b1e37f" }, "downloads": -1, "filename": "cattle-0.4.0.tar.gz", "has_sig": false, "md5_digest": "822068432312e0da71c34d400b1a8d00", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3052, "upload_time": "2015-04-23T00:17:54", "url": "https://files.pythonhosted.org/packages/c0/44/0f7d5336fe4403e4746cea3111a23c65541f38750d995454b88fc94709e0/cattle-0.4.0.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "387a5c34bff5933e2cd91ae8b21480e8", "sha256": "e790042931fa824bff97feaa76d2257c3e68d1248710a0c8b57b062a5af96fa5" }, "downloads": -1, "filename": "cattle-0.5.0.tar.gz", "has_sig": false, "md5_digest": "387a5c34bff5933e2cd91ae8b21480e8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3221, "upload_time": "2015-06-01T17:14:16", "url": "https://files.pythonhosted.org/packages/c9/1c/3a964a47378090ced073352d0c768b4b82613e61f2408da29bd06a00c1be/cattle-0.5.0.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "b9a2049c4586d8f67d23086905baa034", "sha256": "5584763fe22940d7e13a3d1f15ff13d1d705a151da5185ba1a67138ed315b67e" }, "downloads": -1, "filename": "cattle-0.5.1.tar.gz", "has_sig": false, "md5_digest": "b9a2049c4586d8f67d23086905baa034", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3255, "upload_time": "2015-06-01T17:16:54", "url": "https://files.pythonhosted.org/packages/f3/d5/9b37670d9d85b450a67bed972115193f40cb162e54e042ca8d3841852a96/cattle-0.5.1.tar.gz" } ], "0.5.2": [ { "comment_text": "", "digests": { "md5": "4eb7a2fb6c6f4079a1c231cfec24f748", "sha256": "3d9359a4364b6827fbb3e04dc9d113e545ab130ee85451096fadb90a523f98ad" }, "downloads": -1, "filename": "cattle-0.5.2.tar.gz", "has_sig": false, "md5_digest": "4eb7a2fb6c6f4079a1c231cfec24f748", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3263, "upload_time": "2015-09-17T16:08:57", "url": "https://files.pythonhosted.org/packages/4a/9c/1a7b6c3867ada96c1cc8bd07d774ccc39ed4345a6728ab661d05fa35f20b/cattle-0.5.2.tar.gz" } ], "0.5.3": [ { "comment_text": "", "digests": { "md5": "ea7b18393a47f25194ecef673ab40f47", "sha256": "1c77a4dfeacc7da762f766c9a5144e946d7e035a2619e255e23bfa481ac789a9" }, "downloads": -1, "filename": "cattle-0.5.3.tar.gz", "has_sig": false, "md5_digest": "ea7b18393a47f25194ecef673ab40f47", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3332, "upload_time": "2015-12-11T05:15:07", "url": "https://files.pythonhosted.org/packages/5a/6a/80931ba7c88bae7c35ebcf1d65ca10b94330b17483d243927c705fdb0f64/cattle-0.5.3.tar.gz" } ], "0.5.4": [ { "comment_text": "", "digests": { "md5": "483ae05f45d70de898b76660a5c32797", "sha256": "6ae8b377d9a70a4351598b84854785ee5f4cb4b1a29abf5c33454bb58de2470e" }, "downloads": -1, "filename": "cattle-0.5.4.tar.gz", "has_sig": false, "md5_digest": "483ae05f45d70de898b76660a5c32797", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3394, "upload_time": "2016-03-18T22:57:28", "url": "https://files.pythonhosted.org/packages/17/fd/65395f2f114faae4ca287236b84846bdc325a18ea0acd2e14b99d0cda709/cattle-0.5.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "483ae05f45d70de898b76660a5c32797", "sha256": "6ae8b377d9a70a4351598b84854785ee5f4cb4b1a29abf5c33454bb58de2470e" }, "downloads": -1, "filename": "cattle-0.5.4.tar.gz", "has_sig": false, "md5_digest": "483ae05f45d70de898b76660a5c32797", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3394, "upload_time": "2016-03-18T22:57:28", "url": "https://files.pythonhosted.org/packages/17/fd/65395f2f114faae4ca287236b84846bdc325a18ea0acd2e14b99d0cda709/cattle-0.5.4.tar.gz" } ] }