WIP: 3.0.0 #210

Merged
michaelhelmick merged 43 commits from 3.0.0 into master 2013-06-17 10:51:49 -07:00
michaelhelmick commented 2013-05-30 15:17:19 -07:00 (Migrated from github.com)

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)
  • 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__
    • 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
  • Update test_twython.py docstrings per http://www.python.org/dev/peps/pep-0257/
  • Removed get_list_memberships, method is Twitter API 1.0 deprecated
  • Developers can now pass an array as a parameter to Twitter API methods and they will be automatically joined by a comma and converted to a string
  • endpoints.py now contains EndpointsMixin (rather than the previous api_table dict) for Twython, which enables Twython to use functions declared in the Mixin.
  • Added OAuth 2 authentication (Application Only) for when you want to make read-only calls to Twitter without having to go through the whole user authentication ritual (see docs for usage)
  • Added obtain_access_token to obtain an OAuth 2 Application Only read-only access token
  • construct_api_url now accepts keyword arguments like other Twython methods (e.g. instead of passing {'q': 'twitter', 'result_type': 'recent'}, pass q='twitter', result_type='recent')
  • Pass client_args to the Twython __init__ to manipulate request variables. client_args accepts a dictionary of keywords and values that accepted by requests (http://docs.python-requests.org/en/latest/api/#sessionapi) [ex. headers, proxies, verify(SSL verification)] and the "request" section directly below it.
  • Added get_application_rate_limit_status API method for returning the current rate limits for the specified source
  • Added invalidate_token API method which allows registed apps to revoke an access token presenting its client credentials
  • get_lastfunction_header now accepts a default_return_value parameter. This means that if you pass a second value (ex. Twython.get_lastfunction_header('x-rate-limit-remaining', 0)) and the value is not found, it returns your default value

To-do

  • Add file encoding to all files # -*- coding: utf-8 -*-
  • Add file description to all Twython api files
  • Remove deprecated variables fixes #185
  • Remove support for camelCase functions fixes #199
  • Substitute api_table for actual functions (EndpointsMixin) fixes #211
  • Better way to pass requests config fixes #213
## 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`) - 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__` - `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` - Update `test_twython.py` docstrings per http://www.python.org/dev/peps/pep-0257/ - Removed `get_list_memberships`, method is Twitter API 1.0 deprecated - Developers can now pass an array as a parameter to Twitter API methods and they will be automatically joined by a comma and converted to a string - `endpoints.py` now contains `EndpointsMixin` (rather than the previous `api_table` dict) for Twython, which enables Twython to use functions declared in the Mixin. - Added OAuth 2 authentication (Application Only) for when you want to make read-only calls to Twitter without having to go through the whole user authentication ritual (see docs for usage) - Added `obtain_access_token` to obtain an OAuth 2 Application Only read-only access token - `construct_api_url` now accepts keyword arguments like other Twython methods (e.g. instead of passing `{'q': 'twitter', 'result_type': 'recent'}`, pass `q='twitter', result_type='recent'`) - Pass `client_args` to the Twython `__init__` to manipulate request variables. `client_args` accepts a dictionary of keywords and values that accepted by `requests` (http://docs.python-requests.org/en/latest/api/#sessionapi) [ex. headers, proxies, verify(SSL verification)] and the "request" section directly below it. - Added `get_application_rate_limit_status` API method for returning the current rate limits for the specified source - Added `invalidate_token` API method which allows registed apps to revoke an access token presenting its client credentials - `get_lastfunction_header` now accepts a `default_return_value` parameter. This means that if you pass a second value (ex. `Twython.get_lastfunction_header('x-rate-limit-remaining', 0)`) and the value is not found, it returns your default value ### To-do - [x] Add file encoding to all files `# -*- coding: utf-8 -*-` - [x] Add file description to all Twython api files - [x] Remove deprecated variables fixes #185 - [x] Remove support for camelCase functions fixes #199 - [x] Substitute `api_table` for actual functions (`EndpointsMixin`) fixes #211 - [x] Better way to pass `requests` config fixes #213
coveralls commented 2013-06-11 07:54:10 -07:00 (Migrated from github.com)

Coverage Status

Changes Unknown when pulling 80c428992b on 3.0.0 into * on master*.

[![Coverage Status](https://coveralls.io/builds/70319/badge)](https://coveralls.io/builds/70319) Changes Unknown when pulling **80c428992b7858c240a949d93c3e2a0bbe2e39e3 on 3.0.0** into *\* on master**.
coveralls commented 2013-06-11 08:10:04 -07:00 (Migrated from github.com)

Coverage Status

Changes Unknown when pulling f74596c40b on 3.0.0 into * on master*.

[![Coverage Status](https://coveralls.io/builds/70333/badge)](https://coveralls.io/builds/70333) Changes Unknown when pulling **f74596c40bb396e39161d6f7e1d9ecfd0ad145fa on 3.0.0** into *\* on master**.
coveralls commented 2013-06-11 08:48:37 -07:00 (Migrated from github.com)

Coverage Status

Changes Unknown when pulling ea178df702 on 3.0.0 into * on master*.

[![Coverage Status](https://coveralls.io/builds/70376/badge)](https://coveralls.io/builds/70376) Changes Unknown when pulling **ea178df702759e2c1a81abba489226bc8256f0c4 on 3.0.0** into *\* on master**.
coveralls commented 2013-06-11 08:57:00 -07:00 (Migrated from github.com)

Coverage Status

Changes Unknown when pulling ae9b9e2cfc on 3.0.0 into * on master*.

[![Coverage Status](https://coveralls.io/builds/70389/badge)](https://coveralls.io/builds/70389) Changes Unknown when pulling **ae9b9e2cfc92191ff335397aa8ba75ce8d4ac1d5 on 3.0.0** into *\* on master**.
coveralls commented 2013-06-11 09:55:21 -07:00 (Migrated from github.com)

Coverage Status

Changes Unknown when pulling 8c41a3e9da on 3.0.0 into * on master*.

[![Coverage Status](https://coveralls.io/builds/70464/badge)](https://coveralls.io/builds/70464) Changes Unknown when pulling **8c41a3e9daadfd550ca83ed5224b8bbf7adb6507 on 3.0.0** into *\* on master**.
coveralls commented 2013-06-11 10:27:29 -07:00 (Migrated from github.com)

Coverage Status

Changes Unknown when pulling b9b7199cc6 on 3.0.0 into * on master*.

[![Coverage Status](https://coveralls.io/builds/70502/badge)](https://coveralls.io/builds/70502) Changes Unknown when pulling **b9b7199cc6fc1bbfd2dcc51fa5c0abeff45d8e7c on 3.0.0** into *\* on master**.
coveralls commented 2013-06-11 11:06:44 -07:00 (Migrated from github.com)

Coverage Status

Changes Unknown when pulling 53b930b75f on 3.0.0 into * on master*.

[![Coverage Status](https://coveralls.io/builds/70553/badge)](https://coveralls.io/builds/70553) Changes Unknown when pulling **53b930b75ffddff5919ae2768a9c5a2150034c01 on 3.0.0** into *\* on master**.
coveralls commented 2013-06-11 12:17:17 -07:00 (Migrated from github.com)

Coverage Status

Changes Unknown when pulling 9813a4c8f5 on 3.0.0 into * on master*.

[![Coverage Status](https://coveralls.io/builds/70646/badge)](https://coveralls.io/builds/70646) Changes Unknown when pulling **9813a4c8f5c06cd4066162f981cab39aac225ef6 on 3.0.0** into *\* on master**.
coveralls commented 2013-06-11 14:15:48 -07:00 (Migrated from github.com)

Coverage Status

Changes Unknown when pulling 478c139af2 on 3.0.0 into * on master*.

[![Coverage Status](https://coveralls.io/builds/70807/badge)](https://coveralls.io/builds/70807) Changes Unknown when pulling **478c139af22984cf1d90a9fed8227dbee1a5d0a0 on 3.0.0** into *\* on master**.
coveralls commented 2013-06-11 16:00:16 -07:00 (Migrated from github.com)

Coverage Status

Changes Unknown when pulling 693b8163b2 on 3.0.0 into * on master*.

[![Coverage Status](https://coveralls.io/builds/70924/badge)](https://coveralls.io/builds/70924) Changes Unknown when pulling **693b8163b25811994f6ccb42bebe12947ac8f1b8 on 3.0.0** into *\* on master**.
coveralls commented 2013-06-12 07:58:05 -07:00 (Migrated from github.com)

Coverage Status

Changes Unknown when pulling 7cab9d5dd1 on 3.0.0 into * on master*.

[![Coverage Status](https://coveralls.io/builds/71514/badge)](https://coveralls.io/builds/71514) Changes Unknown when pulling **7cab9d5dd18a540e998b5ab19da071220cf9c529 on 3.0.0** into *\* on master**.
coveralls commented 2013-06-13 10:33:59 -07:00 (Migrated from github.com)

Coverage Status

Changes Unknown when pulling 756eb9060e on 3.0.0 into * on master*.

[![Coverage Status](https://coveralls.io/builds/73030/badge)](https://coveralls.io/builds/73030) Changes Unknown when pulling **756eb9060e0014c084c7cb6d134378a450b3f376 on 3.0.0** into *\* on master**.
coveralls commented 2013-06-13 13:51:59 -07:00 (Migrated from github.com)

Coverage Status

Changes Unknown when pulling 2af2fc00de on 3.0.0 into * on master*.

[![Coverage Status](https://coveralls.io/builds/73291/badge)](https://coveralls.io/builds/73291) Changes Unknown when pulling **2af2fc00deeb5b37e58403c636a2f8d781c15577 on 3.0.0** into *\* on master**.
ryanmcgrath commented 2013-06-16 15:47:27 -07:00 (Migrated from github.com)

This all looks good to me, I think. I took a look at all the changes - nice on the .rst highlighting! Tempted to hit the merge button myself but I think you deserve the honors, haha... go for it when you're ready.

This all looks good to me, I think. I took a look at all the changes - nice on the `.rst` highlighting! Tempted to hit the merge button myself but I think you deserve the honors, haha... go for it when you're ready.
michaelhelmick commented 2013-06-16 16:08:09 -07:00 (Migrated from github.com)

I'm going to take another look over it tomorrow. Make sure everything that should be shipped will get shipped. Also, think we should get rid of the wiki?

Sent from my iPhone

On Jun 16, 2013, at 6:47 PM, Ryan McGrath notifications@github.com wrote:

This all looks good to me, I think. I took a look at all the changes - nice on the .rst highlighting! Tempted to hit the merge button myself but I think you deserve the honors, haha... go for it when you're ready.


Reply to this email directly or view it on GitHub.

I'm going to take another look over it tomorrow. Make sure everything that should be shipped will get shipped. Also, think we should get rid of the wiki? Sent from my iPhone > On Jun 16, 2013, at 6:47 PM, Ryan McGrath notifications@github.com wrote: > > This all looks good to me, I think. I took a look at all the changes - nice on the .rst highlighting! Tempted to hit the merge button myself but I think you deserve the honors, haha... go for it when you're ready. > > — > Reply to this email directly or view it on GitHub.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: code/twython#210
No description provided.