Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Brittle Wit is a Twitter Lib for Python.

Project description

What is Brittle Wit?

Brittle Wit is a Twitter Lib for Python.

  • It uses asyncio, aiohttp, and Python 3.5+ (async/await).
  • It is rigorously polite in its adherence to Twitter’s rate limits.
  • It scales well.
  • It works as a library or a server.
  • “Namespaces are one honking great idea – let’s do more of those!”

A Trivial Demo

This code is explained thoroughly in the documentation. It fetches jacks first tweet.

import brittle_wit as bw
from brittle_wit.executors import debug_blocking_request
from brittle_wit import rest_api

APP_CRED = bw.AppCredentials.load_from_env()
CLIENT_CRED = bw.ClientCredentials.load_from_env()
req = rest_api.statuses.lookup(id=20)
resp = debug_blocking_request(APP_CRED, CLIENT_CRED, req)
jacks_first_tweet = resp.json()


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for brittle_wit, version 0.0.6
Filename, size File type Python version Upload date Hashes
Filename, size brittle_wit-0.0.6.tar.gz (84.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page