Tweepy is the MIT-licensed Python client that wraps the sanctioned X (Twitter) API v2 for developers building compliant integrations.
Yes, tweepy is open source under the MIT license.
tweepy is free to use.
Yes, tweepy can be self-hosted (the source is available under the MIT license).
Tweepy is an MIT-licensed Python library (~11.2k GitHub stars) that gives developers a clean interface to the official X (Twitter) API v2. It handles OAuth 1.0a and OAuth 2.0 authentication plus API key / bearer tokens against a sanctioned developer app, so there is no ban risk the way scraping libraries (twikit, twscrape, snscrape) carry. Free and self-installed via pip; you bring your own X API credentials, which are subject to X's paid tiers and per-tier rate limits.