A Python wrapper around the Twitter API. Version 3.5 fixes DM endpoint handling. Release cadence is sporadic.
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Wrong: Api is exposed at the top-level package, not submodule.
from twitter import Api
Authenticate and post a tweet.
from twitter import Api
consumer_key = os.environ.get('TWITTER_CONSUMER_KEY', '')
consumer_secret = os.environ.get('TWITTER_CONSUMER_SECRET', '')
access_token_key = os.environ.get('TWITTER_ACCESS_TOKEN_KEY', '')
access_token_secret = os.environ.get('TWITTER_ACCESS_TOKEN_SECRET', '')
api = Api(consumer_key, consumer_secret, access_token_key, access_token_secret)
status = api.PostUpdate('Hello world!')
print(status.text)
Upgrade
Version history
Breaking-change detection hasn't run for this library yet.
Audit
Security & dependencies
CVE tracking and dependency tree are planned for a later release.
Agent activity
0 hits · last 30 days
No traffic data recorded yet.