Skip to main content

No-boilerplate, async and typed Twitter access.

Project description

sly logo Sly Twitter for Python

🚧 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():

    twitter = await Twitter('test/app.json', 'test/user.json')

    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.2.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

SlyTwitter-0.1.2-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: SlyTwitter-0.1.2.tar.gz
  • Upload date:
  • Size: 7.9 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.2.tar.gz
Algorithm Hash digest
SHA256 e383ff4386d2f862db96f91697de6387a1be23f39d7b7e2b5a35e0792f7d73f5
MD5 7f82b7ddde607dc69e887a9c4848fd47
BLAKE2b-256 fc700630dd4696272192f9af96918ddd5a96756e90379c04e0ee2b6955b09245

See more details on using hashes here.

File details

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

File metadata

  • Download URL: SlyTwitter-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3270dfcd3ef4d0827739eb04e9f6668665e7679fd3b7d614e1725d6cb448d14e
MD5 2a946c8b1a4c295e335a402a6b238fcc
BLAKE2b-256 4ff4e32e394de22e51b5a8a3f5a5963ffbf260fb0c567d59ca2c8d772818c626

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