{"library":"spotinst-agent","title":"Spotinst Agent","type":"library","description":"The `spotinst-agent` is a Python-based executor designed as a spectrum instance agent. Its primary function is to run remote scripts, collect data, and deploy applications on machines using a polling architecture. It's an active project, with version 1.1.260 released in June 2024, and appears to follow a regular release cadence.","language":"python","status":"active","last_verified":"Fri May 15","install":{"commands":["pip install spotinst-agent"],"cli":null},"imports":["The `spotinst-agent` package is primarily an executable agent/service, not typically imported directly as a Python library for programmatic interaction. Its functionality is exposed via deployment and configuration rather than a Python API."],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/spotinst/spotinst-spectrum-agent","docs":null,"changelog":null,"pypi":"https://pypi.org/project/spotinst-agent/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"# Install the agent\npip install spotinst-agent\n\n# The Spotinst agent is typically run as a service or within a container.\n# Its configuration is handled via YAML files (e.g., 'agent.yml') and worker configurations.\n# Direct Python code interaction for 'spotinst-agent' itself is uncommon.\n#\n# Example of how you might *start* the agent process (conceptual, actual command depends on deployment):\n# This usually involves running a command-line utility or daemonizing a script provided by the package.\n# For example, if it had a main entry point:\n# python -m spotinst_agent.main --config /path/to/agent.yml\n#\n# For interacting with Spotinst APIs programmatically, use the Spotinst SDK:\n# import os\n# from spotinst_sdk import SpotinstClient\n# \n# # Authenticate using environment variables (recommended for quickstart)\n# # export SPOTINST_TOKEN='YOUR_SPOTINST_API_TOKEN'\n# # export SPOTINST_ACCOUNT='YOUR_SPOTINST_ACCOUNT_ID'\n# \n# client = SpotinstClient(\n#     auth_token=os.environ.get('SPOTINST_TOKEN', 'YOUR_SPOTINST_API_TOKEN'),\n#     account_id=os.environ.get('SPOTINST_ACCOUNT', 'YOUR_SPOTINST_ACCOUNT_ID')\n# )\n# # Example: fetch all Elastigroups (this requires spotinst-sdk, not spotinst-agent)\n# # elastigroups = client.get_all_elastigroups()\n# # print(elastigroups)","lang":"python","description":"The `spotinst-agent` is primarily installed and deployed as a service, with its behavior configured through YAML files rather than direct Python API calls. The quickstart focuses on installation and a conceptual understanding of its operation. For programmatic interaction with Spotinst services, users should refer to the `spotinst-sdk` or `spotinst-sdk2` libraries.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":{"tag":null,"tag_description":null,"last_tested":"2026-05-15","installed_version":"1.1.260","pypi_latest":"1.1.260","is_stale":false,"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":3.3,"avg_import_s":null,"wheel_type":"sdist"},"results":[{"runtime":"python:3.10-alpine","python_version":"3.10","os_libc":"alpine (musl)","variant":"spotinst-agent","exit_code":0,"wheel_type":"sdist","failure_reason":null,"import_side_effects":"broken","install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":"24.8M"},{"runtime":"python:3.10-slim","python_version":"3.10","os_libc":"slim (glibc)","variant":"spotinst-agent","exit_code":0,"wheel_type":"sdist","failure_reason":null,"import_side_effects":"broken","install_time_s":3,"import_time_s":null,"mem_mb":null,"disk_size":"26M"},{"runtime":"python:3.11-alpine","python_version":"3.11","os_libc":"alpine (musl)","variant":"spotinst-agent","exit_code":0,"wheel_type":"sdist","failure_reason":null,"import_side_effects":"broken","install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":"27.7M"},{"runtime":"python:3.11-slim","python_version":"3.11","os_libc":"slim (glibc)","variant":"spotinst-agent","exit_code":0,"wheel_type":"sdist","failure_reason":null,"import_side_effects":"broken","install_time_s":2.8,"import_time_s":null,"mem_mb":null,"disk_size":"29M"},{"runtime":"python:3.12-alpine","python_version":"3.12","os_libc":"alpine (musl)","variant":"spotinst-agent","exit_code":0,"wheel_type":"sdist","failure_reason":null,"import_side_effects":"broken","install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":"17.6M"},{"runtime":"python:3.12-slim","python_version":"3.12","os_libc":"slim (glibc)","variant":"spotinst-agent","exit_code":0,"wheel_type":"sdist","failure_reason":null,"import_side_effects":"broken","install_time_s":3.7,"import_time_s":null,"mem_mb":null,"disk_size":"19M"},{"runtime":"python:3.13-alpine","python_version":"3.13","os_libc":"alpine (musl)","variant":"spotinst-agent","exit_code":0,"wheel_type":"sdist","failure_reason":null,"import_side_effects":"broken","install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":"17.3M"},{"runtime":"python:3.13-slim","python_version":"3.13","os_libc":"slim (glibc)","variant":"spotinst-agent","exit_code":0,"wheel_type":"sdist","failure_reason":null,"import_side_effects":"broken","install_time_s":3.4,"import_time_s":null,"mem_mb":null,"disk_size":"19M"},{"runtime":"python:3.9-alpine","python_version":"3.9","os_libc":"alpine (musl)","variant":"spotinst-agent","exit_code":0,"wheel_type":"sdist","failure_reason":null,"import_side_effects":"broken","install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":"24.2M"},{"runtime":"python:3.9-slim","python_version":"3.9","os_libc":"slim (glibc)","variant":"spotinst-agent","exit_code":0,"wheel_type":"sdist","failure_reason":null,"import_side_effects":"broken","install_time_s":3.4,"import_time_s":null,"mem_mb":null,"disk_size":"25M"}]}}