btcnet_info-0.1.2.9
توضیحات
BitCoin Network Information Library
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | btcnet_info-0.1.2.9 |
| نام | btcnet_info |
| نسخه کتابخانه | 0.1.2.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Colin Rice |
| ایمیل نویسنده | dah4k0r@gmail.com |
| آدرس صفحه اصلی | github.com/c00w/btcnet_info |
| آدرس اینترنتی | https://pypi.org/project/btcnet_info/ |
| مجوز | MIT Expat License |
This is a bitcoin network information library.
Currently it is the backend polling implementation for bitHopper although anyone may use. Note that it uses gevent.
It has two main methods.
The first one returns a list of pools.
EX:
import btcnet_info
for pool in btcnet_info.get_pools:
print pool.name
print pool.shares
It also allows you to iterate over know coins
EX:
import btcnet_info
for pool in btcnet_info.get_coins():
print coin.name
print coin.difficulty
If you don't like this you can also get difficulties and exchange rates directly
EX:
import btcnet_info
print btcnet_info.get_difficulty('btc')
print btcnet_info.get_exchange('btc')
نحوه نصب
نصب پکیج whl btcnet_info-0.1.2.9:
pip install btcnet_info-0.1.2.9.whl
نصب پکیج tar.gz btcnet_info-0.1.2.9:
pip install btcnet_info-0.1.2.9.tar.gz