{"library":"python-twitter","title":"python-twitter","description":"A Python wrapper around the Twitter API. Version 3.5 fixes DM endpoint handling. Release cadence is sporadic.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install python-twitter"],"cli":null},"imports":["from twitter import Api"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from twitter import Api\n\nconsumer_key = os.environ.get('TWITTER_CONSUMER_KEY', '')\nconsumer_secret = os.environ.get('TWITTER_CONSUMER_SECRET', '')\naccess_token_key = os.environ.get('TWITTER_ACCESS_TOKEN_KEY', '')\naccess_token_secret = os.environ.get('TWITTER_ACCESS_TOKEN_SECRET', '')\n\napi = Api(consumer_key, consumer_secret, access_token_key, access_token_secret)\nstatus = api.PostUpdate('Hello world!')\nprint(status.text)","lang":"python","description":"Authenticate and post a tweet.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}