This repository has been archived by the owner on Aug 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 955
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
64 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,3 @@ | ||
NOTICE | ||
|
||
The simplejson library (http://simplejson.googlecode.com) is used under the terms of the MIT license and is copyright Bob Ippolito. | ||
See http://simplejson.googlecode.com/svn/trunk/LICENSE.txt for details. | ||
|
||
The python-oauth2 library (http://github.com/simplegeo/python-oauth2) is used under the terms of the MIT license and is copyright Leah Culver. | ||
See http://github.com/simplegeo/python-oauth2/blob/master/LICENSE.txt for details. | ||
|
||
The httplib2 library (http://code.google.com/p/httplib2) is used under the terms of the MIT license and is copyright Joe Gregorio. | ||
See http://code.google.com/p/httplib2/source/browse/python2/httplib2/__init__.py for details. | ||
|
||
This code is made available under the Apache License and is copyright the Python-Twitter Developers. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ By the Python-Twitter Developers <[email protected]> | |
Introduction | ||
============ | ||
|
||
This library provides a pure Python interface for the `Twitter API https://dev.twitter.com/`. It works with Python versions from 2.5 to 2.7. Python 3 support is under development. | ||
This library provides a pure Python interface for the `Twitter API https://dev.twitter.com/`. It works with Python versions from 2.6+. Python 3 support is under development. | ||
|
||
`Twitter http://twitter.com` provides a service that allows people to connect via the web, IM, and SMS. Twitter exposes a `web services API http://dev.twitter.com/doc` and this library is intended to make it even easier for Python programmers to use. | ||
|
||
|
@@ -38,7 +38,6 @@ Check out the latest development version anonymously with:: | |
Dependencies | ||
|
||
* [Requests](http://docs.python-requests.org/en/latest/) | ||
* [SimpleJson](http://cheeseshop.python.org/pypi/simplejson) | ||
* [Requests OAuthlib](https://requests-oauthlib.readthedocs.org/en/latest/) | ||
|
||
============= | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ Author: The Python-Twitter Developers <[email protected]> | |
|
||
Introduction | ||
------------ | ||
This library provides a pure Python interface for the `Twitter API <https://dev.twitter.com/>`_. It works with Python versions from 2.5 to 2.7. Python 3 support is under development. | ||
This library provides a pure Python interface for the `Twitter API <https://dev.twitter.com/>`_. It works with Python version 2.6+. Python 3 support is under development. | ||
|
||
`Twitter <http://twitter.com>`_ provides a service that allows people to connect via the web, IM, and SMS. Twitter exposes a `web services API <http://dev.twitter.com/doc>`_ and this library is intended to make it even easier for Python programmers to use. | ||
|
||
|
@@ -22,14 +22,8 @@ From source: | |
|
||
Install the dependencies: | ||
|
||
- `SimpleJson <http://cheeseshop.python.org/pypi/simplejson>`_ | ||
- `Requests OAuthlib <https://requests-oauthlib.readthedocs.org/en/latest/>`_ | ||
- `HTTPLib2 <http://code.google.com/p/httplib2/>`_ | ||
|
||
This branch is currently in development to replace the OAuth and HTTPLib2 libarays with the following: | ||
|
||
- `Requests <http://docs.python-requests.org/en/latest/>`_ | ||
|
||
- `Requests OAuthlib <https://requests-oauthlib.readthedocs.org/en/latest/>`_ | ||
|
||
Alternatively use `pip`:: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,24 +21,7 @@ | |
__author__ = '[email protected]' | ||
__version__ = '2.0' | ||
|
||
try: | ||
# Python >= 2.6 | ||
import json as simplejson | ||
except ImportError: | ||
try: | ||
# Python < 2.6 | ||
import simplejson | ||
except ImportError: | ||
try: | ||
# Google App Engine | ||
from django.utils import simplejson | ||
except ImportError: | ||
raise ImportError, "Unable to load a json library" | ||
# parse_qsl moved to urlparse module in v2.6 | ||
try: | ||
from urlparse import parse_qsl, parse_qs | ||
except ImportError: | ||
from cgi import parse_qsl, parse_qs | ||
import json as simplejson | ||
|
||
try: | ||
from hashlib import md5 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
__author__ = '[email protected]' | ||
|
||
import os | ||
import simplejson | ||
import json as simplejson | ||
import time | ||
import calendar | ||
import unittest | ||
|