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.3.0.tar.gz (33.5 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.3.0-py3-none-any.whl (42.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyc3l_cli-0.3.0.tar.gz
Algorithm Hash digest
SHA256 11db35231cf70a2fd2650e35cb7b0ce3ebfc86a58912f16ec7833ebee86877d2
MD5 757770898621384ee43bba2c5513d0f9
BLAKE2b-256 1efd37cc24dd73644e9ad178bcfee0d3fa7d598b835167886cb0f41298cd4b6a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pyc3l_cli-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 285e283d4545e038c140e553205dd02b89329a75ff47cf2290fa69b829333b32
MD5 c53a2096fe30d99fc47ff9eb107f6f8e
BLAKE2b-256 4df6c4a55994652649a98e0857104e4cc119c94abad021a32b141781531a9c7a

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