aim.services module

class aim.services.Services(app_name: str, 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_pickup_rclone_remote: str, digifeeds_reports_rclone_remote: str, hathifiles_store_path: str, hathifiles_webhook_url: str)[source]

Bases: object

Global Configuration Services

alma_api_key: str

The Alma API Key

alma_api_url: str

The Alma API url

app_name: str

The application name

ci_on: str | None

Is this being run in Github Actions?

digifeeds_api_url: str

The digifeeds database API URL

digifeeds_pickup_rclone_remote: str

The name of the rclone remote for the place where google pickups up the digifeeds files

digifeeds_reports_rclone_remote: str

The name of the rclone remote where reports from digifeeds are sent

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

hathifiles_store_path: str

file path to store of the hathi_file_list update items

hathifiles_webhook_url: str

url to argo events webhook for triggering the update of the hathifiles database

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