aim.services module

class aim.services.Services(logger: BoundLogger, mysql_database: URL, test_database: str, ci_on: str | None, alma_api_key: str, alma_api_url: str, digifeeds_api_url: str, digifeeds_set_id: str, digifeeds_s3_access_key: str, digifeeds_s3_secret_access_key: str, digifeeds_s3_bucket: str, digifeeds_s3_input_path: str, zephir_bib_api_url: str, digifeeds_s3_processed_path: str, digifeeds_s3_rclone_remote: str, digifeeds_gdrive_rclone_remote: str)[source]

Bases: object

Global Configuration Services

alma_api_key: str

The Alma API Key

alma_api_url: str

The Alma API url

ci_on: str | None

Is this being run in Github Actions?

digifeeds_api_url: str

The digifeeds database API URL

digifeeds_gdrive_rclone_remote: str

The name of the google drive rclone remote where google picks up items

digifeeds_s3_access_key: str

The S3 bucket access key for digifeeds

digifeeds_s3_bucket: str

The S3 bucket name for the digifeeds process

digifeeds_s3_input_path: str

The url in the s3 bucket for the digifeeds process

digifeeds_s3_processed_path: str

The url in the s3 bucket for processed barcodes

digifeeds_s3_rclone_remote: str

The name of the rclone remote/bucket alias for the s3 input bucket

digifeeds_s3_secret_access_key: str

The S3 bucket secret access key for digifeeds

digifeeds_set_id: str

The Alma Set Id for the digifeeds set

logger: BoundLogger

The structured logger

mysql_database: URL

The Digifeeds MySQL database

test_database: str

A sqlite in memory digifeeds database for testing

zephir_bib_api_url: str

The zephir item bib api