Skip to main content

A new and easy way to access Twitter data with Python.

Project description

Twython - Easy Twitter utilities in Python

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 support is in the works, but every other part of the Twitter API should be covered. Twython handles both Basic (HTTP) Authentication and OAuth, and OAuth is the default method for Authentication. To override this, specify ‘authtype=”Basic”’ in your twython.setup() call.

Documentation is forthcoming, but Twython attempts to mirror the Twitter API in a large way. All parameters for API calls should translate over as function arguments.

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(authtype=”Basic”, 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.8.tar.gz (12.6 kB view details)

Uploaded Source

Built Distributions

twython-0.8.win32.exe (81.5 kB view details)

Uploaded Source

twython-0.8.macosx-10.5-i386.tar.gz (35.0 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for twython-0.8.tar.gz
Algorithm Hash digest
SHA256 0bcb6a17ee240d50d944f3f9fce6c763e708f840699c3955dac38b392ff9066d
MD5 8ec50d9c0771ba61dbe90fa712044332
BLAKE2b-256 c3a42a024daed5c3f070453dbe7568ef01aed2332ad8430ce70073ca79955b5a

See more details on using hashes here.

File details

Details for the file twython-0.8.win32.exe.

File metadata

  • Download URL: twython-0.8.win32.exe
  • Upload date:
  • Size: 81.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for twython-0.8.win32.exe
Algorithm Hash digest
SHA256 dbf1deab96ca6f440df68b55c3e8abcc9a81a59bc9b2ff89fe22cd6b84b43364
MD5 147571f147da50d18291e5d3ce70047c
BLAKE2b-256 10efeae4d802d38577b8af795743dbbf4e4450e3eb7860b5b8bff03be7f40a3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for twython-0.8.macosx-10.5-i386.tar.gz
Algorithm Hash digest
SHA256 2d1b040c2339119ee35855feed25697020dac30a0848b6c0a76e041be18b2a37
MD5 fea3185fdaf87d1278afef1cebd54b4f
BLAKE2b-256 cdc1ed55494ccd1c6070da2cba7a086bde6c07779638546a57457ce16d626c33

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