$npx skillfedfor your agent

twython

Actively maintained, pure Python wrapper for the Twitter API. Supports both normal and streaming Twitter APIs

SkipPyPI Python ModulesReleased Jul 2021122.3K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — twython-3.9.1-py3-none-any.whl
v3.9.1 · released 2021-07-16 · Python >=3.5 · 2 runtime deps: requests, requests-oauthlib

No—unless you are maintaining legacy code already using Twython. The package is abandoned (last release 2021-07-16, no commits since), so it will not receive security updates or adapt to Twitter API changes. For new projects, use an actively maintained Twitter API client instead. If you must use it, audit the codebase for compatibility with current Twitter API versions and OAuth flows before deploying.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.5 or later.
  • You must obtain Twitter API credentials (Consumer Key, Consumer Secret, and OAuth tokens) from https://apps.twitter.com before authenticating.
  • Low install friction with only two runtime dependencies (requests and requests-oauthlib).

License · maintenance · safety

MIT (permissive) — Licensed under MIT (permissive), so you can use, modify, and distribute Twython freely in commercial and private projects without significant legal restriction.

last release 2021-07-16 (1855 days) · last repo commit 2022-07-30 · 1,861 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 122,345 downloads/mo, #11,956 on PyPI

Verify before relying

pip install twython

from twython import Twython

twitter = Twython(APP_KEY, APP_SECRET, OAUTH_TOKEN, OAUTH_TOKEN_SECRET)
twitter.update_status(status='See how easy using Twython is!')
  • Whether Twitter API endpoints have changed since the last release in 2021 and whether Twython still works with current Twitter API versions
  • Current state of OAuth token handling and whether Twitter's authentication flow changes are reflected in the codebase
Same gist for agents: .md · .json

What it is and what it does

Twython is a pure Python wrapper around Twitter's REST and streaming APIs, designed to handle OAuth authentication (both OAuth 1 user auth and OAuth 2 app-only) and provide a simple interface to Twitter endpoints. It abstracts away the HTTP details and OAuth handshake, letting you call methods like `get_home_timeline()` or `update_status()` directly. The library maps keyword arguments to Twitter API parameters dynamically, so you can pass any query option the API supports without waiting for library updates.

The package depends on requests for HTTP calls and requests-oauthlib for OAuth token management. It supports image uploads (avatars, banners, status media) and includes a streaming API client for real-time tweet consumption. However, the project has been abandoned since mid-2021, with no active maintenance or updates to handle Twitter API changes or security issues.

Use it for

  • Build a web app where users sign in with Twitter and post to their timeline using OAuth 1 user authentication
  • Create a bot or monitoring tool that reads tweets from a timeline or search endpoint using app-only OAuth 2
  • Stream live tweets in real time to process or analyze them as they arrive
  • Automate posting images or media to a Twitter account programmatically
  • Query user profiles, follower lists, or tweet metadata for data collection or analytics

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Skip

No—unless you are maintaining legacy code already using Twython.

The package is abandoned (last release 2021-07-16, no commits since), so it will not receive security updates or adapt to Twitter API changes. For new projects, use an actively maintained Twitter API client instead. If you must use it, audit the codebase for compatibility with current Twitter API versions and OAuth flows before deploying.

Install

twython on PyPI

Before you install

Low install friction with only two runtime dependencies (requests and requests-oauthlib). However, the package is abandoned—last release was 2021-07-16, over 1855 days ago. Maintenance status is inactive, so security patches and API updates are unlikely.

Requires Python 3.5 or later. You must obtain Twitter API credentials (Consumer Key, Consumer Secret, and OAuth tokens) from https://apps.twitter.com before authenticating.

License in practice

Licensed under MIT (permissive), so you can use, modify, and distribute Twython freely in commercial and private projects without significant legal restriction.

Quickstart

pip install twython

from twython import Twython

twitter = Twython(APP_KEY, APP_SECRET, OAUTH_TOKEN, OAUTH_TOKEN_SECRET)
twitter.update_status(status='See how easy using Twython is!')

Verify before relying

  • Whether Twitter API endpoints have changed since the last release in 2021 and whether Twython still works with current Twitter API versions
  • Current state of OAuth token handling and whether Twitter's authentication flow changes are reflected in the codebase

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.5
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
requestsrequests-oauthlib
MaintenanceAbandoned 1,855 days since the last release
Last repo commit
First released
Downloads122,345 / month, #11,956 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Topic :: Communications :: ChatTopic :: InternetTopic :: Software Development :: Libraries :: Python Modules

Evidence: twython-3.9.1-py3-none-any.whl

Tags

Capabilities
twitter api client pythontweet posting librarytwitter data retrievaloauth twitter authenticationtwitter streaming apitwitter api wrapperpython twitter integration
Topics
twitter-apioauthabandoned
PyPI keywords
twittersearchapitweettwythonstream

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “twitter api client python”

  • twythonTwython is a Python wrapper for the Twitter API that lets you query…
  • python-twitterA Python wrapper that provides programmatic access to the Twitter…
  • twitter-adsA Python SDK for managing Twitter Ads campaigns, accounts, and…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also python-twitter · twikit · tweepy · rauth · Mastodon.py · twscrape · Scweet · twitchAPI · requests-oauth · pywa