Mallerenga is a library to help managing Twitter accounts
You can install it using pip install as usual:
pip install mallerengaA Twitter account with consumer key and secret and access token and secret is required. These credentials must be provided in the following environment variables:
TWITTER_CONSUMER_KEY: Consumer keyTWITTER_CONSUMER_SECRET: Consumer secretTWITTER_ACCESS_TOKEN: Access tokenTWITTER_ACCESS_TOKEN_SECRET: Access token secret
Mallerenga is intended to be user mostly as a module:
from mallerenga.twitter.twitter import Twitter
twitter = Twitter()
status = twitter.tweet(msg)
print(status.link)To update the Twitter status, use the following command:
mallerenga New status message