airstorm.cache module¶
-
class
Cache(model)[source]¶ Bases:
dictA cache instance live on each model and is used by other classes to access the Airtable data. The cache object automatically get stuff it does not have available locally when requested
- Parameters
base_id (str) – The base_id for this cache.
api_key (str) – The api_key for this cache.
table_id (str) – The table_id for this cache.
indexed (bool, optional) – Will index the enitire table on initialization.
-
select(formula='')[source]¶ Select multiple records in Airtable matching the provided formula.
- Args: formula (str, optional): A airtable formula to filter the search. Lean
more about writing valid formulas at https://support.airtable.com/hc/en-us/articles/203255215-Formula-Field-Reference.
- Returns
dict – The data selected.