Skip to main content

UpStorage Api Client.

Project description

UpStorageClientApi

UpStorage Service Api.

  • Uploading Files
  • Validating Cerdentails
  • Listing Files

Installation

  1. Get a free API Key at https://example.com

  2. Install Library Using pip

    python3 pip install UpStorageApiClient
    
  3. Or Download Files With Git

    git clone https://github.com/user/repo
    
  4. Import Class

    from UpStorageApiClient.api import UpStorageBucket
    
  5. Authenticate with the api

    bucket = UpStorageBucket(auth_token, api_key)
    
  6. 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

  7. Get All File From Bucket

    bucket.get_all_files()
    
    Output: {'url': 'https://example/file.png/', 'is_private': 'True', ...}
    

Project details


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)

Uploaded Source

Built Distribution

UpStorageApiClient-0.6-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page