Registry / aws / spotilyzer

spotilyzer

JSON →
library0.2.0pypypi✓ verified 84d ago

AWS Spot Fleet Analyzer that analyzes Spot Fleet requests and provides recommendations for improving cost efficiency and instance availability. Version 0.2.0, low activity.

pip install spotilyzer
INSTALL
IMPORT
SIG · SPOTILYZER
S
spotilyzer
awspythonv0.2.0
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.

spotilyzer
import spotilyzer
from spotilyzer import SpotFleetAnalyzer
The library does not expose a class with that exact name; the module top-level functions are used.

Initialize a boto3 EC2 client and analyze a Spot Fleet request by its ID.

import boto3 from spotilyzer import analyze_fleet session = boto3.Session() client = session.client('ec2') # Replace with your Spot Fleet request ID fleet_id = 'sfr-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' result = analyze_fleet(client, fleet_id) print(result)
spotilyzer --version
Debug
Known issues
gotchaThe analyze_fleet function expects a boto3 EC2 client, not a session or resource.
fix
Pass an EC2 client object: client = session.client('ec2')
affects: >=0.1.0
gotchaThe library is in early development (0.2.0) and may have limited error handling for invalid fleet IDs.
fix
Ensure the fleet ID exists and the caller has DescribeSpotFleetRequests permissions.
affects: >=0.1.0
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'spotilyzer'
spotilyzer not installed or wrong Python environment
fix
Run 'pip install spotilyzer' and ensure you're using the same Python environment.
AttributeError: module 'spotilyzer' has no attribute 'analyze_fleet'
Imported incorrectly or old version without the function
fix
Use 'from spotilyzer import analyze_fleet' after checking you have version 0.2.0.
Upgrade
Version history
0.2.0latest on PyPI · released Feb 14, 2021
Audit
Dependencies
boto3requiredAWS SDK for Python, required for API calls
Agent activity
34 hits · last 30 days
node
24
Resources
spotilyzer — pip install spotilyzer · libregistry