Skip to main content
[![Build Status](https://travis-ci.org/eosmoto/eosiopy.svg?branch=master)](https://travis-ci.org/eosmoto/eosiopy)
# About/关于

**EosioPy** is a python EOS tool,which is developed by EosMoto

**EosioPy**是一个python eos工具集合。

-------------------------------
## Donation/捐献
If this project help you reduce time to develop, you can give me a cup of coffee :)

如果这个项目帮助你减少开发时间,你可以给我一杯咖啡:)

- [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://paypal.me/gaojinfeng)
- [Donate via Wechat/微信](https://xcx.yibangbang99.com/media/weixin.jpg)
- [Donate via Alipay/支付宝](https://xcx.yibangbang99.com/media/zhifubao.jpg)
- Donate via Bitcoin: 1Kptw5HQYPrWVPe7Z9AAF9kHRgD4iGmwVy
- Donate via Bitcoin Cash: 1Kptw5HQYPrWVPe7Z9AAF9kHRgD4iGmwVy
- Donate via ETH: 0xd80f6cd8ed61c3b4db0c8709bf168bef9faeaed3
- Donate via EOS: flyingflying


### Installation/安装

EosioPy requires to run python3.6+.


```sh
$ pip install eosiopy
```
**Any questions pls join our official Telegram Group below/相关问题反馈,请加Telegram群组:**

 Telegram 群:https://t.me/joinchat/IAxvKRB5r4R5ovBdpIeYgQ

 Telegram GROUP:https://t.me/joinchat/IAxvKRB5r4R5ovBdpIeYgQ

### Simple to use/简单使用
你可以执行任何eosio支持的合约[eosio官方文档](https://eosio.github.io/eos/group__contractdev.html)

You can perform any contract supported by eosio[eosio Official documents](https://eosio.github.io/eos/group__contractdev.html)

```python
from eosiopy.eosioparams import EosioParams
from eosiopy.nodenetwork import NodeNetwork
from eosiopy.rawinputparams import RawinputParams
raw = RawinputParams("transfer", {
"from": "eosio.token",
"memo": "eosmoto",
"quantity": "20.0000 EOS",
"to": "eosio"
}, "eosio.token", "eosio.token@active")
eosiop_arams=EosioParams(raw.params_actions_list,"5K7vdq9bEpTGZMryrc4LwcxeHAwMcrFuwskVujujpAfBoJwAo82")
net=NodeNetwork.push_transaction(eosiop_arams.trx_json)
print(net)
```
### also can Chain calls/链式调用
```python
raw = RawinputParams("transfer", {
"from": "eosio.token",
"memo": "eosmoto",
"quantity": "20.0000 EOS",
"to": "eosio"
}, "eosio.token", "eosio.token@active").add("transfer", {
"from": "eosio.token",
"memo": "eosmoto",
"quantity": "2.0000 EOS",
"to": "eosio"
}, "eosio.token", "eosio.token@active")

```

### Change config/更改默认配置

You can change the default node address before sending the request (default is 127.0.0.1:8888)

```python
from eosiopy import eosio_config
eosio_config.url="http://127.0.0.1"
eosio_config.port=8888
```
你可以在发送请求之前更改默认的节点地址(默认是 127.0.0.1:8888)

### Use the advanced/进阶使用
You can also generate all parameters manually without using the default parameters.

你也可以不使用默认参数生成,手动生成所有参数
```python
from eosiopy.eosioparams import EosioParams
from eosiopy.nodenetwork import NodeNetwork
params={
"available_keys": [
"EOS7yq2yoio7zBhMMjKR41iTun4P86gyq5bi8fXgy6X3FvH4CwKp6",
"EOS8hdhrncnn1fKk21iHb7g9F8Q7MGa3VdfDiYEffqVeNVgo9iJ5K"
],
"transaction": {
"actions": [
{
"account": "eosio.token",
"authorization": [
{
"actor": "eosio.token",
"permission": "active"
}
],
"data": "00a6823403ea305500e1f505000000000445455300000000046d656d6f",
"name": "issue"
}
],
"context_free_actions": [
],
"context_free_data": [
],
"delay_sec": 0,
"expiration": 1527587389,
"max_cpu_usage_ms": 0,
"max_net_usage_words": 0,
"ref_block_num": 26471,
"ref_block_prefix": 519107831,
"signatures": [
]
}
}
eosiop_arams=EosioParams(params,"5K7vdq9bEpTGZMryrc4LwcxeHAwMcrFuwskVujujpAfBoJwAo82")
net=NodeNetwork.push_transaction(eosiop_arams.trx_json)
print(net)
```




###LICENSE/版权

**License**

Released under GNU General Public License v3.0

Release files for eosiopy 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 eosiopy 0.1.4
File Size Uploaded
eosiopy-0.1.4.tar.gz 53.2 kB Details

Release files / eosiopy-0.1.4.tar.gz

Download URL eosiopy-0.1.4.tar.gz
Size 53.2 kB
Tags Source
SHA-256 checksum
How to use checksums
312cfec5c2a95fdbc3d706b19d117f45f84dbb16347bbda7a8a833873183f5a6
BLAKE2b-256 checksum
How to use checksums
d1a2128733b064a6e3f0196509457f6bbb73a9a05701826a57bb60ca993912e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.3

Release history Release notifications | RSS feed

This release

0.1.4 This release

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.0.6

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

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