A small example package
Project description
# EOSJS PYTHON
eosjs python is a eosjs wrapper to communicate with the eos blockchain in python. It works by wrapping the nodejs library eosjs into a Python package.
## Authors
@raphaelgodro
## License
This project is licensed under the MIT License.
## Installation
First, install nodejs if its not on your system already:
```
apt-get update
apt-get -y install curl
curl -sL https://deb.nodesource.com/setup_10.x | bash
apt-get -y install nodejs
```
You also need eosjs as a dependency with npm :
```
npm install --save eosjs
```
Then install from Pypi packages:
```
pip3 install eosjs_python
```
Or from source`(if you want to contribute) :
```
python3 setup.py develop
```
## Examples using the library
### Generate ECC keys
```
from eosjs_python import Eos
key_pair = Eos.generate_key_pair()
print(key_pair)
```
### Create EOS account
```
from eosjs_python import Eos
eos = Eos({
'http_address': 'http://172.18.0.1:8888',
'key_provider': '5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3'
})
eos.newaccount({
'creator': 'eosio',
'name': 'mytestacc13',
'owner_public_key': 'EOS7vTHtMbZ1g9P8BiyAGD7Ni7H6UALVLVCW13xZrXT4heCBke3it',
'active_public_key': 'EOS8KKKYBBdwrmXRRynDXSxTX2qoT9TA4agahXXF4ccUgRCy81RNc',
'buyrambytes_bytes': 8192,
'delegatebw_stake_net_quantity': '100.0000 SYS',
'delegatebw_stake_cpu_quantity': '100.0000 SYS',
'delegatebw_transfer': 0
})
```
## Contributing
Some work still has to be done to interface with all eosjs possibilities, feel free to send some pull requests!
eosjs python is a eosjs wrapper to communicate with the eos blockchain in python. It works by wrapping the nodejs library eosjs into a Python package.
## Authors
@raphaelgodro
## License
This project is licensed under the MIT License.
## Installation
First, install nodejs if its not on your system already:
```
apt-get update
apt-get -y install curl
curl -sL https://deb.nodesource.com/setup_10.x | bash
apt-get -y install nodejs
```
You also need eosjs as a dependency with npm :
```
npm install --save eosjs
```
Then install from Pypi packages:
```
pip3 install eosjs_python
```
Or from source`(if you want to contribute) :
```
python3 setup.py develop
```
## Examples using the library
### Generate ECC keys
```
from eosjs_python import Eos
key_pair = Eos.generate_key_pair()
print(key_pair)
```
### Create EOS account
```
from eosjs_python import Eos
eos = Eos({
'http_address': 'http://172.18.0.1:8888',
'key_provider': '5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3'
})
eos.newaccount({
'creator': 'eosio',
'name': 'mytestacc13',
'owner_public_key': 'EOS7vTHtMbZ1g9P8BiyAGD7Ni7H6UALVLVCW13xZrXT4heCBke3it',
'active_public_key': 'EOS8KKKYBBdwrmXRRynDXSxTX2qoT9TA4agahXXF4ccUgRCy81RNc',
'buyrambytes_bytes': 8192,
'delegatebw_stake_net_quantity': '100.0000 SYS',
'delegatebw_stake_cpu_quantity': '100.0000 SYS',
'delegatebw_transfer': 0
})
```
## Contributing
Some work still has to be done to interface with all eosjs possibilities, feel free to send some pull requests!
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 Distribution
eosjs_python-0.0.1.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for eosjs_python-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49ff6481b6e8a143509b56395287e230646e2165323a25313fa6239cb81c27aa |
|
MD5 | c95e350c9f012737484655910b12789a |
|
BLAKE2b-256 | 0764cc51cbaa0bbae98b365bbc8f1082ffdcbc7c2c0bef4732608f809d4cd2f9 |