No-boilerplate, async and typed Twitter access.
Project description
SlyTwitter
🚧 This library is an early work in progress! Breaking changes may be frequent.
🐍 For Python 3.10+
No-boilerplate, async and typed Twitter access. 😋
pip install slytwitter
This library does not have full coverage. Version 2 and premium version 1.1 are not supported. Currently, the following topics are supported:
- Posting and managing tweets, with media
- Reading followers
You can directly grant user tokens using the command line, covering the whole OAuth 1.0 grant process.
Example usage:
import asyncio
from SlyTwitter import *
async def main():
# don't forget to keep your secrets secret!
app = json.load(open('test/app.json'))
user = json.load(open('test/user.json'))
twitter = await Twitter(app, user)
follow = await twitter.check_follow('dunkyl_', 'TechConnectify')
print(follow) # @dunkyl_ follows @TechConnectify
asyncio.run(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
SlyTwitter-0.1.1.tar.gz
(8.0 kB
view hashes)
Built Distribution
Close
Hashes for SlyTwitter-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e34d3daec243c15d3afb35b602a5362f94eb655acad2bad8e1ab44d2f2ce7d3 |
|
MD5 | 995940580a6cedf6571d71b7abe1cd18 |
|
BLAKE2b-256 | 2ce740c8d28720b284128f7fa57af173cf55c3a8364d3faa8ca603cafec82532 |