{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/neolynx/cirrina/pulls/2","id":89699940,"html_url":"https://github.com/neolynx/cirrina/pull/2","diff_url":"https://github.com/neolynx/cirrina/pull/2.diff","patch_url":"https://github.com/neolynx/cirrina/pull/2.patch","issue_url":"https://api.github.com/repos/neolynx/cirrina/issues/2","number":2,"state":"open","locked":false,"title":"[WIP] Use decorators to register locations instead of class inheritance","user":{"login":"timofurrer","id":1008252,"avatar_url":"https://avatars.githubusercontent.com/u/1008252?v=3","gravatar_id":"","url":"https://api.github.com/users/timofurrer","html_url":"https://github.com/timofurrer","followers_url":"https://api.github.com/users/timofurrer/followers","following_url":"https://api.github.com/users/timofurrer/following{/other_user}","gists_url":"https://api.github.com/users/timofurrer/gists{/gist_id}","starred_url":"https://api.github.com/users/timofurrer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timofurrer/subscriptions","organizations_url":"https://api.github.com/users/timofurrer/orgs","repos_url":"https://api.github.com/users/timofurrer/repos","events_url":"https://api.github.com/users/timofurrer/events{/privacy}","received_events_url":"https://api.github.com/users/timofurrer/received_events","type":"User","site_admin":false},"body":"- [x] Register HTTP routes via decorators\r\n- [x] Register websocket callbacks via decorators\r\n- [x] Enable websockets and JRPC\r\n- [ ] Pass context object\r\n\r\n**(1) Register HTTP routes via decorators**\r\n\r\n```python\r\n@app.get('/')\r\nasync def index():\r\n    pass\r\n```\r\n\r\n**(2) Register websocket callbacks via decorators**\r\n\r\n```python\r\n@app.websocket_connect\r\nasync def on_websocket_connect():\r\n    pass\r\n```\r\n\r\n**(3) Enable websockets and JRPC**\r\n\r\n```python\r\napp.enable_websockets()\r\napp.enable_rpc('/jrpc')\r\n```\r\n\r\n**(4) Easy setup of cirrina app**\r\n\r\n```python\r\napp = cirrina.Server()\r\n\r\n@app.get('/')\r\nasync def index():\r\n    pass\r\n```","created_at":"2016-10-17T20:48:11Z","updated_at":"2016-10-17T20:48:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/neolynx/cirrina/pulls/2/commits","review_comments_url":"https://api.github.com/repos/neolynx/cirrina/pulls/2/comments","review_comment_url":"https://api.github.com/repos/neolynx/cirrina/pulls/comments{/number}","comments_url":"https://api.github.com/repos/neolynx/cirrina/issues/2/comments","statuses_url":"https://api.github.com/repos/neolynx/cirrina/statuses/4b998d68754f19bed2d5d0b2feda5292488fee25","head":{"label":"timofurrer:decorators","ref":"decorators","sha":"4b998d68754f19bed2d5d0b2feda5292488fee25","user":{"login":"timofurrer","id":1008252,"avatar_url":"https://avatars.githubusercontent.com/u/1008252?v=3","gravatar_id":"","url":"https://api.github.com/users/timofurrer","html_url":"https://github.com/timofurrer","followers_url":"https://api.github.com/users/timofurrer/followers","following_url":"https://api.github.com/users/timofurrer/following{/other_user}","gists_url":"https://api.github.com/users/timofurrer/gists{/gist_id}","starred_url":"https://api.github.com/users/timofurrer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timofurrer/subscriptions","organizations_url":"https://api.github.com/users/timofurrer/orgs","repos_url":"https://api.github.com/users/timofurrer/repos","events_url":"https://api.github.com/users/timofurrer/events{/privacy}","received_events_url":"https://api.github.com/users/timofurrer/received_events","type":"User","site_admin":false},"repo":{"id":71049077,"name":"cirrina","full_name":"timofurrer/cirrina","owner":{"login":"timofurrer","id":1008252,"avatar_url":"https://avatars.githubusercontent.com/u/1008252?v=3","gravatar_id":"","url":"https://api.github.com/users/timofurrer","html_url":"https://github.com/timofurrer","followers_url":"https://api.github.com/users/timofurrer/followers","following_url":"https://api.github.com/users/timofurrer/following{/other_user}","gists_url":"https://api.github.com/users/timofurrer/gists{/gist_id}","starred_url":"https://api.github.com/users/timofurrer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timofurrer/subscriptions","organizations_url":"https://api.github.com/users/timofurrer/orgs","repos_url":"https://api.github.com/users/timofurrer/repos","events_url":"https://api.github.com/users/timofurrer/events{/privacy}","received_events_url":"https://api.github.com/users/timofurrer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/timofurrer/cirrina","description":null,"fork":true,"url":"https://api.github.com/repos/timofurrer/cirrina","forks_url":"https://api.github.com/repos/timofurrer/cirrina/forks","keys_url":"https://api.github.com/repos/timofurrer/cirrina/keys{/key_id}","collaborators_url":"https://api.github.com/repos/timofurrer/cirrina/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/timofurrer/cirrina/teams","hooks_url":"https://api.github.com/repos/timofurrer/cirrina/hooks","issue_events_url":"https://api.github.com/repos/timofurrer/cirrina/issues/events{/number}","events_url":"https://api.github.com/repos/timofurrer/cirrina/events","assignees_url":"https://api.github.com/repos/timofurrer/cirrina/assignees{/user}","branches_url":"https://api.github.com/repos/timofurrer/cirrina/branches{/branch}","tags_url":"https://api.github.com/repos/timofurrer/cirrina/tags","blobs_url":"https://api.github.com/repos/timofurrer/cirrina/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/timofurrer/cirrina/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/timofurrer/cirrina/git/refs{/sha}","trees_url":"https://api.github.com/repos/timofurrer/cirrina/git/trees{/sha}","statuses_url":"https://api.github.com/repos/timofurrer/cirrina/statuses/{sha}","languages_url":"https://api.github.com/repos/timofurrer/cirrina/languages","stargazers_url":"https://api.github.com/repos/timofurrer/cirrina/stargazers","contributors_url":"https://api.github.com/repos/timofurrer/cirrina/contributors","subscribers_url":"https://api.github.com/repos/timofurrer/cirrina/subscribers","subscription_url":"https://api.github.com/repos/timofurrer/cirrina/subscription","commits_url":"https://api.github.com/repos/timofurrer/cirrina/commits{/sha}","git_commits_url":"https://api.github.com/repos/timofurrer/cirrina/git/commits{/sha}","comments_url":"https://api.github.com/repos/timofurrer/cirrina/comments{/number}","issue_comment_url":"https://api.github.com/repos/timofurrer/cirrina/issues/comments{/number}","contents_url":"https://api.github.com/repos/timofurrer/cirrina/contents/{+path}","compare_url":"https://api.github.com/repos/timofurrer/cirrina/compare/{base}...{head}","merges_url":"https://api.github.com/repos/timofurrer/cirrina/merges","archive_url":"https://api.github.com/repos/timofurrer/cirrina/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/timofurrer/cirrina/downloads","issues_url":"https://api.github.com/repos/timofurrer/cirrina/issues{/number}","pulls_url":"https://api.github.com/repos/timofurrer/cirrina/pulls{/number}","milestones_url":"https://api.github.com/repos/timofurrer/cirrina/milestones{/number}","notifications_url":"https://api.github.com/repos/timofurrer/cirrina/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/timofurrer/cirrina/labels{/name}","releases_url":"https://api.github.com/repos/timofurrer/cirrina/releases{/id}","deployments_url":"https://api.github.com/repos/timofurrer/cirrina/deployments","created_at":"2016-10-16T12:30:36Z","updated_at":"2016-10-16T12:30:37Z","pushed_at":"2016-10-17T20:43:01Z","git_url":"git://github.com/timofurrer/cirrina.git","ssh_url":"git@github.com:timofurrer/cirrina.git","clone_url":"https://github.com/timofurrer/cirrina.git","svn_url":"https://github.com/timofurrer/cirrina","homepage":null,"size":24,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"neolynx:master","ref":"master","sha":"8181bfbefe19db24c7cf1e105ff7d311b5ef0fbf","user":{"login":"neolynx","id":1234680,"avatar_url":"https://avatars.githubusercontent.com/u/1234680?v=3","gravatar_id":"","url":"https://api.github.com/users/neolynx","html_url":"https://github.com/neolynx","followers_url":"https://api.github.com/users/neolynx/followers","following_url":"https://api.github.com/users/neolynx/following{/other_user}","gists_url":"https://api.github.com/users/neolynx/gists{/gist_id}","starred_url":"https://api.github.com/users/neolynx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neolynx/subscriptions","organizations_url":"https://api.github.com/users/neolynx/orgs","repos_url":"https://api.github.com/users/neolynx/repos","events_url":"https://api.github.com/users/neolynx/events{/privacy}","received_events_url":"https://api.github.com/users/neolynx/received_events","type":"User","site_admin":false},"repo":{"id":71048656,"name":"cirrina","full_name":"neolynx/cirrina","owner":{"login":"neolynx","id":1234680,"avatar_url":"https://avatars.githubusercontent.com/u/1234680?v=3","gravatar_id":"","url":"https://api.github.com/users/neolynx","html_url":"https://github.com/neolynx","followers_url":"https://api.github.com/users/neolynx/followers","following_url":"https://api.github.com/users/neolynx/following{/other_user}","gists_url":"https://api.github.com/users/neolynx/gists{/gist_id}","starred_url":"https://api.github.com/users/neolynx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neolynx/subscriptions","organizations_url":"https://api.github.com/users/neolynx/orgs","repos_url":"https://api.github.com/users/neolynx/repos","events_url":"https://api.github.com/users/neolynx/events{/privacy}","received_events_url":"https://api.github.com/users/neolynx/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/neolynx/cirrina","description":null,"fork":false,"url":"https://api.github.com/repos/neolynx/cirrina","forks_url":"https://api.github.com/repos/neolynx/cirrina/forks","keys_url":"https://api.github.com/repos/neolynx/cirrina/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neolynx/cirrina/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neolynx/cirrina/teams","hooks_url":"https://api.github.com/repos/neolynx/cirrina/hooks","issue_events_url":"https://api.github.com/repos/neolynx/cirrina/issues/events{/number}","events_url":"https://api.github.com/repos/neolynx/cirrina/events","assignees_url":"https://api.github.com/repos/neolynx/cirrina/assignees{/user}","branches_url":"https://api.github.com/repos/neolynx/cirrina/branches{/branch}","tags_url":"https://api.github.com/repos/neolynx/cirrina/tags","blobs_url":"https://api.github.com/repos/neolynx/cirrina/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neolynx/cirrina/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neolynx/cirrina/git/refs{/sha}","trees_url":"https://api.github.com/repos/neolynx/cirrina/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neolynx/cirrina/statuses/{sha}","languages_url":"https://api.github.com/repos/neolynx/cirrina/languages","stargazers_url":"https://api.github.com/repos/neolynx/cirrina/stargazers","contributors_url":"https://api.github.com/repos/neolynx/cirrina/contributors","subscribers_url":"https://api.github.com/repos/neolynx/cirrina/subscribers","subscription_url":"https://api.github.com/repos/neolynx/cirrina/subscription","commits_url":"https://api.github.com/repos/neolynx/cirrina/commits{/sha}","git_commits_url":"https://api.github.com/repos/neolynx/cirrina/git/commits{/sha}","comments_url":"https://api.github.com/repos/neolynx/cirrina/comments{/number}","issue_comment_url":"https://api.github.com/repos/neolynx/cirrina/issues/comments{/number}","contents_url":"https://api.github.com/repos/neolynx/cirrina/contents/{+path}","compare_url":"https://api.github.com/repos/neolynx/cirrina/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neolynx/cirrina/merges","archive_url":"https://api.github.com/repos/neolynx/cirrina/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neolynx/cirrina/downloads","issues_url":"https://api.github.com/repos/neolynx/cirrina/issues{/number}","pulls_url":"https://api.github.com/repos/neolynx/cirrina/pulls{/number}","milestones_url":"https://api.github.com/repos/neolynx/cirrina/milestones{/number}","notifications_url":"https://api.github.com/repos/neolynx/cirrina/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neolynx/cirrina/labels{/name}","releases_url":"https://api.github.com/repos/neolynx/cirrina/releases{/id}","deployments_url":"https://api.github.com/repos/neolynx/cirrina/deployments","created_at":"2016-10-16T12:22:26Z","updated_at":"2016-10-16T12:25:16Z","pushed_at":"2016-10-17T20:48:11Z","git_url":"git://github.com/neolynx/cirrina.git","ssh_url":"git@github.com:neolynx/cirrina.git","clone_url":"https://github.com/neolynx/cirrina.git","svn_url":"https://github.com/neolynx/cirrina","homepage":null,"size":11,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/neolynx/cirrina/pulls/2"},"html":{"href":"https://github.com/neolynx/cirrina/pull/2"},"issue":{"href":"https://api.github.com/repos/neolynx/cirrina/issues/2"},"comments":{"href":"https://api.github.com/repos/neolynx/cirrina/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/neolynx/cirrina/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/neolynx/cirrina/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/neolynx/cirrina/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/neolynx/cirrina/statuses/4b998d68754f19bed2d5d0b2feda5292488fee25"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":167,"deletions":114,"changed_files":2}}
{"actor":{"display_login":"timofurrer"}}