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)
Metadata
Release files for SimpleDocumentStore 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| SimpleDocumentStore-0.1.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| SimpleDocumentStore-0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 9.7 kB
Release files / SimpleDocumentStore-0.1.tar.gz
| Download URL | SimpleDocumentStore-0.1.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e48bdc28e30a83fefaff0c6a63f7f423d974d55bffc331df121e0f2b43f10100
|
|
BLAKE2b-256 checksum How to use checksums |
345718210ab843f3a19a8225cf94400291de0c258e95f066207957f5e55f3185
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / SimpleDocumentStore-0.1-py2.py3-none-any.whl
| Download URL | SimpleDocumentStore-0.1-py2.py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
e46a6c0716ae24a582d1d8a2df34d94fa7f15f30a60ab70de104110b927397a6
|
|
BLAKE2b-256 checksum How to use checksums |
704da141d7c6df9965c4a7901fd97fd788cdc7c1d63c2a7aa6f0fe34d2f5559b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |