Giter Site home page Giter Site logo

mtlynch / dataserv-client Goto Github PK

View Code? Open in Web Editor NEW

This project forked from storjold/dataserv-client

0.0 2.0 0.0 11.21 MB

Client for storing and auditing data.

Home Page: http://storj.io

License: MIT License

Makefile 4.04% Batchfile 0.13% Python 95.83%

dataserv-client's Introduction

dataserv-client

BuildLink_ CoverageLink_ LicenseLink_ IssuesLink_

Setup

Windows

Download latest windows release from github.

Extarct the zip file to the folder where you wish to have it installed.

$ dataserv-client.exe version

The dataserv-client will automaticlly update when new releases are made.

Ubuntu Linux

Install client

$ sudo apt-get install python3-pip
$ sudo pip3 install dataserv-client
$ dataserv-client version

Update client

$ sudo pip3 install dataserv-client --upgrade
$ dataserv-client version

OSX

Install client

$ brew install python3
$ rehash 
$ pip3 install dataserv-client
$ dataserv-client version

Update client

$ pip3 install dataserv-client --upgrade
$ dataserv-client version

Command line interface usage

Argument ordering

$ dataserv-client.py <program arguments> COMMAND <command arguments>

Argument ordering example

$ dataserv-client.py --address=1Dnpy4qd5XSsiAgwX8EqYbR2DLV2kB1Kha --max_size=2147483648 build --cleanup

Show program help, optional arguments and commands

$ dataserv-client.py --help
usage: dataserv-client.py [-h] [--address ADDRESS] [--url URL]
                          [--max_size MAX_SIZE] [--store_path STORE_PATH]
                          [--debug]
                          <command> ...

Dataserv client command-line interface.

optional arguments:
  -h, --help            Show this help message and exit
  --address ADDRESS     Required bitcoin address.
  --url URL             Url of the farmer (default: http://104.236.104.117).
  --max_size MAX_SIZE   Maximum data size in bytes. (default: 1073741824).
  --store_path STORE_PATH
                        Storage path. (default: /home/storj/.storj/store).
  --debug               Show debug information.

commands:
  <command>
    version             Print version number.
    register            Register a bitcoin address with farmer.
    ping                Ping farmer with given address.
    poll                Continuously ping farmer with given address.
    build               Fill the farmer with data up to their max.

Show command help and optional arguments

$ dataserv-client.py <COMMAND> --help

version command

Show version number

$ dataserv-client.py version

register command

Register address with default farmer.

$ dataserv-client.py --address=<BITCOIN_ADDRESS> register

Register address with custom farmer.

$ dataserv-client.py --url=<CUSTOM_FARMER_URL> --address=<BITCOIN_ADDRESS> register

ping command

Ping address:

$ dataserv-client.py --address=<BITCOIN_ADDRESS> ping

poll command

Poll address:

$ dataserv-client.py --address=<BITCOIN_ADDRESS> poll

build command

Build

$ dataserv-client.py --address=<BITCOIN_ADDRESS> build

Build with custom max data size and store path

$ dataserv-client.py --store_path=<PATH_TO_FOLDER> --max_size=<MAX_DATA_SIZE_IN_BYTES> --address=<BITCOIN_ADDRESS> build

# optional max_size syntax
--max_size=1K  # 1024^1 bytes
--max_size=1KB # 1000^1 bytes
--max_size=1M  # 1024^2 bytes
--max_size=1MB # 1000^2 bytes
--max_size=1G  # 1024^3 bytes
--max_size=1GB # 1000^3 bytes
--max_size=1T  # 1024^4 bytes
--max_size=1TB # 1000^4 bytes
--max_size=1P  # 1024^5 bytes
--max_size=1PB # 1000^5 bytes

Build and cleanup files afterwards

$ dataserv-client.py --address=<BITCOIN_ADDRESS> build --cleanup

Build and force rebuild of any previously generated files.

$ dataserv-client.py --address=<BITCOIN_ADDRESS> build --rebuild

Build custom shard height

$ dataserv-client.py --address=<BITCOIN_ADDRESS> build --height=<NUMBER_OF_SHARDS>

dataserv-client's People

Contributors

f483 avatar super3 avatar mtlynch avatar lunokhod avatar lowks avatar nameone avatar sesam avatar

Watchers

 avatar  avatar

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.