Coder Social home page Coder Social logo

upstorageapiclient's Introduction

UpStorageClientApi

UpStorage Service Api.

  • Uploading Files
  • Deleting 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='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

  7. Get All File From Bucket

    bucket.get_all_files()
    
    Output: {'url': 'https://example/file.png/', 'is_private': 'True', ...}
  8. 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')

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.