A library to store the documents to the local file system and AWS S3
Project description
SimpleDocumentStore is used to store the documents on the local file system or AWS S3. This can be easily configured by sending the storage mode during the creation of the storage mode. Default storage mode is 'local'. For S3, send 'aws' as storage mode. It is written in python3.6
Installation: pip3 install SimpleDocumentStore
Usage: import SimpleDocumentStore
AWS: storage_mode = SimpleDocumentStore.create_storage_mode(local_path, 'aws', aws_access_key, aws_secret_key ) send the bucket name for S3.
Local: storage_mode = SimpleDocumentStore.create_storage_mode(local_path)
Operations: storage_mode.save_document(self, file_name, content, bucket_name) storage_mode.open_document(self, file_name, mode, bucket_name) storage_mode.get_size(self, file_name, bucket_name) storage_mode.get_creation_time(self, file_name, bucket_name) storage_mode.get_updated_time(self, file_name, bucket_name) storage_mode.rename_document(self, old_file_name, new_file_name, bucket_name) storage_mode.delete_document(self, file_name, bucket_name)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file SimpleDocumentStore-0.1.tar.gz
.
File metadata
- Download URL: SimpleDocumentStore-0.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e48bdc28e30a83fefaff0c6a63f7f423d974d55bffc331df121e0f2b43f10100 |
|
MD5 | 7119d4b07ab77e1d312a91077b6ae8a1 |
|
BLAKE2b-256 | 345718210ab843f3a19a8225cf94400291de0c258e95f066207957f5e55f3185 |
File details
Details for the file SimpleDocumentStore-0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: SimpleDocumentStore-0.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e46a6c0716ae24a582d1d8a2df34d94fa7f15f30a60ab70de104110b927397a6 |
|
MD5 | 64d2044f424483eb0e496e058578b668 |
|
BLAKE2b-256 | 704da141d7c6df9965c4a7901fd97fd788cdc7c1d63c2a7aa6f0fe34d2f5559b |