Skip to main content

ComChain API client library

Project description

pyc3l-cli

Latest Pypi Version

This project offer a command line interface for interacting with ComChain from the shell.

Maturity

This code is in alpha stage. It wasn't tested on Windows. This is more a draft for an ongoing reflection.

Features

using pyc3l-cli, through the pyc3l command line tool, you can:

  • monitor block rates with pyc3l block_rate
  • check account information with pyc3l account_info (last transactions, type, status, balance, delegations...)
  • check a specific transaction pyc3l check_transaction
  • issue pledge, transfer, delegate, and transfer on behalf commands
  • ... many examples and other specific commands are provided ...

Requirement

This code is for python3. Some subcommands are using tkinter for interactive usage (you can always avoid using tkinter by providing necessary arguments on command line).

You can check if tkinter is installed by running python3 and typing:

>>> import tkinter
>>> tkinter._test()

Installation

You don't need to download the git version of the code as pyc3l-cli is available on the PyPI. So you should be able to run:

pip install pyc3l-cli

If you have downloaded the GIT sources, then you could add install the current version via traditional::

python setup.py install

And if you don't have the GIT sources but would like to get the latest master or branch from github, you could also::

pip install git+https://github.com/com-chain/pyc3l-cli

Or even select a specific revision (branch/tag/commit)::

pip install git+https://github.com/com-chain/pyc3l-cli@master

Usage

Logging

PYC3L_CLI_DEBUG=1 pyc3l [COMMAND] ...

or

pyc3l -d [COMMAND] ...

or

pyc3l --log-handler pyc3l:DEBUG [COMMAND] ...

All debugging on:

pyc3l --log-handler :DEBUG [COMMAND] ...

Contributing

Any suggestions or issues are welcome. Push requests are very welcome, please check out the guidelines.

Push Request Guidelines

You can send any code. I'll look at it and will integrate it myself in the code base and leave you as the author. This process can take time and it'll take less time if you follow the following guidelines:

  • check your code with PEP8 or pylint. Try to stick to 80 columns wide.
  • separate your commits per smallest concern.
  • each commit should pass the tests (to allow easy bisect)
  • each functionality/bugfix commit should contain the code, tests, and doc.
  • prior minor commit with typographic or code cosmetic changes are very welcome. These should be tagged in their commit summary with !minor.
  • the commit message should follow gitchangelog rules (check the git log to get examples)
  • if the commit fixes an issue or finished the implementation of a feature, please mention it in the summary.

If you have some questions about guidelines which is not answered here, please check the current git log, you might find previous commit that shows you how to deal with your issue.

License

Licensed under the GNU Affero General Public License

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

pyc3l_cli-0.6.0.tar.gz (33.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyc3l_cli-0.6.0-py3-none-any.whl (42.8 kB view details)

Uploaded Python 3

File details

Details for the file pyc3l_cli-0.6.0.tar.gz.

File metadata

  • Download URL: pyc3l_cli-0.6.0.tar.gz
  • Upload date:
  • Size: 33.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for pyc3l_cli-0.6.0.tar.gz
Algorithm Hash digest
SHA256 7f19edc51cba9d3a15f9fe0120a1786acfbd830c788dec88c814f6cfecaae3ab
MD5 5542c2e1b223820de2658a1a0cf33de4
BLAKE2b-256 a390e6175d488898c8b21a177077f5711a34c153eeeff1a2cce9c016fde6ff08

See more details on using hashes here.

File details

Details for the file pyc3l_cli-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: pyc3l_cli-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 42.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for pyc3l_cli-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8f6b831a112e4364b857a718301fc73fdbeb06854f4117f36cfd26b7b1112fa6
MD5 8c3f956b5a19d34fca3a0e1ff9792e34
BLAKE2b-256 4fa364fb18ffd2253fbcc9f6663618dbbcbd182289e3f05e947ae620cfa4aeb2

See more details on using hashes here.

Supported by

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