Registry / devops / spotinst-agent-2

spotinst-agent-2

JSON →
library2.0.11pypypiunverified

Spectrum instance spotinst-agent that runs remote scripts, collects data, deploys applications, and more. Version 2.0.11, Python 3 only. Maintained by Spotinst.

pip install spotinst-agent-2
INSTALL
IMPORT
SIG · SPOTINST-AGENT-2
S
spotinst-agent-2
devopspythonv2.0.11
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SpotinstAgent
from spotinst_agent.agent import SpotinstAgent
from spotinst_agent_2.agent import SpotinstAgent

Initialize the agent with a Spotinst token and run a script.

from spotinst_agent_2.agent import SpotinstAgent agent = SpotinstAgent(token=os.environ.get('SPOTINST_TOKEN', '')) result = agent.run_script('echo Hello from Agent') print(result)
Debug
Known issues
breakingPython 2 is not supported; only Python 3.x is compatible.
fix
Use Python 3.6+.
affects: >=2.0.0
deprecatedThe old import 'from spotinst_agent import ...' is deprecated. Use 'spotinst_agent_2' package.
fix
Change imports to spotinst_agent_2.
affects: 2.0.0+
gotchaThe token is required; if missing, scripts fail silently.
fix
Set SPOTINST_TOKEN environment variable or pass token parameter.
affects: all
gotchaScript execution is asynchronous; results may not be immediate.
fix
Use callback or polling if needed.
affects: all
Upgrade
Version history
2.0.11latest on PyPI · released Jun 23, 2024
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
16
Amazon
1
Resources
spotinst-agent-2 — pip install spotinst-agent-2 · libregistry