An asynchronous Twitter API client for Python 3.5+
To install this module simply run:
pip install peony-twitter[all]
This will install all the modules required to make peony run out of the box. You might feel like some of them are not fit for your needs. Check Advanced installation for more information about how to install only the modules you will need.
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)
To run the tests run:
make install # install the required dependencies make test
You can also use tox to run the tests, a configuration file is provided:
Read Peony’s documentation.
Every kind of contribution is appreciated.
If you find a bug please start an issue and if you’re very motivated you can create a pull request.
If you have a suggestion you can also start an issue and create a pull request if you managed to make it work.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|peony_twitter-1.0.3-py3-none-any.whl (35.5 kB) Copy SHA256 Checksum SHA256||py3||Wheel||Aug 15, 2017|
|peony-twitter-1.0.3.tar.gz (27.7 kB) Copy SHA256 Checksum SHA256||–||Source||Aug 15, 2017|