An async python wrapper for the Strawpoll API.
Project description
strawpoll.py is an async wrapper for strawpoll’s API written in Python.
For more info, take a look at the documentation.
Installation
$ pip install strawpoll.py
Usage
import asyncio import strawpoll async def main(): api = strawpoll.API() p1 = await api.get_poll(10915632) print(p1.results()) p2 = strawpoll.Poll('lol?', ['ha', 'haha', 'hahaha', 'hahahaha', 'hahahahaha']) await api.submit_poll(p2) print(p2.url) asyncio.get_event_loop().run_until_complete(main())
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
strawpoll.py-0.1.0.zip
(11.7 kB
view hashes)
Built Distribution
Close
Hashes for strawpoll.py-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 274a00ac4498da7f8a14bc47387df003f85d417540f5a9d8cf484b6d5567d1e7 |
|
MD5 | fc709eee5c5540681a575636c3e86565 |
|
BLAKE2b-256 | 950530a38ce3f92deb9724da64bcb1b88ab43933f1d1a9636712eb1ffb72f212 |