Skip to main content
https://travis-ci.org/jbn/brittle_wit.svg?branch=master https://ci.appveyor.com/api/projects/status/9k78nhy88v51fd69?svg=true https://coveralls.io/repos/github/jbn/brittle_wit/badge.svg?branch=master https://img.shields.io/pypi/dm/brittle_wit.svg https://img.shields.io/pypi/v/brittle_wit.svg https://img.shields.io/badge/license-MIT-blue.svg https://img.shields.io/pypi/pyversions/brittle_wit.svg

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()

print(jacks_first_tweet)

Metadata

Release files for brittle_wit 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for brittle_wit 0.0.6
File Size Uploaded
brittle_wit-0.0.6.tar.gz 84.8 kB Details

Release files / brittle_wit-0.0.6.tar.gz

Download URL brittle_wit-0.0.6.tar.gz
Size 84.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1612bc990f31edfa4f30e2ce5bd6dedc5bae3c0618801c7153d6b77e5ecf622d
BLAKE2b-256 checksum
How to use checksums
b5c13f664ba54e342d9ae1e84909adf86757d82e815c1d4c7d89d6f005489cbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.6 This release

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page