https://github.com/kesha1225/pyumi
Umi API wrapper for python
https://github.com/kesha1225/pyumi
api asyncio python umi
Last synced: 8 months ago
JSON representation
Umi API wrapper for python
- Host: GitHub
- URL: https://github.com/kesha1225/pyumi
- Owner: kesha1225
- Created: 2023-01-25T21:39:17.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-16T16:58:57.000Z (about 1 year ago)
- Last Synced: 2024-10-10T13:35:09.764Z (about 1 year ago)
- Topics: api, asyncio, python, umi
- Language: Python
- Homepage:
- Size: 95.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# UMIPY
[](https://codecov.io/github/kesha1225/PyUmi)
Interaction with umi blockchain
### Install
for stable version
`pip install umipy`
for dev version
`pip install https://github.com/RoyFractal/PyUmi/archive/master.zip`
### Usage
You can find more examples - [examples/](examples/)
#### simple getting a address data
```python3
import asyncio
import aiohttp
from umipy import UmiPy
async def main():
umi = UmiPy(session=aiohttp.ClientSession())
balance = await umi.get_balance(
"umi17ymaed9h9hq7s5pc2f5fhmlzpmsk3qtc6g2cgm360zysz0uvq44qnxlsuz"
)
print(balance)
trans = await umi.get_transactions(
"umi17ymaed9h9hq7s5pc2f5fhmlzpmsk3qtc6g2cgm360zysz0uvq44qnxlsuz"
)
print(trans)
await umi.close()
asyncio.run(main())
```