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-0.9.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for UpStorageApiClient-0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6e18d307bff5cbd2fddd755eabd29731867fe0df77f4d825f69c5727c87c99b |
|
MD5 | 8be296b148b5c264ad4a595b30fdcfa7 |
|
BLAKE2b-256 | fa9a40e0ee6d03c6cd3276018d646954b1183d30946a15536449fa66cb954973 |