Git Product home page Git Product logo

metadiskpy's Introduction

This is a full python library for Metadisk API as stated in: https://github.com/Storj/web-core#api-documentation

To install all the requirements:

pip install -r requirements.txt

Sample usage:

from metadisk import *

Later you may need to change/setup metadisk_url in the metadisk.py file. Also you obviously don't have to "print" but it will be useful in the begining to see how the library works.

print download("bc2371a5592df676f0221bb940790cc389470e12c040e7fa79e1fedd4028f0e1?key=293902e516bce87b276d9f416d27059c6e9ce630ab15c38767ca63f5e2563cb9&token=XeWAT4uiQcBMqt2m")
print upload("test.txt")
print find("bc2371a5592df676f0221bb940790cc389470e12c040e7fa79e1fedd4028f0e1?key=293902e516bce87b276d9f416d27059c6e9ce630ab15c38767ca63f5e2563cb9&token=XeWAT4uiQcBMqt2m")
print status()
print new_token()
print get_prices()
print get_balance(new_token()['token'])
print redeem_code(new_token()['token'],"432234")

@ Kuba Kucharski, 2015, twitter.com/83tb

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.