Skip to main content

An easy (and up to date) way to access Twitter data with Python.

Project description

I wrote Twython because I found that other Python Twitter libraries weren’t that up to date. Certain things like the Search API, OAuth, etc, don’t seem to be fully covered. This is my attempt at a library that offers more coverage.

This is my first library I’ve ever written in Python, so there could be some stuff in here that’ll make a seasoned Python vet scratch his head, or possibly call me insane. It’s open source, though, and I’m open to anything that’ll improve the library as a whole.

OAuth and Streaming API support is in the works, but every other part of the Twitter API should be covered. Twython handles both Basic (HTTP) Authentication and OAuth (Older versions (pre 0.9) of Twython need Basic Auth specified - to override this, specify ‘authtype=”Basic”’ in your twython.setup() call).

Twython has Docstrings if you want function-by-function plays; otherwise, check the Twython Wiki or Twitter’s API Wiki (Twython calls mirror most of the methods listed there).

Requirements

Twython requires (much like Python-Twitter, because they had the right idea :D) a library called “simplejson”. You can grab it at the following link:

> http://pypi.python.org/pypi/simplejson

Example Use

> import twython > > twitter = twython.setup(username=”example”, password=”example”) > twitter.updateStatus(“See how easy this was?”)

Twython 3k

There’s an experimental version of Twython that’s made for Python 3k. This is currently not guaranteed to work, but it’s provided so that others can grab it and hack on it. If you choose to try it out, be aware of this.

Questions, Comments, etc?

My hope is that Twython is so simple that you’d never have to ask any questions, but if you feel the need to contact me for this (or other) reasons, you can hit me up at ryan@venodesigns.net.

Twython is released under an MIT License - see the LICENSE file for more information.

Project details


Download files

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

Source Distribution

twython-0.9.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

twython-0.9.macosx-10.5-i386.tar.gz (58.1 kB view details)

Uploaded Source

File details

Details for the file twython-0.9.tar.gz.

File metadata

  • Download URL: twython-0.9.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for twython-0.9.tar.gz
Algorithm Hash digest
SHA256 5f70397f2b5523a3efb3364bc5549b5ecce785df4cc7f050a9b7f01e72ef2cf0
MD5 bd3096ba0e03dab58bf4d71dc0275f2c
BLAKE2b-256 2474b738ccc10e99ae44f2fc4abfcd16f8ace4e3c9a5fa10f70fa674b461a961

See more details on using hashes here.

File details

Details for the file twython-0.9.macosx-10.5-i386.tar.gz.

File metadata

File hashes

Hashes for twython-0.9.macosx-10.5-i386.tar.gz
Algorithm Hash digest
SHA256 f97f54cd0cdabb9adee370cadd9008d157575464ee80e1c59636eec2229829a9
MD5 d80e02b2ec9b42faae326a418667498f
BLAKE2b-256 5b9982f4c5ae6e67dc093b5ad053dc612ae7d55cf82ca3fb65badf8814847670

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page