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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for UpStorageApiClient-0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3afbd5522c14a5cd97f882c90a73757fa11ec1f32baa081ea5cd5baebdbcfafc |
|
MD5 | fde696ebd3cb010c0fda14ef63a36129 |
|
BLAKE2b-256 | 9e1aeb4eebe2a21210dec0d9934f7861ecbbb9b787fa5eea4e67f9dccf1c6bd4 |