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.8.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for UpStorageApiClient-0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51dc92c3b7d3c51e0dc57870b68bbc6d0b477d6f9c26ffd87c174931bb19826d |
|
MD5 | 445da3abd60bcfef1ea7a297caab3473 |
|
BLAKE2b-256 | f2bededb1bec25c9503c48e2f724be1fe227996742092e85ad3f6427f2a62cfd |