{"id":28245,"library":"spotlite","title":"Spotlite","description":"Spotlite is a Python client library for interacting with Satellogic APIs, simplifying authentication, data catalog queries, and order management. Version 0.10.0 requires Python >= 3.11.5 and is under active development.","status":"active","version":"0.10.0","language":"python","source_language":"en","source_url":"https://github.com/mcarmich146/spotlite","tags":["satellogic","satellite","api-client","geospatial"],"install":[{"cmd":"pip install spotlite","lang":"bash","label":"Install via pip"}],"dependencies":[],"imports":[{"note":"Direct import of module does not directly expose SatellogicClient; must import explicitly.","wrong":"import spotlite","symbol":"SatellogicClient","correct":"from spotlite import SatellogicClient"},{"note":"AuthError is in the exceptions submodule, not top-level.","wrong":"from spotlite import AuthError","symbol":"AuthError","correct":"from spotlite.exceptions import AuthError"}],"quickstart":{"code":"from spotlite import SatellogicClient\nimport os\n\nclient = SatellogicClient(\n    username=os.environ.get('SATLOGIC_USER', ''),\n    password=os.environ.get('SATLOGIC_PASS', '')\n)\ncatalog = client.catalog()\nprint(catalog)","lang":"python","description":"Authenticate with Satellogic credentials and fetch the catalog."},"warnings":[{"fix":"Update order creation to use the new payload structure as documented in the official docs.","message":"In version 0.10.0, the 'orders' endpoint was restructured; order creation now requires explicit payload fields. Old code that passed dictionaries directly will break.","severity":"breaking","affected_versions":">=0.10.0"},{"fix":"Replace `client.get_asset(id)` with `client.get_asset_details(id)`.","message":"The `get_asset` method is deprecated in favor of `get_asset_details`. Using the old method will produce a warning.","severity":"deprecated","affected_versions":">=0.9.0"},{"fix":"Wrap long-running sessions in a try-except for AuthError and re-login if needed.","message":"Authentication tokens expire after 24 hours. The client does not auto-refresh; you must re-authenticate.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Verify SATLOGIC_USER and SATLOGIC_PASS are valid and set in environment.","cause":"Username or password are incorrect or environment variables not set correctly.","error":"spotlite.exceptions.AuthError: Invalid credentials"},{"fix":"Use get_asset_details instead.","cause":"Using deprecated method get_asset which was removed in newer versions.","error":"AttributeError: 'SatellogicClient' object has no attribute 'get_asset'"},{"fix":"Convert datetime to ISO format string before passing to API calls.","cause":"Passing a datetime object directly as a parameter without conversion.","error":"TypeError: Object of type datetime is not JSON serializable"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}