UpStorage Api Client.
Project description
UpStorageClientApi
UpStorage Service Api.
Uploading Files
Deleting Files
Validating Cerdentails
Listing Files
Installation
-
Get a free API Key at https://example.com
-
Install Library Using
pip
python3 pip install UpStorageApiClient
-
Or Download Files With Git
git clone https://github.com/user/repo
-
Import Class
from UpStorageApiClient.api import UpStorageBucket
-
Authenticate with the api
bucket = UpStorageBucket(auth_token, api_key)
-
Make A Request In This Case
upload
bucket.upload(file='test.txt', is_private=True) Output: {'file': 'https://example/file.txt/'}
file: path of the file or File Object you want to upload.
is_private: file types: [public, private] Default: False
-
Get All
File
From Bucketbucket.get_all_files() Output: {'url': 'https://example/file.png/', 'is_private': 'True', ...}
-
You can delete File too.But For That You Have to pass the file name.if foldername exists then also that too.This is specificly made for the backend Storage System
bucket.delete(file_name='myfile.txt')
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
UpStorageApiClient-1.0.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for UpStorageApiClient-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56c7bd8f8724fc5cf65ab31a65fe7d0a86280d61db20725062f9fab229cff12c |
|
MD5 | 7793da409dfea61bc03cb332056fb8fa |
|
BLAKE2b-256 | c393f20d5f8fdce022aaa4a16b5c3da2c20f7d81b32896d66eaea138093ceabd |