Skip to main content

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

Metadata

Release files for pytwot 1.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytwot 1.5.1
File Size Uploaded
pytwot-1.5.1.tar.gz 72.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytwot 1.5.1
File Interpreter ABI Platform
pytwot-1.5.1-py3-none-any.whl Python 3 none any Details

Total release size: 176.6 kB

Release files / pytwot-1.5.1.tar.gz

Download URL pytwot-1.5.1.tar.gz
Size 72.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7df2668621b39ddc08c2468783eec11e26f281328de02b76597423c7555a85e3
BLAKE2b-256 checksum
How to use checksums
cab7e94caa431c11055926e0bed9f1d4b69d70685aff9259bf2fcd8c2e58dba7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / pytwot-1.5.1-py3-none-any.whl

Download URL pytwot-1.5.1-py3-none-any.whl
Size 104.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
862bd09cb32789e594d424b4909db6b213e874aee3339cc13e3543f2edb28f13
BLAKE2b-256 checksum
How to use checksums
42c4bc1cd5d789685b59c257847aaf6cebcbf5ff50332943d395c7536a8f67a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release history Release notifications | RSS feed

This release

1.5.1 This release

2 release files

1.5.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page