Skip to main content

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

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SimpleDocumentStore-0.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

SimpleDocumentStore-0.1-py2.py3-none-any.whl (5.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file SimpleDocumentStore-0.1.tar.gz.

File metadata

File hashes

Hashes for SimpleDocumentStore-0.1.tar.gz
Algorithm Hash digest
SHA256 e48bdc28e30a83fefaff0c6a63f7f423d974d55bffc331df121e0f2b43f10100
MD5 7119d4b07ab77e1d312a91077b6ae8a1
BLAKE2b-256 345718210ab843f3a19a8225cf94400291de0c258e95f066207957f5e55f3185

See more details on using hashes here.

File details

Details for the file SimpleDocumentStore-0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for SimpleDocumentStore-0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e46a6c0716ae24a582d1d8a2df34d94fa7f15f30a60ab70de104110b927397a6
MD5 64d2044f424483eb0e496e058578b668
BLAKE2b-256 704da141d7c6df9965c4a7901fd97fd788cdc7c1d63c2a7aa6f0fe34d2f5559b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page