Skip to main content

No-boilerplate, async and typed Twitter access.

Project description

sly logo 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


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 details)

Uploaded Source

Built Distribution

SlyTwitter-0.1.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file SlyTwitter-0.1.1.tar.gz.

File metadata

  • Download URL: SlyTwitter-0.1.1.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for SlyTwitter-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b90e2a65b20ab99d76dd91626d9776ae2f3f54abdfe99ba46d123b1e551aff75
MD5 da067dfc71eadaef7b8b6007a372579f
BLAKE2b-256 35a435fd1d93f6935c762a34b1173323fce9eda83c6df84c55c160d0e65fc4a1

See more details on using hashes here.

File details

Details for the file SlyTwitter-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: SlyTwitter-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for SlyTwitter-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5e34d3daec243c15d3afb35b602a5362f94eb655acad2bad8e1ab44d2f2ce7d3
MD5 995940580a6cedf6571d71b7abe1cd18
BLAKE2b-256 2ce740c8d28720b284128f7fa57af173cf55c3a8364d3faa8ca603cafec82532

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page