Skip to main content

A userful package to use 'FISCO-BCOS', the FISCO-BCOS sdk

Project description

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!

  1. config so easy
  2. support autocompetation
  3. support arrow up or down for history command
  4. 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))

image

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bcoscli-0.0.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

bcoscli-0.0.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file bcoscli-0.0.1.tar.gz.

File metadata

  • Download URL: bcoscli-0.0.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for bcoscli-0.0.1.tar.gz
Algorithm Hash digest
SHA256 89fd9552d05c519cb87008fa95c83fc37a921259167bd6cc8dc04d55fa844036
MD5 b374e339514a8b92bcb159178f1ae082
BLAKE2b-256 fa275d364943efa3c10822c3cb06d3ae2b0ab63f73b24a214d0fd9a48b68829a

See more details on using hashes here.

File details

Details for the file bcoscli-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: bcoscli-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for bcoscli-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8ece542355e0f85422a35d349759163643b421a58372234e7a2915eee8172adf
MD5 f1ed1a36ee29bae1b16dfc0dbebe810a
BLAKE2b-256 7e14852a866ab08b5f53b7b124432fc7a6e56eb12233cae87f2138c259c01960

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page