bcoscli
*** more convenient then the official sdk ***
easy to use the FISCO-BCOS blockchain for a interactive terminal!
easy to use the FISCO-BCOS blockchain as sdk!
- config so easy
- support autocompetation
- support arrow up or down for history command
- colorful
Installing
Install and update using pip:
pip install -U bcoscli
A Simple Example
as terminal just:
# default rpc port is 8545
bcoscli 127.0.0.1:8545
as sdk:
class MyConfig:
HOST_RPC = 'http://192.168.0.107:9545' # your fisco-bcos node's rpc address
ECHO = 0 # close the terminal output
if __name__ == "__main__":
import bcoscli
# define your config
bcoscli.set_config(MyConfig)
print(bcoscli.getClientVersion())
print(bcoscli.getBlockNumber(11))
Release files for bcoscli 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bcoscli-0.0.1.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bcoscli-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.1 kB
Release files / bcoscli-0.0.1.tar.gz
| Download URL | bcoscli-0.0.1.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89fd9552d05c519cb87008fa95c83fc37a921259167bd6cc8dc04d55fa844036
|
|
BLAKE2b-256 checksum How to use checksums |
fa275d364943efa3c10822c3cb06d3ae2b0ab63f73b24a214d0fd9a48b68829a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1
|
Release files / bcoscli-0.0.1-py3-none-any.whl
| Download URL | bcoscli-0.0.1-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8ece542355e0f85422a35d349759163643b421a58372234e7a2915eee8172adf
|
|
BLAKE2b-256 checksum How to use checksums |
7e14852a866ab08b5f53b7b124432fc7a6e56eb12233cae87f2138c259c01960
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1
|