Official Python library for accessing the Flow Production Tracking (formerly Shotgun) REST API. The current version is 3.10.0, supporting Python 3.9+. The library is actively maintained by Autodesk and follows a regular release cadence with incremental improvements.
pip install shotgun-api3No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connect to a Shotgun/Flow Production Tracking site and run a simple query. Set environment variables SHOTGUN_URL, SHOTGUN_SCRIPT_NAME, SHOTGUN_API_KEY.
Explicitly pass the 'limit' parameter to find() calls to ensure expected behavior.
Use schema_entity_class_read() or schema_field_read() instead.
Omit id from create data dictionary.
Set the 'retired_only' parameter in find() to include or exclude retired records.
Double-check your SHOTGUN_URL, SHOTGUN_SCRIPT_NAME, and SHOTGUN_API_KEY. Ensure the script has the necessary permissions in Flow Production Tracking.
Use exact entity type names (case-sensitive), e.g., 'Asset', 'Shot', 'Version'. Check valid types via sg.schema_entity_read()
Check field names with sg.schema_field_read('EntityType'). Use exact field names from the schema.