Skip to main content

A Synchronous python API wrapper for twitter's api

Project description

pytwot

This project is a fork of the now archived PyTweet

VERY IMPORTANT: This project is approved by the PyTweet devs themselves.

Another note: the support server given is support server for the original PyTweet as this is approved by the devs they requested the support server stay the same

Documentation Status


pytwot is a synchronous Python API wrapper for the Twitter API. It is filled with rich features and is very easy to use.

Installation

Windows

py -m pip install pytwot

Linux/MacOS

python3 -m pip install pytwot

Usage

Before using pytwot you have to setup an application here. For a more comfortable experience, you can create an application inside a project. Most endpoints require the client to have read, write and direct_messages app permissions and elevated access type. For more accessibility you can create a dev environment to support events and other premium endpoints. If you have any questions, please open an issue or ask in the official pytwot Discord.

import pytwot

client = pytwot.Client(
    "Your Bearer Token Here!!!", 
    consumer_key="Your consumer key here", 
    consumer_secret="Your consumer secret here", 
    access_token="Your access token here", 
    access_token_secret="Your access token secret here",
) #Before using pytwot, make sure to create an application in https://apps.twitter.com.

client.tweet("Hello world, Hello twitter!") #This requires read & write app permissions also elevated access type.

You can check in the examples directory for more example code.

Links

Contribute

You can Contribute or open an issue regarding pytwot in our GitHub repository!

Licence & Copyright

All files of this repo are protected and licensed with the MIT License, LICENSE File

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

pytwot-1.5.1.tar.gz (72.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytwot-1.5.1-py3-none-any.whl (104.2 kB view details)

Uploaded Python 3

File details

Details for the file pytwot-1.5.1.tar.gz.

File metadata

  • Download URL: pytwot-1.5.1.tar.gz
  • Upload date:
  • Size: 72.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for pytwot-1.5.1.tar.gz
Algorithm Hash digest
SHA256 7df2668621b39ddc08c2468783eec11e26f281328de02b76597423c7555a85e3
MD5 709f2b58eb0f9ae5d9631efa6f59f85d
BLAKE2b-256 cab7e94caa431c11055926e0bed9f1d4b69d70685aff9259bf2fcd8c2e58dba7

See more details on using hashes here.

File details

Details for the file pytwot-1.5.1-py3-none-any.whl.

File metadata

  • Download URL: pytwot-1.5.1-py3-none-any.whl
  • Upload date:
  • Size: 104.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for pytwot-1.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 862bd09cb32789e594d424b4909db6b213e874aee3339cc13e3543f2edb28f13
MD5 fd7e3cc7405a35340f9ffda17b7cf1d9
BLAKE2b-256 42c4bc1cd5d789685b59c257847aaf6cebcbf5ff50332943d395c7536a8f67a3

See more details on using hashes here.

Supported by

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