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.6.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for UpStorageApiClient-0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36739b0e51400e94138bb56f17bed478c5e200fc79765d9d877ccb96aec451ca |
|
MD5 | 9f17cb0ca7796a7669e29048200f30fd |
|
BLAKE2b-256 | b8fecfc89449f5e2fbcb2db26a58e05a8bf0ece0a2cc60a1464b66e5fea527ce |