OmniStore
An unified python client to communicate with various kinds of object-store providers.
How to use
Installation
pip install omnistore
Usage
from omnistore.objstore import StoreFactory
# Initialization
client = StoreFactory.new_client(
provider=<provider>, endpoint=<endpoint>, bucket=<bucket>
)
# Create a directory
client.create_dir(dir_name)
# Delete a directory with all its files
client.delete_dir(dir_name)
# Upload
client.upload(src, dest)
# Upload a directory with all its files
client.upload_dir(src_dir, dest_dir)
# Download
client.download(src, dest)
# Download a directory with all its files
client.download_dir(src_dir, dest_dir)
# Exists
client.exists(filename)
# Delete
client.delete(filename)
Supported Providers
Alibaba Cloud OSS
Usage:
client = StoreFactory.new_client(
provider="OSS", endpoint=<endpoint>, bucket=<bucket>
)
Required environment variables:
OSS_ACCESS_KEY_ID=
OSS_ACCESS_KEY_SECRET=
Development
Once you want to run the integration tests, you should have a .env file locally, similar to the .env.example.
Contributions
🚀 All kinds of contributions are welcomed ! Please follow Contributing. Thanks to all these contributors.
Release files for omnistore 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| omnistore-0.0.4.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| omnistore-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.8 kB
Release files / omnistore-0.0.4.tar.gz
| Download URL | omnistore-0.0.4.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a15ea36cce3b6f962a617dee45932e5bc596b2a4a9a6b3914b704749964681de
|
|
BLAKE2b-256 checksum How to use checksums |
71f47c4e46ea7c5d77767a97fabf958624626a37e56d1206b6bfc2a7f6a5c36c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.10.13 Darwin/23.4.0
|
Release files / omnistore-0.0.4-py3-none-any.whl
| Download URL | omnistore-0.0.4-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f0730ebe5f1bf9345f6c0611aef08399c1ff445fddd6ca7d5bb4ea66111f3f58
|
|
BLAKE2b-256 checksum How to use checksums |
9cfc20940b0ef6043b083706bed53cafa456a55bdef56288d5c25422a5a5276f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.10.13 Darwin/23.4.0
|