Get all Entities given a Page ID

Hi all,

I created a library, fpt-api first to get an Entity’s query fields, but since I also needed to get all Entities from a Page given its ID, applying the page filters, I also added this functionality.

It’s a simple method, fpt.yield_page_entities, that will fetch all the Entities from a Page. You can optionally add additional filters and overwrite the fields to fetch (by default, the Page’s fields).

I know it might come in handy when you are in the context of an AMI, or you simply want to fetch the data from a page and display/store it somewhere (web service, google sheets, etc).

If it’s useful to you, please go to the GitHub project page and star it!

Hope you like it!

3 Likes

Thanks @kevinsallee it’s indeed a great library. I’m using it and I gave it 10 stars :wink:

And for those that haven’t checked it out yet have a look at the features:

A thread-safe wrapper around Flow Production Tracking (formerly ShotGrid) that extends shotgun_api3 to support query field retrieval and parallel processing.

It also supports the retrieval of all Entities of a given Page, applying the Page filters.

Features

  • :magnifying_glass_tilted_left: Retrieves query fields (not supported in base shotgun_api3)
  • :page_facing_up: Retrieves all Entities of a given Page, applying the Page filters
  • :thread: Thread-safe operations (not supported in base shotgun_api3)
  • :high_voltage: Parallel processing for improved performance
  • :counterclockwise_arrows_button: Streaming results for processing large datasets
  • :electric_plug: Drop-in replacement for basic shotgun_api3 operations
  • • Supports dotted query fields, e.g. entity.Shot.sg_assets_count
2 Likes