Skip to main content

There are 2 tools currently provided:

  • command line util allowing to quickly build and run the bitshares client

  • web app allowing to monitor a running instance of the client and send an email or push notification on failure

If you like these tools, please vote for my delegate to support further development, and feel free to visit my page for other delegate proposals at digitalgaia.io. Thanks!

Command-line client

just run the bts script with the command you want to execute:

$ bts -h
usage: bts [-h] [-r]
           {clean_homedir,clean,build,build_gui,run,run_gui,list,monitor}
           [environment] [hash]

following commands are available:
  - clean_homedir    : clean home directory. WARNING: this will delete your wallet!
  - clean            : clean build directory
  - build            : update and build bts client
  - build_gui        : update and build bts gui client
  - run              : run latest compiled bts client, or the one with the given hash or tag
  - run_gui          : run latest compiled bts gui client
  - list             : list installed bitshares client binaries
  - monitor          : run the monitoring web app

Example:
  $ bts build      # build the latest bts client by default
  $ bts run
  $ bts run debug  # run the client inside gdb

  $ bts build pts v2.0.1  # build a specific version
  $ bts run seed-test     # run environments are defined in the config.yaml file

  $ bts build_gui
  $ bts run_gui


positional arguments:
  {clean_homedir,clean,build,build_gui,run,run_gui,list}
                        the command to run
  environment           the build/run environment (bts, pts, ...)
  hash                  the hash or tag of the desired commit

optional arguments:
  -h, --help            show this help message and exit
  -r, --norpc           run binary with RPC server deactivated

You should also look into ~/.bts_tools/config.yaml to tune it to your liking.

Monitoring web app

To run the debug/development monitoring web app, just do the following:

$ bts monitor

and it will launch on localhost:5000.

For production deployments, it is recommended to put it behind a WSGI server, in which case the entry point is bts_tools.wsgi:application.

Do not forget to edit the ~/.bts_tools/config.yaml file to configure it to suit your needs.

Screenshots

Monitoring the status of your running bts client binary

Status screenshot

You can host multiple delegates accounts in the same wallet, and check feed info

Info screenshot
Monitoring multiple instances (ie: running on different hosts) at the same time,

to have an overview while running backup nodes and re-compiling your main node.

Info screenshot

Things to know (best practices and “issues”) READ IT !!!

  • to properly build the bitshares client in MacOSX:

    • you can (and should) build the binary with only homebrew libraries (boost, etc.). Previous versions had trouble compiling and could require you to hand-compile some dependencies, but newer homebrew libs should compile properly

    • readline needs to be installed by brew and you need to run brew link --force readline to take precedence over the outdated version of the system

  • when running the web client in uWSGI, make sure to:

    • set enable-threads = true, otherwise you won’t get the monitoring thread properly launched

    • set lazy-apps = true, otherwise the stats object will not get properly shared between the master process and the workers, and you won’t get any monitoring data

    • set workers = 1, otherwise you will get multiple instances of the worker thread active at the same time

Release files for bts_tools 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bts_tools 0.1.4
File Size Uploaded
bts_tools-0.1.4.tar.gz 345.1 kB Details

Release files / bts_tools-0.1.4.tar.gz

Download URL bts_tools-0.1.4.tar.gz
Size 345.1 kB
Tags Source
SHA-256 checksum
How to use checksums
86f7a2cda94a658f314737cb5fee290bc00c7adb20d5f00742c9bf288861c5c6
BLAKE2b-256 checksum
How to use checksums
b7d02316e9f8584ee5a759dc881937ce1be7fd31fdb3cab68a7f8d7b8df2f384
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.5.3

1 release file

0.5.2

1 release file

0.5.1

1 release file

0.5.0

1 release file

0.4.14

1 release file

0.4.13

1 release file

0.4.12

1 release file

0.4.11

1 release file

0.4.10

1 release file

0.4.9

1 release file

0.4.8

1 release file

0.4.7

1 release file

0.4.6

1 release file

0.4.5

1 release file

0.4.4

1 release file

0.4.3

1 release file

0.4.2

0.4

1 release file

0.3.4

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3

1 release file

0.2.11

1 release file

0.2.10

1 release file

0.2.9

1 release file

0.2.8

1 release file

0.2.7

1 release file

0.2.6

1 release file

0.2.5

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2

1 release file

0.1.10

1 release file

0.1.9

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

This release

0.1.4 This release

1 release file

0.1.3

1 release file

0.1.2

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page