Commit graph

12 commits

Author SHA1 Message Date
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
Mike Helmick
969c0f5e72 Move AUTHORS into their own file
remove README md as well, see how the rst looks
2013-04-12 11:35:07 -04:00
Mike Helmick
8dfb076f11 Update authors 2013-04-10 23:08:43 -04:00
Mike Helmick
10dbe11b56 Version bump and update contributors! 2013-04-08 16:40:59 -04:00
Mike Helmick
abaa3e558a oauth_verifier required, remove simplejson dependency, update endpoint
* Update `updateProfileBannerImage` to use the v1.1 endpoint

* Added `getProfileBannerSizes` method using the GET
/users/profile_banner.json endpoint

* Fixed a couple of endpoints using variable in the url:
  * destroyDirectMessage, createBlock, destroyBlock no longer use id in
their urls, this shouldn't break anything though.
(t.destroyDirectMessage(id=123) should still work)

* `oauth_verifier` is now **required** when calling
`get_authorized_tokens`

* Updated docs - removed getProfileImageUrl docs since it is
deprecated. Noted since `Twython` 2.7.0 that users should focus on
migrating to v1.1 endpoints since Twitter is deprecating v1 endpoints
in May!,
2013-04-08 11:49:12 -04:00
Mike Helmick
a172136f3e Update Twitter Endpoints & Internal Functions
* Twitter Endpoints are now in the order of
https://dev.twitter.com/docs/api/1.1

* No need to repeat search function internally when it is available via
`twitter_endpoints.py`

* Make `searchGen` use self.search, instead of self.get with the full
search url
2013-03-20 23:24:26 -04:00
Ryan McGrath
909f1919b1 Added @chbrown to list of known contributors 2012-11-09 04:57:56 -05:00
Mike Helmick
dfdbbec5a8 Add H6's to README.md 2012-06-25 11:54:33 -04:00
Mike Helmick
2155ae0c23 Fix error in README.md, strip some not-needed comments and fixed a ternary 2012-06-25 11:50:44 -04:00
Ryan McGrath
8ea61af4fc Documentation showcasing proper importing; kinda sorta needed. 2012-06-25 05:08:16 +09:00
Ryan McGrath
068c504030 Merge branch 'requests_image_posting' (Pull Request #91)
- Fixes for README
- Re-added a bulkUserLookup method that warns for deprecation
- Merged in @michaelhelmick's work on media and oauth2 deprecation

Conflicts:
	setup.py
	twython/twython.py
2012-06-25 05:02:57 +09:00
Michael Helmick
32a83a6b79 2.1.0 Release
* .md just look cleaner
* Updating documentation to look clean, imo. :P
2012-05-16 18:39:31 -04:00
Renamed from README.markdown (Browse further)