Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complete overhaul of python-twitch #10

Merged
merged 8 commits into from
Oct 1, 2015
Merged

Complete overhaul of python-twitch #10

merged 8 commits into from
Oct 1, 2015

Conversation

ingwinlu
Copy link
Owner

  • split up module
  • flake8 compatibility
  • model closer to twitch api documentation ( more rest like )
    • redo url module, needs to be able to easily build all rest api calls
    • v3 api, did not implement auth or put/delete stuff yet
    • v2 api, delay, not needed asap
    • usher api
  • redo logging
  • all internal data should be unicode, postponed
  • provide updated and old api via deprecation layer, dropped due to time constrains, old versions are still available as tags
  • redo m3u8 parsing via regex
  • cleanup unused stuff

create issues for the following things:

  • all internal data should be unicode
  • implement v2 api
  • implement authentication
  • implement put/delete functions
  • implement result data abstraction classes for easier navigation
    • twitch.api.teams() would list the first 25 teams, via twitch.api.teams.next() and twitch.api.teams.prev() jump to next or prev listing, since the old api partly substituted resultsets, will need to maybe add a transform functionality as well

@ingwinlu ingwinlu changed the title rework module [in progress] rework module Sep 26, 2015
@ingwinlu ingwinlu changed the title [in progress] rework module [in progress] rework Sep 26, 2015
@ingwinlu ingwinlu force-pushed the split_init branch 17 times, most recently from 506e9a3 to 1b11fa4 Compare October 1, 2015 18:18
* add flake8 config
* add flake8 env section
* add flake8 to travis build's
* module v2 and v3 api's as modules
* expand scraper to be able to handle headers and parameters
* implement v3
  * channels
  * streams
  * users
  * videos
  * games
  * search
* stub v2 module
* implement usher
  * live
  * vod
  * hidden_api for tokens
  * hidden_api for videos
* add ResourceUnavailableException
  All Queries now throw an ResourceUnavailableException
  when a HttpException is triggered by the underlaying
  download function.
* replace old M3U parser with a regex parser
Custom Exceptions were still a leftover from before the library
breakout. Since Exception handling is application territory they have
been removed.

A custom ResourceUnavailable Exception got introduced during the rework
that is called when a Query execution fails with a str() representation
of that Query.
Most Keys in the keys module are not needed anymore as we don't care
about value extraction anymore.

The library should stay a enabler, the keys are for self benefit only.
With the introduction of DAO classes most of those keys might need to be
reintroduced.
@ingwinlu ingwinlu force-pushed the split_init branch 2 times, most recently from dd64c67 to 23892d7 Compare October 1, 2015 19:38
@ingwinlu ingwinlu changed the title [in progress] rework Complete overhaul of python-twitch Oct 1, 2015
ingwinlu added a commit that referenced this pull request Oct 1, 2015
Complete overhaul of python-twitch
@ingwinlu ingwinlu merged commit e1ca309 into master Oct 1, 2015
@ingwinlu ingwinlu deleted the split_init branch October 2, 2015 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant