{ "info": { "author": "Spotinst", "author_email": "service@spotinst.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "[![Build Status](https://travis-ci.org/spotinst/spotinst-sdk-python.svg?branch=master)](https://travis-ci.org/spotinst/spotinst-sdk-python)\n[![Coverage Status](https://coveralls.io/repos/github/spotinst/spotinst-sdk-python/badge.svg?branch=master)](https://coveralls.io/github/spotinst/spotinst-sdk-python?branch=master)\n[![Python 2.7](https://img.shields.io/badge/python-2.7-blue.svg)](https://www.python.org/downloads/release/python-270/)\n[![Python 3.6](https://img.shields.io/badge/python-3.6-blue.svg)](https://www.python.org/downloads/release/python-360/)\n\n# spotinst-sdk-python\nSpotinst SDK for the Python programming language\n\n# **V2 Is Coming!**\nVersion 2 for the Spotinst Python SDK will be moving from the `v2` branch to the `master` branch very soon. The current `master` will move to it's own `v1` branch and eventually be deprecated. Version 2 introduces some breaking changes from v1 and will require updates when switching over. Luckily this process should be easy and is completely explained on the [v2 branch in this repository](https://github.com/spotinst/spotinst-sdk-python/tree/v2). Both `v1` and `v2` will be released as `spotinst-sdk` and `spotinst-sdk2` respectively, to prevent any auto version upgrades.\n\n## Table of contents\n\n* [Installation](#installation)\n* [Configuring Credentials](#configuring-credentials)\n* [SDK Docs](./docs/pydocmd/)\n* [Endpoints](./docs/pydocmd/endpoints/)\n* [Elastigroup](./docs/pydocmd/endpoints/elastigroup/)\n* [Functions](./docs/pydocmd/endpoints/functions/)\n* [Administration](./docs/pydocmd/endpoints/administration/)\n* [Multai Load Balancer](./docs/pydocmd/endpoints/mlb)\n* [Ocean](./docs/pydocmd/endpoints/ocean)\n* [Examples](./docs/pydocmd/examples/)\n* [Classes](./docs/pydocmd/classes/)\n* [ASG](./docs/pydocmd/classes/asg.md)\n* [Deployment](./docs/pydocmd/classes/deployment.md)\n* [Deployment Action](./docs/pydocmd/classes/deployment_action.md)\n* [Elastigroup](./docs/pydocmd/classes/elastigroup.md)\n* [EMR](./docs/pydocmd/classes/emr.md) \n* [Functions](./docs/pydocmd/classes/functions.md)\n* [MLB](./docs/pydocmd/classes/mlb.md)\n* [Stateful](./docs/pydocmd/classes/stateful.md)\n* [User Mapping](./docs/pydocmd/classes/user_mapping.md)\n* [Ocean](./docs/pydocmd/classes/ocean.md)\n* [Event Subscription](./docs/pydocmd/classes/event_subscription.md)\n\n\n## Installation\n```bash\npip install --upgrade spotinst-sdk\n```\n\n## Configuring Credentials\nThe mechanism in which the sdk looks for credentials is to search through a list of possible locations and stop as soon as it finds credentials. \nThe order in which the sdk searches for credentials is:\n1. Passing credentials as parameters to the `SpotinstClient()` constructor\n- example\n```python\nclient = SpotinstClient(auth_token='token', account_id='act-123')\n```\n\n2. Fetching the account and token from environment variables under `SPOTINST_ACCOUNT` & `SPOTINST_TOKEN`\n\nIf you choose to not pass your credentials directly you configure a credentials file, this file should be a valid `.yml` file.\nThe default shared credential file location is `~/.spotinst/credentials` and the default profile is `default`\n- example\n```yaml\ndefault: #profile\ntoken: $defaul_spotinst_token\naccount: $default_spotinst-account-id\nmy_profle:\ntoken: $my_spotinst_token\naccount: $my_spotinst-account-id\n```\n\n3. You can overwrite the credentials file location and the profile used as parameters in the `SpotinstClient()` constructor\n- example\n```python\nclient = SpotinstClient(credentials_file='/path/to/file', profile='my_profile')\n```\n \n4. You can overwrite the credentials file location and the profile used as environment variables `SPOTINST_PROFILE` and/or `SPOTINST_SHARED_CREDENTIALS_FILE`\n5. Fetching from the default location with the default profile", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/spotinst/spotinst-sdk-python", "keywords": "spotinst spot instances aws ec2 cloud infrastructure development elastigroup", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "spotinst-sdk", "package_url": "https://pypi.org/project/spotinst-sdk/", "platform": "", "project_url": "https://pypi.org/project/spotinst-sdk/", "project_urls": { "Homepage": "https://github.com/spotinst/spotinst-sdk-python" }, "release_url": "https://pypi.org/project/spotinst-sdk/1.0.48/", "requires_dist": null, "requires_python": "", "summary": "A Python SDK for Spotinst", "version": "1.0.48" }, "last_serial": 5470109, "releases": { "1.0.26": [ { "comment_text": "", "digests": { "md5": "1e4d36ac58047171f464c30cba755009", "sha256": "88ea94c87d2265c055a0212470fe8fc17d4b5b9585f57a11d663b9f70b96c5ca" }, "downloads": -1, "filename": "spotinst-sdk-1.0.26.tar.gz", "has_sig": false, "md5_digest": "1e4d36ac58047171f464c30cba755009", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9084, "upload_time": "2018-06-04T16:05:28", "url": "https://files.pythonhosted.org/packages/8d/aa/9f28c3a160c7c28962f51419958ac7870d8e8d8b02e66e655e66d1c08c9a/spotinst-sdk-1.0.26.tar.gz" } ], "1.0.27.1": [ { "comment_text": "", "digests": { "md5": "df548ba2b3ef44d98ebb923bb5dc8754", "sha256": "e87e1adab1efbc9a94f2acbaca015295a67414c46dd42363b8e9534fb4979b39" }, "downloads": -1, "filename": "spotinst-sdk-1.0.27.1.tar.gz", "has_sig": false, "md5_digest": "df548ba2b3ef44d98ebb923bb5dc8754", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9090, "upload_time": "2018-06-04T16:00:32", "url": "https://files.pythonhosted.org/packages/fe/3b/59ffe0e646c35175d4ce27d1d569efa0282f70a531e80bfcb05f83112be0/spotinst-sdk-1.0.27.1.tar.gz" } ], "1.0.28": [ { "comment_text": "", "digests": { "md5": "9a70def1618bd25f953c61a55706f495", "sha256": "fb36787fb9ee5665a01b09072105b141b62302c5c2a88a0a426c1b87815ca961" }, "downloads": -1, "filename": "spotinst-sdk-1.0.28.tar.gz", "has_sig": false, "md5_digest": "9a70def1618bd25f953c61a55706f495", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9164, "upload_time": "2018-06-07T11:57:57", "url": "https://files.pythonhosted.org/packages/e5/59/321ccfbc5f902750d9057e8f6c68588df2f72c194eec58b79c45311bafec/spotinst-sdk-1.0.28.tar.gz" } ], "1.0.29": [ { "comment_text": "", "digests": { "md5": "22234e8b2b4b37ebe79d3dd708b18a02", "sha256": "2eea6381bd145b7a4935172239b8a0396b2dcb86f215bc1fd1b8566a2eb710b0" }, "downloads": -1, "filename": "spotinst-sdk-1.0.29.tar.gz", "has_sig": false, "md5_digest": "22234e8b2b4b37ebe79d3dd708b18a02", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14742, "upload_time": "2018-06-18T15:54:15", "url": "https://files.pythonhosted.org/packages/b6/14/2cd3a2f3e21fab34f7e3089c51873f1d396f89105108abd46a215b342fa2/spotinst-sdk-1.0.29.tar.gz" } ], "1.0.30": [ { "comment_text": "", "digests": { "md5": "5195d69acb625cb40fecfb51e2ff414c", "sha256": "ca7cdcdb63c6b231a509bf73c644793ab361d28bfd2ca68ebdcb11a4ad536171" }, "downloads": -1, "filename": "spotinst-sdk-1.0.30.tar.gz", "has_sig": false, "md5_digest": "5195d69acb625cb40fecfb51e2ff414c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15977, "upload_time": "2018-06-24T13:14:16", "url": "https://files.pythonhosted.org/packages/ca/d6/cfc51a27a84426a44390f874e5ad138ed544b06ce44e54eda3752a0aa570/spotinst-sdk-1.0.30.tar.gz" } ], "1.0.33": [ { "comment_text": "", "digests": { "md5": "d4a077e610463ec01d34360571aa5aa7", "sha256": "bf9d40857adec556ba08713c8ecbb9f5c5a9da8d9b363069271f3237970a804e" }, "downloads": -1, "filename": "spotinst-sdk-1.0.33.tar.gz", "has_sig": false, "md5_digest": "d4a077e610463ec01d34360571aa5aa7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16294, "upload_time": "2018-07-24T11:16:01", "url": "https://files.pythonhosted.org/packages/ce/43/05f4cb6179a821778ce4fd09d2f6e4caeef0c6783405af5d8eb6e6eb9a08/spotinst-sdk-1.0.33.tar.gz" } ], "1.0.36": [ { "comment_text": "", "digests": { "md5": "352aa0c9bc726176f22afe833a34570c", "sha256": "98482dc1b6ddbe28f49d320915919ed3b64f8b0b8d55041be2dc9039efc30c19" }, "downloads": -1, "filename": "spotinst-sdk-1.0.36.tar.gz", "has_sig": false, "md5_digest": "352aa0c9bc726176f22afe833a34570c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19119, "upload_time": "2018-09-07T22:36:12", "url": "https://files.pythonhosted.org/packages/73/60/f9af2cd6aa883cc07097ce1c84c8d38cdbf9a3e34e5223df43d291b6c1ab/spotinst-sdk-1.0.36.tar.gz" } ], "1.0.37": [ { "comment_text": "", "digests": { "md5": "aa553f8478701d9273fbf57787180d4a", "sha256": "5af8a35545c2caf91dcba8a7b6f7391d03aac6fa47f8180b595ae29c5a5a7b23" }, "downloads": -1, "filename": "spotinst-sdk-1.0.37.tar.gz", "has_sig": false, "md5_digest": "aa553f8478701d9273fbf57787180d4a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20071, "upload_time": "2018-09-21T22:08:45", "url": "https://files.pythonhosted.org/packages/af/39/4a02c49f991285dc6e8cad9036a4d1a00b4fe67b3e0f106b12b80bec7173/spotinst-sdk-1.0.37.tar.gz" } ], "1.0.38": [ { "comment_text": "", "digests": { "md5": "c187794bd0e22b19dc7402319682c146", "sha256": "d33985b866b9f00730da89838859d6d4002d38c17d31a10e6a6eb6a4c80f6f64" }, "downloads": -1, "filename": "spotinst-sdk-1.0.38.tar.gz", "has_sig": false, "md5_digest": "c187794bd0e22b19dc7402319682c146", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20081, "upload_time": "2018-09-28T22:33:08", "url": "https://files.pythonhosted.org/packages/88/db/b4b2cb8054cb4aace9bf5c14f2c93f471c6473a204ebee5357a7a6d356df/spotinst-sdk-1.0.38.tar.gz" } ], "1.0.39": [ { "comment_text": "", "digests": { "md5": "5994151f9cc0493263479bee299138d0", "sha256": "96192978aebb0c03548fbcb6c396ea2834ad5fc03e884d756401d5b626e06ec6" }, "downloads": -1, "filename": "spotinst-sdk-1.0.39.tar.gz", "has_sig": false, "md5_digest": "5994151f9cc0493263479bee299138d0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20090, "upload_time": "2018-10-04T18:40:45", "url": "https://files.pythonhosted.org/packages/51/23/80909ac66f1bb4c323265f5ece4d8308e3313ed57bbb5e5d69315d7765b4/spotinst-sdk-1.0.39.tar.gz" } ], "1.0.40": [ { "comment_text": "", "digests": { "md5": "7100b9f0e72fbc76c5ec67a66d2927cb", "sha256": "c5d01b7b2e2632d3ec919e030be7d2515a64af27b2f16df398e90e1ad12b108b" }, "downloads": -1, "filename": "spotinst-sdk-1.0.40.tar.gz", "has_sig": false, "md5_digest": "7100b9f0e72fbc76c5ec67a66d2927cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22274, "upload_time": "2018-10-22T23:43:38", "url": "https://files.pythonhosted.org/packages/d2/7e/de2516d34b35428d966e2efe679d5ab44e5b8b775a52ca2515447b994e82/spotinst-sdk-1.0.40.tar.gz" } ], "1.0.41": [ { "comment_text": "", "digests": { "md5": "223944180837d75705d3c062ab949854", "sha256": "1da5a34067f7a75f847ce3f14434254bf2df21d8f78445c5dc092f9eeff1d8cc" }, "downloads": -1, "filename": "spotinst-sdk-1.0.41.tar.gz", "has_sig": false, "md5_digest": "223944180837d75705d3c062ab949854", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23208, "upload_time": "2018-10-30T22:29:26", "url": "https://files.pythonhosted.org/packages/ae/6b/229125b466ce70b36072790f81691eeecc2104da69ec216eae7213a2eeda/spotinst-sdk-1.0.41.tar.gz" } ], "1.0.42": [ { "comment_text": "", "digests": { "md5": "1eb29fd7a9adbd56b6a6512b1a7dc4a1", "sha256": "5ef9a84190957d0ee28b046c76304f8ffd9715bc23082e25834e393ae2112e55" }, "downloads": -1, "filename": "spotinst-sdk-1.0.42.tar.gz", "has_sig": false, "md5_digest": "1eb29fd7a9adbd56b6a6512b1a7dc4a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23053, "upload_time": "2018-11-09T21:53:31", "url": "https://files.pythonhosted.org/packages/6e/86/1c60e997ea6d38fcd0cff505e2ebd4efd98849b2661b80c81db02a6e7f00/spotinst-sdk-1.0.42.tar.gz" } ], "1.0.43": [ { "comment_text": "", "digests": { "md5": "4eac8ea1391c050575b8fa536d6d52ba", "sha256": "2f3c76b055fa79064361f5121f5c388c6caf6de3ef7371e7e291b084b27346df" }, "downloads": -1, "filename": "spotinst-sdk-1.0.43.tar.gz", "has_sig": false, "md5_digest": "4eac8ea1391c050575b8fa536d6d52ba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23256, "upload_time": "2018-11-27T21:17:24", "url": "https://files.pythonhosted.org/packages/31/95/11612b8a31059081fd40e8a21dc55edc61bfcc48f8a3c3d44ae31a946a24/spotinst-sdk-1.0.43.tar.gz" } ], "1.0.44": [ { "comment_text": "", "digests": { "md5": "e61c38a9edbf6e251cb76803d5ca912a", "sha256": "56a8521f23b5ba4a28988187e0e3916da96024c3088879efddca20a04a07791d" }, "downloads": -1, "filename": "spotinst-sdk-1.0.44.tar.gz", "has_sig": false, "md5_digest": "e61c38a9edbf6e251cb76803d5ca912a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25012, "upload_time": "2019-01-25T19:56:53", "url": "https://files.pythonhosted.org/packages/b7/07/d1f2e573cc366f304cf302ec0c1f99f48ff07bf9c2c42845f996605bf452/spotinst-sdk-1.0.44.tar.gz" } ], "1.0.45": [ { "comment_text": "", "digests": { "md5": "2411b9a5e5cdc236ef62b439d01a155b", "sha256": "c8c826c07e19bac7a2691108b021cb79efd86d1929beb3b9d4b3d6d0fcd69719" }, "downloads": -1, "filename": "spotinst-sdk-1.0.45.tar.gz", "has_sig": false, "md5_digest": "2411b9a5e5cdc236ef62b439d01a155b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25569, "upload_time": "2019-02-04T23:32:49", "url": "https://files.pythonhosted.org/packages/02/c2/f5c2de7983efea020ed74534a31b9ab05b19897b8c76df1e5fca865ecfa7/spotinst-sdk-1.0.45.tar.gz" } ], "1.0.47": [ { "comment_text": "", "digests": { "md5": "8a6a746bf0ff0db1591cc26afd387fd4", "sha256": "f6d15c983f16186d1e6d14fa87c0208e6294c5070b493f11c1b172a63ef12b8d" }, "downloads": -1, "filename": "spotinst-sdk-1.0.47.tar.gz", "has_sig": false, "md5_digest": "8a6a746bf0ff0db1591cc26afd387fd4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26110, "upload_time": "2019-04-02T22:04:04", "url": "https://files.pythonhosted.org/packages/0b/bd/1a03fa8a90c0234b3546e20cc21ff77873ad5b15c97c2d4e4371aa906f3b/spotinst-sdk-1.0.47.tar.gz" } ], "1.0.48": [ { "comment_text": "", "digests": { "md5": "8f917f4cd05f34a44efccdc185cdc5de", "sha256": "ef728fa956273d6012dc802305f7347e37ca766452241c68c2a297566498f259" }, "downloads": -1, "filename": "spotinst-sdk-1.0.48.tar.gz", "has_sig": false, "md5_digest": "8f917f4cd05f34a44efccdc185cdc5de", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26333, "upload_time": "2019-07-01T08:41:22", "url": "https://files.pythonhosted.org/packages/7f/1e/83c0698a1509f4a1a4ea42da66f9145df6b2ffe13fb30715b9601264c8f5/spotinst-sdk-1.0.48.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8f917f4cd05f34a44efccdc185cdc5de", "sha256": "ef728fa956273d6012dc802305f7347e37ca766452241c68c2a297566498f259" }, "downloads": -1, "filename": "spotinst-sdk-1.0.48.tar.gz", "has_sig": false, "md5_digest": "8f917f4cd05f34a44efccdc185cdc5de", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26333, "upload_time": "2019-07-01T08:41:22", "url": "https://files.pythonhosted.org/packages/7f/1e/83c0698a1509f4a1a4ea42da66f9145df6b2ffe13fb30715b9601264c8f5/spotinst-sdk-1.0.48.tar.gz" } ] }