Commit graph

37 commits

Author SHA1 Message Date
Mike Helmick
0937fbe929 Fix Changelog, update version
[ci skip]
2013-12-06 11:14:39 -05:00
Mike Helmick
74b2f97f2c Update HISTORY.rst
[ci skip]
2013-12-06 11:12:29 -05:00
Mike Helmick
c2068466af Update requests version, HISTORY.rst, prepare for 3.1.1 release 2013-12-05 18:15:30 -05:00
Mike Helmick
28b6d68b3b Update changelog, fix version number
[ci skip]
2013-09-25 16:21:49 -04:00
Mike Helmick
2020b19ebc Update HISTORY.rst
[ci skip]
2013-07-24 00:25:05 -04:00
Mike Helmick
06f5425724 Fixes #244 2013-07-20 17:46:13 -04:00
Mike Helmick
dd3727c6f5 Fixes #243 2013-07-20 17:22:07 -04:00
Mike Helmick
ebd5cd47dd General cursor (generator) like object for Twython functions
* If the endpoint has an iter_mode, the function is able to be used in
Twython.cursor

* Deprecate Twython.search_gen

Fixes #238
2013-07-18 20:31:56 -04:00
Mike Helmick
d37614cb02 Update HISTORY.rst
[ci skip]
2013-06-27 22:57:27 -04:00
Mike Helmick
4d86aa670d Fixing stuff for 3.0.0 release
Releasing June 18th!

[ci skip]
2013-06-17 13:51:36 -04:00
Mike Helmick
756eb9060e Update docs, add functionality to get_lastfunction_header per @devdave 2013-06-13 13:31:32 -04:00
Mike Helmick
478c139af2 Coverage, tests, secure ACCESS_TOKEN, update HISTORY 2013-06-11 17:12:34 -04:00
Mike Helmick
a0aae4687d Introduce client_args
client_args allow for users to manipulate the request without our init
being cluttered up with keyword args

[ci skip]
2013-06-10 16:35:52 -04:00
Mike Helmick
f6040fe275 Fixing code (errors from tests), update HISTORY
[ci skip]
2013-06-08 16:52:15 -04:00
Mike Helmick
8559a1f1ce OAuth 2 support :)
[ci skip]
2013-06-07 20:12:52 -04:00
Mike Helmick
ec2bd7d686 Automatically join kwargs passed as lists into comma-separated string
[ci skip]
2013-06-06 13:41:44 -04:00
Mike Helmick
9c6fe0d6b8 Update tests docstring
[ci skip]
2013-05-30 18:21:26 -04:00
Mike Helmick
47e1b7c158 3.0.0
## 3.0.0

- Changed ``twython/twython.py`` to ``twython/api.py`` in attempt to
make structure look a little neater
- Removed all camelCase function access (anything like
``getHomeTimeline`` is now ``get_home_timeline``) Fixes #199
- Removed ``shorten_url``. With the ``requests`` library, shortening a
URL on your own is simple enough
- ``twitter_token``, ``twitter_secret`` and ``callback_url`` are no
longer passed to ``Twython.__init__`` Fixes #185
    - ``twitter_token`` and ``twitter_secret`` have been replaced with
``app_key`` and ``app_secret`` respectively
    - ``callback_url`` is now passed through
``Twython.get_authentication_tokens``

[ci skip]
2013-05-30 18:16:39 -04:00
Mike Helmick
4327ff30df Cleaning up a bit
[ci skip]
2013-05-30 17:48:47 -04:00
Mike Helmick
8d2dd80ae8 Update HISTORY 2.10.1 date
[ci skip]
2013-05-29 13:37:42 -04:00
Mike Helmick
81a6802c63 Update HISTORY
[ci skip]
2013-05-29 11:41:30 -04:00
Mike Helmick
f879094ea1 Update stream example, update AUTHORS for future example fix
Remove tests that usually caused Travis to fail
Made it clear that Authenticaiton IS required for Streaming in the
docstring
2013-05-29 11:41:30 -04:00
Mike Helmick
c8b1202880 Added disconnect to TwythonStreamer, more tests, update example
* Stream and Twython core tests
* Import TwythonStreamError from twython

See more in 2.10.1 section of HISTORY.rst
2013-05-29 11:41:03 -04:00
Mike Helmick
894e94a4cd 2.10.1
- More test coverage!
- Fix ``search_gen``
- Fixed ``get_lastfunction_header`` to actually do what its docstring
says, returns ``None`` if header is not found
- Updated some internal API code, ``__init__`` didn't need to have
``self.auth`` and ``self.headers`` because they were never used
anywhere else but the ``__init__``
2013-05-29 11:41:03 -04:00
Mike Helmick
78c1a95dc3 Update MANIFEST and HISTORY
[ci skip]
2013-05-21 19:14:20 -04:00
Mike Helmick
126305d93d Revert removing unicode2utf8 and encode staticmethods
[ci skip]
2013-05-21 12:52:17 -04:00
Mike Helmick
c7bce9189f Update requests dependency, add str py2/3 compat, __repr__ definition, removed unicode2utf8 & encode static methods, update HISTORY
@ryanmcgrath Let me know if you're okay with the removal of
Twython.unicode2utf8 and Twython.encode. I moved Twython.encode to
_encode in helpers.py (only place being used is
Twython.construct_api_url) If it's python 2 and unicode then we encode
it, otherwise return the original value

[ci skip]
2013-05-21 11:41:43 -04:00
Mike Helmick
27c51b8ba6 Fixes #192, update HISTORY 2013-05-16 14:15:11 -04:00
Mike Helmick
5534ea2480 Fixes #193, fixed when Warning is raised, fixed error raising, version bump
- Added `get_retweeters_ids` method
- Fixed `TwythonDeprecationWarning` on camelCase functions if the
camelCase was the same as the PEP8 function (i.e. ``Twython.retweet``
did not change)
- Fixed error message bubbling when error message returned from Twitter
was not an array (i.e. if you try to retweet something twice, the error
is not found at index 0)
2013-05-10 21:28:57 -04:00
Mike Helmick
84e4c5fe13 Update all endpoints in the api_table, examples, READMEs
Also updated functions in twython.py to use pep8 functions instead of
camelCase functions
2013-05-04 19:28:47 -04:00
Mike Helmick
0e258fe1a1 Update HISTORY 2013-05-04 15:13:29 -04:00
Mike Helmick
cea0852a42 Updating file structure and HISTORY.rst 2013-05-03 17:33:17 -04:00
Mike Helmick
c3e84bc8ee Fixing streaming 2013-05-02 15:12:36 -04:00
Mike Helmick
e18bff97d3 Update HISTORY.rst 2013-04-29 14:30:30 -03:00
Mike Helmick
776e02b071 Updated AUTHORS, HISTORY; added ssl_verify; removed _media_update
- Added @jvanasco to the AUTHORS.rst
- Updated History
- Removed _media_update internal function
- Twython now takes ssl_verify param
2013-04-29 11:27:15 -04:00
Mike Helmick
a451db43c1 Removed bulkUserLookup & getProfileImageUrl, deprecating shortenUrl, raise TwythonDepWarnings in Python 2.7 > 2013-04-22 21:29:07 -04:00
Mike Helmick
bb019d3a57 Making twython work (again?) in Python 3
- Added a ``HISTORY.rst`` to start tracking history of changes
- Updated ``twitter_endpoints.py`` to ``endpoints.py`` for cleanliness
- Removed twython3k directory, no longer needed
- Added ``compat.py`` for compatability with Python 2.6 and greater
- Added some ascii art, moved description of Twython and ``__author__`` to ``__init__.py``
- Added ``version.py`` to store the current Twython version, instead of repeating it twice -- it also had to go into it's own file because of dependencies of ``requests`` and ``requests-oauthlib``, install would fail because those libraries weren't installed yet (on fresh install of Twython)
- Removed ``find_packages()`` from ``setup.py``, only one package -- we can
just define it
- added quick publish method for Ryan and I: ``python setup.py publish`` is faster to type and easier to remember than ``python setup.py sdist upload``
- Removed ``base_url`` from ``endpoints.py`` because we're just repeating it in
``Twython.__init__``
- ``Twython.get_authentication_tokens()`` now takes ``callback_url`` argument rather than passing the ``callback_url`` through ``Twython.__init__``, ``callback_url`` is only used in the ``get_authentication_tokens`` method and nowhere else (kept in init though for backwards compatability)
- Updated README to better reflect current Twython codebase
- Added ``warnings.simplefilter('default')`` line in ``twython.py`` for Python 2.7 and greater to display Deprecation Warnings in console
- Added Deprecation Warnings for usage of ``twitter_token``, ``twitter_secret`` and ``callback_url`` in ``Twython.__init__``
- Headers now always include the User-Agent as Twython vXX unless User-Agent is overwritten
- Removed senseless TwythonError thrown if method is not GET or POST, who cares -- if the user passes something other than GET or POST just let Twitter return the error that they messed up
- Removed conversion to unicode of (int, bool) params passed to a requests. ``requests`` isn't greedy about variables that can't be converted to unicode anymore
2013-04-18 22:00:23 -04:00