{"library":"spotinst-agent-2","title":"Spotinst Agent 2","type":"library","description":"Spectrum instance spotinst-agent that runs remote scripts, collects data, deploys applications, and more. Version 2.0.11, Python 3 only. Maintained by Spotinst.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install spotinst-agent-2"],"cli":null},"imports":["from spotinst_agent_2.agent import SpotinstAgent","from spotinst_agent_2.scripts import run_script"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":"https://spot.io/","github":"https://github.com/spotinst/spotinst-spectrum-agent","docs":null,"changelog":null,"pypi":"https://pypi.org/project/spotinst-agent-2/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"from spotinst_agent_2.agent import SpotinstAgent\n\nagent = SpotinstAgent(token=os.environ.get('SPOTINST_TOKEN', ''))\nresult = agent.run_script('echo Hello from Agent')\nprint(result)","lang":"python","description":"Initialize the agent with a Spotinst token and run a script.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}