Storage Options

TitanQ SDK currently support two types of storage. More information at TitanQ PyPI page

Managed storage

To use the managed storage, create a Model without providing any storage option.

S3 Storage

Storage client using S3 bucket from AWS

titanq.S3Storage.__init__(self, access_key: str, secret_key: str, bucket_name: str) None

Initiate the S3 bucket client for handling temporary files.

Parameters

access_key

Used to upload and download files from an AWS S3 bucket.

secret_key

Used to upload and download files from an AWS S3 bucket.

bucket_name

Name of the AWS S3 bucket used to store temporarily data that the TitanQ optimizer will read.

Raises

botocore.exceptions.ParamValidationError

If any AWS argument is missing this will raise an exception.

Examples

>>> storage_client = S3Storage(
>>>     access_key="{insert aws bucket access key here}",
>>>     secret_key="{insert aws bucket secret key here}",
>>>     bucket_name="{insert bucket name here}"
>>> )