created on 2018-05-16
- ulordapi
- ulordapi -v
- ulordapi daemon
- ulordapi UP
- ulordapi UP create
- ulordapi UP publish
- ulordapi UP transaction
- ulordapi UP paytouser
- ulordapi UP resourceslist
- ulordapi UP querybalance
- ulordapi UP checkisbought
- ulordapi UP queryuserpublished
- ulordapi UP queryuserbought
- ulordapi UP queryincomebillings
- ulordapi UP queryoutgobillings
- ulordapi UP querybillingsdetail
- ulordapi UP querybillings
- ulordapi UP querypublishnum
- ulordapi udfs
- ulordapi udfs upload
- ulordapi udfs download
- ulordapi udfs cat
- ulordapi DB
- ulordapi DB create
- ulordapi config
- ulordapi config show
- ulordapi config edit
usage: ulordapi [options|sub-command] [-h]
ulordapi ---- SDK for the Ulord APIs
optional arguments:
-h, --help show this help message and exit
-v, --version show program's version number and exit
ulordapi sub-command:
ulordapi sub-command,reading API documents
{daemon,UP,udfs,DB,config}
using basic config - E:\ulord\ulord-blog-demo\venv\lib
\site-
packages\ulordapi-0.0.1-py2.7.egg\ulordapi\config
daemon Daemon process,including web server and udfs daemon.
UP main functions
udfs transfer resources to the platform
DB Manage database
config Manage configuration
Use 'ulordapi <command> --help' to learn more about each command.
EXIT STATUS
The CLI will exit with one of the following values:
0 Successful execution.
1 Failed executions.
This will show the version of the ulordapi
ulordapi 0.0.1
Start a daemon for download, upload and webserver.It will start in the program when it was needed.
usage: ulordapi daemon [-h]
optional arguments:
-h, --help show this help message and exit
usage: ulordapi UP <actions> [<value>] [-h] ...
optional arguments:
-h, --help show this help message and exit
UP COMMANDS:
packing ulord-platform HTTP APIs and some transmission functions
just for the Senior programmer functions.
create create wallet
publish publish data to the ulord
transaction transaction on the ulord
paytouser activity send ulord to the user
resourceslist list all resources
querybalance query user's balance
checkisbought check the resource if bought
queryuserpublished
query user's published
queryuserbought query user's bought
queryincomebillings
query user's income billings
queryoutgobillings
query user's outgo billings
querybillingsdetail
query the detail of user's billings
querybillings query user's billings
querypublishnum query the num of user's published
Create wallet for the user.
usage: ulordapi UP <actions> [<value>] create [-h]
optional arguments:
-h, --help show this help message and exit
Publish data to the ulord-platform.
usage: ulordapi UP <actions> [<value>] publish [-h]
optional arguments:
-h, --help show this help message and exit
Make a transaction in the ulord accroding to the ulord-platform.
usage: ulordapi UP <actions> [<value>] transaction [-h]
optional arguments:
-h, --help show this help message and exit
Pay develop's amount to the user.This is a web activity.You can edit the config to change the amount.(Default amount=10)
usage: ulordapi UP <actions> [<value>] paytouser [-h]
optional arguments:
-h, --help show this help message and exit
List all the resources in the app from the ulord-platform.
usage: ulordapi UP <actions> [<value>] resourceslist [-h]
optional arguments:
-h, --help show this help message and exit
Query the user's balance.
usage: ulordapi UP <actions> [<value>] querybalance [-h]
optional arguments:
-h, --help show this help message and exit
Check the resource if bought or not.
usage: ulordapi UP <actions> [<value>] checkisbought [-h]
optional arguments:
-h, --help show this help message and exit
Query the resources list which the user has published.
usage: ulordapi UP <actions> [<value>] queryuserpublished [-h]
optional arguments:
-h, --help show this help message and exit
Query the resources list which the user has bought.
usage: ulordapi UP <actions> [<value>] queryuserbought [-h]
optional arguments:
-h, --help show this help message and exit
Query the user's income list.
usage: ulordapi UP <actions> [<value>] queryincomebillings [-h]
optional arguments:
-h, --help show this help message and exit
Query the user's outgo list.
usage: ulordapi UP <actions> [<value>] queryoutgobillings [-h]
optional arguments:
-h, --help show this help message and exit
Query the user billings detail list.
usage: ulordapi UP <actions> [<value>] querybillingsdetail [-h]
optional arguments:
-h, --help show this help message and exit
Query the user billings detail list.
usage: ulordapi UP <actions> [<value>] querybillings [-h]
optional arguments:
-h, --help show this help message and exit
Query the num of the user published resources.
usage: ulordapi UP <actions> [<value>] querypublishnum [-h]
optional arguments:
-h, --help show this help message and exit
usage: ulordapi udfs [upload <file>] | [download|cat <udfs-hash>] [-h] ...
optional arguments:
-h, --help show this help message and exit
UDFS COMMANDS:
udfs is a high speed transmitter base on the ulord-platform
upload resources,download/cat resources from the ulord-platform
upload upload resources to udfs
download download resources from udfs
cat look up resources from udfs
usage: ulordapi udfs [upload <file>] | [download|cat <udfs-hash>] upload [-h]
optional arguments:
-h, --help show this help message and exit
usage: ulordapi udfs [upload <file>] | [download|cat <udfs-hash>] download
[-h]
optional arguments:
-h, --help show this help message and exit
usage: ulordapi udfs [upload <file>] | [download|cat <udfs-hash>] cat [-h]
optional arguments:
-h, --help show this help message and exit
usage: ulordapi DB <actions> [-h] ...
optional arguments:
-h, --help show this help message and exit
DB COMMANDS:
create simple database and some simple APIs
Manage database
create create database
usage: ulordapi DB <actions> create [-h]
optional arguments:
-h, --help show this help message and exit
usage: ulordapi config <key> [<value>] [-h] ...
optional arguments:
-h, --help show this help message and exit
config commands:
Config Management.It controls configuration variables. The configuration
values are stored in a config file inside your ulord repository(E:\ulord
\ulord-blog-demo\venv\lib\site-
packages\ulordapi-0.0.1-py2.7.egg\ulordapi\config).
Get and set ulordapi config values.
show show config.Output config file contents.
edit edit config
usage: config show [-h] [[key] [[key] ...]]
positional arguments:
[key] show config.Output config file contents.
optional arguments:
-h, --help show this help message and exit
usage: config edit [-h] [[key] [[key] ...]]
positional arguments:
[key] edit config.Open the config file for editing.
optional arguments:
-h, --help show this help message and exit