A 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.
Is this project dead?
No, it is not dead, I am still around, there just isn’t much to do until either Strawpoll update their api or someone stumbles upon this package and finds an issue with it.
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.2.0.tar.gz
(7.3 kB
view details)
Built Distribution
File details
Details for the file strawpoll.py-0.2.0.tar.gz
.
File metadata
- Download URL: strawpoll.py-0.2.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
3064153e63b3013f5a8569acc4b18d18ae2c063b0e57c85f54c33b3de01721da
|
|
MD5 |
edb0de8cb57aa35fb1e55e0b1485b830
|
|
BLAKE2b-256 |
1cadf9f4c34ecc5564cb80b6407aa263b1002a153398785fd95e74e3be44ba63
|
File details
Details for the file strawpoll.py-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: strawpoll.py-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
6b34aa972703a8587440aa29aa7f2d446e9e07b4e2df9bd46d0d84e8aef31228
|
|
MD5 |
7532a45640b7278006c9875ca74349fb
|
|
BLAKE2b-256 |
51e955ff914288fc3a077ff06b573397215a762731519534c86fcf695f6d44db
|