UpStorage Api Client.
Project description
UpStorageClientApi
UpStorage Service Api.
Uploading 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_path='test.txt', is_private=True) Output: {'file': 'https://example/file.txt/'}
file_path: path of the file 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', ...}
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.7.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for UpStorageApiClient-0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8107586c421df5ded619f9287031a9691dc34e4a325d71b5ff62be8b8f029f44 |
|
MD5 | 93ab3d75f335a908a41131be59f2fba0 |
|
BLAKE2b-256 | 5913e344e34ce0023a6d2b182b65ea689a9bfaf783f3cffb1e0da04103f5688c |