Python library for ECHO blockchain
Project description
# Python Library for Echo
Python ECHO library can be used to construct, sign and broadcast transactions and to easily obtain data from the blockchain via public apis.
## Installation
### Install with pip3:
$ sudo apt-get install libffi-dev libssl-dev python-dev python3-dev python3-pip
$ pip3 install echopy-lib
### Manual installation:
$ git clone https://gitlab.pixelplex.by/645.echo/echopy-lib.git
$ cd echopy-lib
$ python3 setup.py install
or
$ pip3 install .
## Usage
```python
from echopy import Echo
url = 'ws://127.0.0.1:9000'
echo = Echo()
echo.connect(url)
accounts = echo.api.database.get_objects(['1.2.0'])
echo.disconnect()
```
To see `Api's` usage examples and information: look <b>[section](docs/Api.md)</b>.
To see `Transactions` usage examples and information: look <b>[section](docs/Transaction.md)</b>.
To run `unit tests`:
```python
python3 -m unittest discover
```
## Contributing
echopy-lib welcomes contributions from anyone and everyone. Please
see our [guidelines for contributing](CONTRIBUTING.md) and the [code of
conduct](CODE_OF_CONDUCT.md).
### License
A copy of the license is available in the repository's
[LICENSE](LICENSE.txt) file.
Python ECHO library can be used to construct, sign and broadcast transactions and to easily obtain data from the blockchain via public apis.
## Installation
### Install with pip3:
$ sudo apt-get install libffi-dev libssl-dev python-dev python3-dev python3-pip
$ pip3 install echopy-lib
### Manual installation:
$ git clone https://gitlab.pixelplex.by/645.echo/echopy-lib.git
$ cd echopy-lib
$ python3 setup.py install
or
$ pip3 install .
## Usage
```python
from echopy import Echo
url = 'ws://127.0.0.1:9000'
echo = Echo()
echo.connect(url)
accounts = echo.api.database.get_objects(['1.2.0'])
echo.disconnect()
```
To see `Api's` usage examples and information: look <b>[section](docs/Api.md)</b>.
To see `Transactions` usage examples and information: look <b>[section](docs/Transaction.md)</b>.
To run `unit tests`:
```python
python3 -m unittest discover
```
## Contributing
echopy-lib welcomes contributions from anyone and everyone. Please
see our [guidelines for contributing](CONTRIBUTING.md) and the [code of
conduct](CODE_OF_CONDUCT.md).
### License
A copy of the license is available in the repository's
[LICENSE](LICENSE.txt) file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
echopy_lib-0.1.2-py3-none-any.whl
(173.4 kB
view hashes)
Close
Hashes for echopy_lib-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2425f84481b707d496c73eff2627207fc0e17f5fd6bdc9b3fbf6d6e8f762dc82 |
|
MD5 | f9b97edc23b732c043b537c5adf0d13f |
|
BLAKE2b-256 | 925bb785ffebd2eb470aa50d105476ed10d6408ca19a0706743ebb4c30159537 |