An asynchronous Twitter API client for Python 3.5+
Project description
An asynchronous Twitter API client for Python 3.5+
Installation
To install this module simply run:
pip install peony-twitter
Getting started
You can easily create a client using the class PeonyClient. Make sure to get your api keys and access tokens from Twitter’s application management page and/or to Authorize your client
Note: the package name is peony and not peony-twitter
import asyncio
# Note: the package name is peony and not peony-twitter
from peony import PeonyClient
loop = asyncio.get_event_loop()
# create the client using your api keys
client = PeonyClient(consumer_key=YOUR_CONSUMER_KEY,
consumer_secret=YOUR_CONSUMER_SECRET,
access_token=YOUR_ACCESS_TOKEN,
access_token_secret=YOUR_ACCESS_TOKEN_SECRET)
# this is a coroutine
req = client.api.statuses.update.post(status="I'm using Peony!!")
# run the coroutine
loop.run_until_complete(req)
Documentation
Read Peony’s documentation at https://peony-twitter.readthedocs.io.
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
peony-twitter-0.6.2.tar.gz
(19.4 kB
view hashes)
Built Distribution
Close
Hashes for peony_twitter-0.6.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe71d874ec18fd9465970a2f5057d39968fcfa2a8114f2abe4a7665e3aa54bf8 |
|
MD5 | 9e7624de936a517368f6f45d6d310eda |
|
BLAKE2b-256 | 2f2ab6a3331a47767f0daf40588ff8dee908bd63474c10083e98a5463daf79e9 |