{ "info": { "author": "Pureport", "author_email": "noreply@pureport.com", "bugtrack_url": null, "classifiers": [ "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "# Pureport Python Client\nA thin Python 2/3 client for the Pureport ReST API, backed by [requests](http://docs.python-requests.org/en/master/).\n\n## Install\n```bash\npip install pureport-client\n```\n\n## Usage\n```python\nfrom pureport.api.client import Client\nfrom pureport.exception.api import ClientHttpException, NotFoundException\n\n### Create the Client and login with your API Key\nclient = Client()\nclient.login(\"MY_API_KEY\", \"MY_API_SECRET\")\n\n### List Accounts\naccounts = client.accounts.list()\nfirst_account = accounts[0]\n\n### List all Networks for the first Account\nnetworks = client.accounts.networks(first_account).list()\n\n### Create a Network for the Account\nnew_network = client.accounts.networks(first_account).create({\n 'name': 'My First Network'\n})\n\n### Obtain a Pureport location link for a new Connection\nlocation = client.locations.list()[0]\nlocation_link = Client.to_link(location, location['name'])\n\n### Create an AWS Connection\nnew_connection_data = {\n 'name': 'My First AWS Connection',\n 'type': 'AWS_DIRECT_CONNECT',\n 'speed': 50,\n 'highAvailability': True,\n 'peering': {\n 'type': 'PRIVATE'\n },\n 'location': location_link,\n 'billingTerm': 'HOURLY',\n 'awsAccountId': 'YOUR_AWS_ACCOUNT_ID',\n 'awsRegion': 'YOUR_AWS_REGION' # e.g. 'us-west-2'\n}\n\nnew_connection = None\ntry:\n new_connection = client.networks.connections(new_network).create(new_connection_data)\nexcept ClientHttpException as e:\n print(e.response.text)\n\n### Retrieve the new AWS Connection by the returned object\nclient.connections.get(new_connection)\n\n### Retrieve the new AWS Connection by it's 'id'\nclient.connections.get_by_id(new_connection['id'])\n\n### Delete the new AWS Connection\nclient.connections.delete(new_connection)\n\n### Expect a 404 error for the deleted connection\ntry:\n client.connections.get(new_connection)\nexcept NotFoundException as e:\n print(e.response.text)\n\n### Delete the Network\nclient.networks.delete(new_network)\n```\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/pureport/pureport-python-client", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pureport-client", "package_url": "https://pypi.org/project/pureport-client/", "platform": "", "project_url": "https://pypi.org/project/pureport-client/", "project_urls": { "Homepage": "https://github.com/pureport/pureport-python-client" }, "release_url": "https://pypi.org/project/pureport-client/0.0.8/", "requires_dist": [ "requests", "enum34" ], "requires_python": "", "summary": "An API client for the Pureport ReST API", "version": "0.0.8" }, "last_serial": 5896478, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "ab5cda8d544609284948cefabd6940bc", "sha256": "c73d9bcf9ca011de273a9fbf7beb0b6c54354164f19e043a1626ed23c9ecc838" }, "downloads": -1, "filename": "pureport_client-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "ab5cda8d544609284948cefabd6940bc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9259, "upload_time": "2019-04-29T13:02:00", "url": "https://files.pythonhosted.org/packages/9d/80/ce5bfe6a4302c867a154150eba0e51bf2296ddc2321feeb8392ee9834532/pureport_client-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6d483af8ddd66e8c6db8a464f23ae2d3", "sha256": "5d4c7fcaab587675e2d0d2657a8fc2507c8580c117dc4a19c69978a98f584b8d" }, "downloads": -1, "filename": "pureport-client-0.0.1.tar.gz", "has_sig": false, "md5_digest": "6d483af8ddd66e8c6db8a464f23ae2d3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7678, "upload_time": "2019-04-29T13:02:24", "url": "https://files.pythonhosted.org/packages/02/37/aec67db502d51502a0d9b66fce1dbb3db469ad6c126f51ce9839fde3fca8/pureport-client-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "84577dfdeb81ea0ad412ff3c8079b444", "sha256": "0bbc24b57609453014fcf36f1638e866f6764530966a5aa92bbc2eb70850dcaa" }, "downloads": -1, "filename": "pureport_client-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "84577dfdeb81ea0ad412ff3c8079b444", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11225, "upload_time": "2019-04-30T18:31:30", "url": "https://files.pythonhosted.org/packages/20/18/7183a507223a5f6141a341315f1a6080854598a7f881f2e1e13b4f5a38ea/pureport_client-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1a24a128f758d3f61268316e9acbacb0", "sha256": "4793e56179897200c990dce76f445aed4f2d794d6adde7083b7c3ad13479b68c" }, "downloads": -1, "filename": "pureport-client-0.0.2.tar.gz", "has_sig": false, "md5_digest": "1a24a128f758d3f61268316e9acbacb0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9824, "upload_time": "2019-04-30T18:31:33", "url": "https://files.pythonhosted.org/packages/00/44/c1c2d4be0f14d2d00318533165f89fc715a6c7217612830da740c7ccbb65/pureport-client-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "b1cdd78246c3c4f7afd10873bf07445e", "sha256": "9df5ad2c14cd8ced7b0f46ed08912cc3ba307116d8d6b6b8bdef298a7dd5e8e9" }, "downloads": -1, "filename": "pureport_client-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "b1cdd78246c3c4f7afd10873bf07445e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11221, "upload_time": "2019-05-03T16:11:29", "url": "https://files.pythonhosted.org/packages/f9/e4/2c2b28756ca845e89fa8d9c174aedc0d557e39b4ffb4ce8f55cb8f6475cd/pureport_client-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8107c983d1f511a1a3971971a888f2e2", "sha256": "e62b71ac203d33274a01f0bd5a4bbed8358760a6f5e4da82c9f2b88f5cec9c11" }, "downloads": -1, "filename": "pureport-client-0.0.3.tar.gz", "has_sig": false, "md5_digest": "8107c983d1f511a1a3971971a888f2e2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9839, "upload_time": "2019-05-03T16:11:30", "url": "https://files.pythonhosted.org/packages/e8/f0/6a8b66302b784abbf0cc2d37d6d9dc43e77620358a1ee59379c68ed4a3c6/pureport-client-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "20a37cf8724053ecae9b7dbe72182a5a", "sha256": "0eacd9fa3cb4939bfc1bcd255c35192623295a381c5ece834d78d3de3eb3f154" }, "downloads": -1, "filename": "pureport_client-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "20a37cf8724053ecae9b7dbe72182a5a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11222, "upload_time": "2019-05-06T17:37:19", "url": "https://files.pythonhosted.org/packages/e6/7f/0f20ef1b5b927671df77988d49554073f12aba7a1290dfedffc796ca363e/pureport_client-0.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "95007b4e9cf82cdfadb14677d998e18c", "sha256": "471046a84596be970b4dee49e48a36895622b91f17e32939878950463b4edffb" }, "downloads": -1, "filename": "pureport-client-0.0.4.tar.gz", "has_sig": false, "md5_digest": "95007b4e9cf82cdfadb14677d998e18c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9837, "upload_time": "2019-05-06T17:37:21", "url": "https://files.pythonhosted.org/packages/0b/ef/55f967a281521de42ff3f4d51d2d4319f6e7ecfb53af7738ada469d6ee0c/pureport-client-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "b9052c3c02d48805664028cac2e112d9", "sha256": "c2873d98a4fc8b93e5deb34a6dfe6c22710e2d0041f734eafd1186d1448751b4" }, "downloads": -1, "filename": "pureport_client-0.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "b9052c3c02d48805664028cac2e112d9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11339, "upload_time": "2019-05-24T18:24:03", "url": "https://files.pythonhosted.org/packages/48/91/c517c510d6a0c12dcb2ea285fab2c611b61619baaa90c5a579a754d76217/pureport_client-0.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "79c673385f3ef26a42b3260e975ed71d", "sha256": "89ba730dd4d897e8c8f139f28c466c15508ef98b8c761473f02c2aaa2e82f129" }, "downloads": -1, "filename": "pureport-client-0.0.5.tar.gz", "has_sig": false, "md5_digest": "79c673385f3ef26a42b3260e975ed71d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9959, "upload_time": "2019-05-24T18:24:04", "url": "https://files.pythonhosted.org/packages/f4/5d/73c28d84378f8b4a144c194fdf3368c14cdf0b2d0a44b70d1dd2d7d1406c/pureport-client-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "16047bdb70ec920646a94922c9d0ff08", "sha256": "f52f77f3e1b01ac6cc702ef730095bad0cf008a85742416da02db7124ba3f60a" }, "downloads": -1, "filename": "pureport_client-0.0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "16047bdb70ec920646a94922c9d0ff08", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11732, "upload_time": "2019-05-30T15:51:43", "url": "https://files.pythonhosted.org/packages/b8/2c/53202750709622700159f7f6f66da09e5e660ae554e3c13f75022507c94d/pureport_client-0.0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f5c90e3c1d1ecc9da8baf7b6aa23e810", "sha256": "315bc6353f64f4e954ec0604ee72a8f2f6becbad3bf71e769182230be4858429" }, "downloads": -1, "filename": "pureport-client-0.0.6.tar.gz", "has_sig": false, "md5_digest": "f5c90e3c1d1ecc9da8baf7b6aa23e810", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10276, "upload_time": "2019-05-30T15:51:44", "url": "https://files.pythonhosted.org/packages/12/94/c1361ffe1d1f5d7970a49674e0976aa2e0e9c684e0d0a681b7d10bc89b9b/pureport-client-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "51e705395a53842aefea9c6641436120", "sha256": "e6b22ba6ea36e53305befde175e3593704084070b90be021f52d4b65c80bd023" }, "downloads": -1, "filename": "pureport_client-0.0.7-py3-none-any.whl", "has_sig": false, "md5_digest": "51e705395a53842aefea9c6641436120", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 12058, "upload_time": "2019-06-13T21:22:58", "url": "https://files.pythonhosted.org/packages/bd/2d/54e9a2cb9533edd9914bec9780d3d0aaf4fc6e40f67b812c94868cd951ef/pureport_client-0.0.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "36d7467a7d354b8806a74ae050039e9d", "sha256": "723c371e0d5e3cf508387b64146080fba795a4a845f85725bc431a1dd8d430cd" }, "downloads": -1, "filename": "pureport-client-0.0.7.tar.gz", "has_sig": false, "md5_digest": "36d7467a7d354b8806a74ae050039e9d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10675, "upload_time": "2019-06-13T21:23:00", "url": "https://files.pythonhosted.org/packages/17/9b/b3e56e181fa79133b11955e4960f2e75db019ea537507718db0c5013b49e/pureport-client-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "b4c33868e09e7932801db2156324a4ac", "sha256": "31a396237366667fa1fc3ccdbb8722e87c55ccb935dee5cea0d848f80cce1dde" }, "downloads": -1, "filename": "pureport_client-0.0.8-py3-none-any.whl", "has_sig": false, "md5_digest": "b4c33868e09e7932801db2156324a4ac", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 12749, "upload_time": "2019-09-27T14:35:27", "url": "https://files.pythonhosted.org/packages/86/43/3f06fc00f786a648d3fab87ebe0bf9ecf51f3ff5e8ec01b89d1515f43bda/pureport_client-0.0.8-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d80e9ab4fe54ead3de7a0eee5ce24d57", "sha256": "cac4c447938f0a15fc5247f6d4abd4f760073c1a76f9c5b93fc79ed02a71288e" }, "downloads": -1, "filename": "pureport-client-0.0.8.tar.gz", "has_sig": false, "md5_digest": "d80e9ab4fe54ead3de7a0eee5ce24d57", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11276, "upload_time": "2019-09-27T14:35:29", "url": "https://files.pythonhosted.org/packages/09/58/50b1532225f5882e13eae48cd843f89ad338bae9114a859366fa72176df6/pureport-client-0.0.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b4c33868e09e7932801db2156324a4ac", "sha256": "31a396237366667fa1fc3ccdbb8722e87c55ccb935dee5cea0d848f80cce1dde" }, "downloads": -1, "filename": "pureport_client-0.0.8-py3-none-any.whl", "has_sig": false, "md5_digest": "b4c33868e09e7932801db2156324a4ac", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 12749, "upload_time": "2019-09-27T14:35:27", "url": "https://files.pythonhosted.org/packages/86/43/3f06fc00f786a648d3fab87ebe0bf9ecf51f3ff5e8ec01b89d1515f43bda/pureport_client-0.0.8-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d80e9ab4fe54ead3de7a0eee5ce24d57", "sha256": "cac4c447938f0a15fc5247f6d4abd4f760073c1a76f9c5b93fc79ed02a71288e" }, "downloads": -1, "filename": "pureport-client-0.0.8.tar.gz", "has_sig": false, "md5_digest": "d80e9ab4fe54ead3de7a0eee5ce24d57", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11276, "upload_time": "2019-09-27T14:35:29", "url": "https://files.pythonhosted.org/packages/09/58/50b1532225f5882e13eae48cd843f89ad338bae9114a859366fa72176df6/pureport-client-0.0.8.tar.gz" } ] }