d3tales_api package

Subpackages

Submodules

d3tales_api.database_info module

d3tales_api.database_info.db_info_generator(db_file=None)[source]

Get information about database connections. This function requires either a db_file argument or a DB_INFO_FILE environment variable. This argument or environment variable should be a path to a JSON file containing connection information for the databases. The keys should be the database names such as frontend, backend, expflow, and fireworks.

Parameters

db_file – str, path to database info JSON file

Returns

JSON object containing information about database connections

d3tales_api.database_info.source_groups_generator(group_file=None)[source]

Get information about database connections. This function requires either a group_file argument or a GROUP_FILE environment variable. This argument or environment variable should be a path to a JSON file containing source group information. The keys should be source group names and the values should be strings with two digit numbers, e.g., {“Risko”: “06”}.

Parameters

group_file – str, path to database info JSON file

Returns

JSON object containing information about source group codes

Module contents

d3tales_api.

API designed for the D3TaLES project. Includes data processing, database access functions, and property calculators. Pip install may require –use-deprecated=legacy-resolver