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.5.tar.gz (8.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

twython-0.5.win32.exe (71.5 kB view details)

Uploaded Source

twython-0.5-py2.5.egg (15.2 kB view details)

Uploaded Egg

File details

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

File metadata

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

File hashes

Hashes for twython-0.5.tar.gz
Algorithm Hash digest
SHA256 c974a9c6fe7c02e69a1379f0fc9a3236e037c24f2970dc6c7bbb0f9f927f7892
MD5 38b3bfba30b3db63d66fab425f815f73
BLAKE2b-256 8b3b8178f0f1bd5acf13fe938345c162060e589c244fd55c4646b978a4aaa657

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for twython-0.5.win32.exe
Algorithm Hash digest
SHA256 7a63c1255b8fe83e041953c9d7a46f95faf076f0510060ab46aaef4c88911a14
MD5 0d31ad78114a135c859b90c00a6357d0
BLAKE2b-256 5ebd22e10b7e753e955579daf391af2e4c9b38980a0d416f9e6f4047f02274dc

See more details on using hashes here.

File details

Details for the file twython-0.5-py2.5.egg.

File metadata

  • Download URL: twython-0.5-py2.5.egg
  • Upload date:
  • Size: 15.2 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for twython-0.5-py2.5.egg
Algorithm Hash digest
SHA256 80867540a47622d157f7080f59d6cc9faf2c8fa54ffdd48ff4e0c3bd52d4aef8
MD5 a7c162ba32f853514c4a7329a3747a90
BLAKE2b-256 151b91eb647bf7e3e471123d4cffa7e77be64c9e80bd1b4af29a89f0184cf726

See more details on using hashes here.

Supported by

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