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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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