kennethreitz/python-github3 — Issue #5: New design
Author: copitux
Created: 2011-11-01 12:13:28+00:00
State: open

What do you think about this design?

I tried to decouple requests in handlers for each section of github API, and divide in auth/anom. Then dispatch model's requests to its handlers

Also I added new functionality in mapping from Json to models to support self class and list_map

### Example Handlers

```python
gh = github3.no_auth()
handler = gh.user_handler('copitux')

copitux = handler.get()
users_list = list(copitux.get_followers()) # Call it behind the scenes handler.get_followers()
```
### Example of self mapping

```python
my_repo = gh._get_resource('repos/copitux/python-github3', github3.models.repos.Repo)
print(my_repo) #
print(my_repo.parent) #

PD: Of course it need more work
```