UpStorageClientApi
UpStorage Service Api.
Uploading FilesDeleting FilesValidating CerdentailsListing Files
Installation
-
Get a free API Key at https://example.com
-
Install Library Using
pippython3 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
uploadbucket.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
FileFrom 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')
Metadata
Release files for UpStorageApiClient 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| UpStorageApiClient-1.0.1.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| UpStorageApiClient-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.9 kB
Release files / UpStorageApiClient-1.0.1.tar.gz
| Download URL | UpStorageApiClient-1.0.1.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0445f133d79cc7ba006e686960c3374d224bc4966461e0d9a1d1cd3e379154e1
|
|
BLAKE2b-256 checksum How to use checksums |
74445185239579c298cf9bf4b743613b0c418af39fbe974791a44042fb6866e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
|
Release files / UpStorageApiClient-1.0.1-py3-none-any.whl
| Download URL | UpStorageApiClient-1.0.1-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8102a99b407499353c4762c135e32f12c391010e6f8601c06d3c3e977978f651
|
|
BLAKE2b-256 checksum How to use checksums |
7d72a611f6c6de7d2f843ec71ee8b445732c1cefefe9d33d428683e6bd76a171
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
|