initial implementation of the S3Storage
This implementation provides an S3Storage that can be used to store entities attributes in an Amazon S3 storage. It comes with an STKEY rql function to be able to retrieve the S3 object key for the entity attribute (similar to BFSS's FSPATH rql function). S3 connection configurations are attached to the S3Storage instance, like: s3_storage = S3Storage(s3_bucket) storages.set_attribute_storage(repo, 'File', 'data', s3_storage)
Showing
- cubicweb_s3storage/__pkginfo__.py 5 additions, 1 deletioncubicweb_s3storage/__pkginfo__.py
- cubicweb_s3storage/site_cubicweb.py 30 additions, 0 deletionscubicweb_s3storage/site_cubicweb.py
- cubicweb_s3storage/storages.py 101 additions, 0 deletionscubicweb_s3storage/storages.py
- test/data/bootstrap_cubes 1 addition, 1 deletiontest/data/bootstrap_cubes
- test/test_s3storage.py 84 additions, 35 deletionstest/test_s3storage.py
- tox.ini 3 additions, 2 deletionstox.ini
cubicweb_s3storage/site_cubicweb.py
0 → 100644
cubicweb_s3storage/storages.py
0 → 100644
Please register or sign in to comment