tlc.core.objects.tables.system_tables.indexing_tables.config_indexing_table
#
A specialized indexing table for Config files objects fetched from URLs.
Module Contents#
Classes#
Class |
Description |
---|---|
A specialized indexing table for Config files fetched from URLs. |
API#
- class tlc.core.objects.tables.system_tables.indexing_tables.config_indexing_table.ConfigIndexingTable(url: tlc.core.url.Url | None = None, scan_urls: list[tlc.core.objects.tables.system_tables.indexing._ScanUrl] | None = None, init_parameters: Any = None)#
Bases:
tlc.core.objects.tables.system_tables.indexing_table.IndexingTable
A specialized indexing table for Config files fetched from URLs.
This table is designed to manage Config file objects. Each row in this table corresponds to a config file object that is fetched from a URL. It extends from the generic
IndexingTable
to provide functionalities specifically optimized for handling external config files embedded with data.- Example:
table = ConfigIndexingTable.instance() table.wait_for_next_index() for row in table.table_rows: print(row)
- Closing Comments:
Singleton Pattern: This class implements the Singleton pattern. Always use
ConfigIndexingTable.instance()
to get the singleton instance.
Initialize a ConfigIndexingTable object.
- Parameters:
url – The URL from which this table can be read.
scan_urls – A list of URLs to scan for config files.
init_parameters – Any initialization parameters.
- Raises:
ValueError – If some conditions, such as invalid URLs, are not met.
- config_indexing_table_instance: tlc.core.objects.tables.system_tables.indexing_tables.config_indexing_table.ConfigIndexingTable | None = None#
- static instance() tlc.core.objects.tables.system_tables.indexing_tables.config_indexing_table.ConfigIndexingTable #
Returns the singleton ConfigIndexingTable object
- should_consider_object(obj: tlc.core.object.Object) bool #
Only consider Config objects