Storing files on a database is a side-effect: the action of storing an object on a database is not deterministic, and the result of this action does not only depend on the input arguments (it can fail for many reasons, such as the quota being exceeded or a network error). So, this feature must be implemented as a driver. For this driver, new imports are needed, as can be seen in the following example:
from collections import namedtuplefrom io import BytesIOfrom rx import Observableimport boto3from boto3.session import Sessionfrom cyclotron import Component
The boto3 package contains the AWS SDK, and the Session object will be used to configure the connection with the S3 database. The BytesIO class is needed ...