Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

A python wrapper for the Strawpoll API.

Project description

https://img.shields.io/pypi/pyversions/strawpoll.py.png https://img.shields.io/pypi/v/strawpoll.py.png https://img.shields.io/badge/license-MIT-blue.png https://readthedocs.org/projects/strawpollpy/badge/

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

This version
History Node

0.2.0

History Node

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
strawpoll.py-0.2.0-py3-none-any.whl (9.7 kB) Copy SHA256 hash SHA256 Wheel py3 Dec 25, 2016
strawpoll.py-0.2.0.tar.gz (7.3 kB) Copy SHA256 hash SHA256 Source None Dec 25, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page