https://github.com/kylestev/netcodepool-api
https://github.com/kylestev/netcodepool-api
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/kylestev/netcodepool-api
- Owner: kylestev
- License: mit
- Created: 2013-05-05T00:58:19.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-05-05T01:15:23.000Z (about 13 years ago)
- Last Synced: 2025-02-14T19:56:30.729Z (over 1 year ago)
- Language: Python
- Size: 113 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
NetCodePool-API
===============
### Examples
```python
import api
net = api.NetCodePoolAPI('API-KEY-HERE')
print 'Alive workers:', [k for k, v in net.get_workers().items() if v['alive']]
print 'Best hashrate:', max([v['hashrate'] for k, v in net.get_workers().items()])
print 'Round earnings estimate:', net.get_stat('estimate')
print 'Current total hashrate:', net.get_stat('hashrate')
```