{"action":"closed","number":43,"pull_request":{"url":"https://api.github.com/repos/maas/python-libmaas/pulls/43","id":94362691,"html_url":"https://github.com/maas/python-libmaas/pull/43","diff_url":"https://github.com/maas/python-libmaas/pull/43.diff","patch_url":"https://github.com/maas/python-libmaas/pull/43.patch","issue_url":"https://api.github.com/repos/maas/python-libmaas/issues/43","number":43,"state":"closed","locked":false,"title":"Switch to asynchronous IO","user":{"login":"allenap","id":348564,"avatar_url":"https://avatars.githubusercontent.com/u/348564?v=3","gravatar_id":"","url":"https://api.github.com/users/allenap","html_url":"https://github.com/allenap","followers_url":"https://api.github.com/users/allenap/followers","following_url":"https://api.github.com/users/allenap/following{/other_user}","gists_url":"https://api.github.com/users/allenap/gists{/gist_id}","starred_url":"https://api.github.com/users/allenap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allenap/subscriptions","organizations_url":"https://api.github.com/users/allenap/orgs","repos_url":"https://api.github.com/users/allenap/repos","events_url":"https://api.github.com/users/allenap/events{/privacy}","received_events_url":"https://api.github.com/users/allenap/received_events","type":"User","site_admin":false},"body":"Switch to asyncio and aiohttp (with one small exception which can be done later).\r\n\r\nThis was fairly straightforward, except that asyncio has at least [one quirk](https://bugs.python.org/issue28725) which I consider a bug but which upstream consider to be part of the design. I'm new to this so I'm going to wait and see.\r\n\r\nThe one special thing that this branch does is add the `Asynchronous` metaclass. This ensures that all co-routine methods (which means methods defined with `async def`) in a class are wrapped such that they'll work as normal within the event-loop but block when called from outside. This means that the interactive experience of using the higher-level \"origin\" (aka \"viscera\") API remains the same.","created_at":"2016-11-18T13:35:49Z","updated_at":"2016-11-18T14:24:37Z","closed_at":"2016-11-18T14:24:37Z","merged_at":"2016-11-18T14:24:37Z","merge_commit_sha":"cadc533902328a8d993b1b882c6a01706a13c9b7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/maas/python-libmaas/pulls/43/commits","review_comments_url":"https://api.github.com/repos/maas/python-libmaas/pulls/43/comments","review_comment_url":"https://api.github.com/repos/maas/python-libmaas/pulls/comments{/number}","comments_url":"https://api.github.com/repos/maas/python-libmaas/issues/43/comments","statuses_url":"https://api.github.com/repos/maas/python-libmaas/statuses/60e23f316bedb1f361316a958dbd73db2df324d3","head":{"label":"allenap:async-or-bust","ref":"async-or-bust","sha":"60e23f316bedb1f361316a958dbd73db2df324d3","user":{"login":"allenap","id":348564,"avatar_url":"https://avatars.githubusercontent.com/u/348564?v=3","gravatar_id":"","url":"https://api.github.com/users/allenap","html_url":"https://github.com/allenap","followers_url":"https://api.github.com/users/allenap/followers","following_url":"https://api.github.com/users/allenap/following{/other_user}","gists_url":"https://api.github.com/users/allenap/gists{/gist_id}","starred_url":"https://api.github.com/users/allenap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allenap/subscriptions","organizations_url":"https://api.github.com/users/allenap/orgs","repos_url":"https://api.github.com/users/allenap/repos","events_url":"https://api.github.com/users/allenap/events{/privacy}","received_events_url":"https://api.github.com/users/allenap/received_events","type":"User","site_admin":false},"repo":{"id":73938356,"name":"python-libmaas","full_name":"allenap/python-libmaas","owner":{"login":"allenap","id":348564,"avatar_url":"https://avatars.githubusercontent.com/u/348564?v=3","gravatar_id":"","url":"https://api.github.com/users/allenap","html_url":"https://github.com/allenap","followers_url":"https://api.github.com/users/allenap/followers","following_url":"https://api.github.com/users/allenap/following{/other_user}","gists_url":"https://api.github.com/users/allenap/gists{/gist_id}","starred_url":"https://api.github.com/users/allenap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allenap/subscriptions","organizations_url":"https://api.github.com/users/allenap/orgs","repos_url":"https://api.github.com/users/allenap/repos","events_url":"https://api.github.com/users/allenap/events{/privacy}","received_events_url":"https://api.github.com/users/allenap/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/allenap/python-libmaas","description":"Python client API library specially adapted to work with MAAS","fork":true,"url":"https://api.github.com/repos/allenap/python-libmaas","forks_url":"https://api.github.com/repos/allenap/python-libmaas/forks","keys_url":"https://api.github.com/repos/allenap/python-libmaas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/allenap/python-libmaas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/allenap/python-libmaas/teams","hooks_url":"https://api.github.com/repos/allenap/python-libmaas/hooks","issue_events_url":"https://api.github.com/repos/allenap/python-libmaas/issues/events{/number}","events_url":"https://api.github.com/repos/allenap/python-libmaas/events","assignees_url":"https://api.github.com/repos/allenap/python-libmaas/assignees{/user}","branches_url":"https://api.github.com/repos/allenap/python-libmaas/branches{/branch}","tags_url":"https://api.github.com/repos/allenap/python-libmaas/tags","blobs_url":"https://api.github.com/repos/allenap/python-libmaas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/allenap/python-libmaas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/allenap/python-libmaas/git/refs{/sha}","trees_url":"https://api.github.com/repos/allenap/python-libmaas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/allenap/python-libmaas/statuses/{sha}","languages_url":"https://api.github.com/repos/allenap/python-libmaas/languages","stargazers_url":"https://api.github.com/repos/allenap/python-libmaas/stargazers","contributors_url":"https://api.github.com/repos/allenap/python-libmaas/contributors","subscribers_url":"https://api.github.com/repos/allenap/python-libmaas/subscribers","subscription_url":"https://api.github.com/repos/allenap/python-libmaas/subscription","commits_url":"https://api.github.com/repos/allenap/python-libmaas/commits{/sha}","git_commits_url":"https://api.github.com/repos/allenap/python-libmaas/git/commits{/sha}","comments_url":"https://api.github.com/repos/allenap/python-libmaas/comments{/number}","issue_comment_url":"https://api.github.com/repos/allenap/python-libmaas/issues/comments{/number}","contents_url":"https://api.github.com/repos/allenap/python-libmaas/contents/{+path}","compare_url":"https://api.github.com/repos/allenap/python-libmaas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/allenap/python-libmaas/merges","archive_url":"https://api.github.com/repos/allenap/python-libmaas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/allenap/python-libmaas/downloads","issues_url":"https://api.github.com/repos/allenap/python-libmaas/issues{/number}","pulls_url":"https://api.github.com/repos/allenap/python-libmaas/pulls{/number}","milestones_url":"https://api.github.com/repos/allenap/python-libmaas/milestones{/number}","notifications_url":"https://api.github.com/repos/allenap/python-libmaas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/allenap/python-libmaas/labels{/name}","releases_url":"https://api.github.com/repos/allenap/python-libmaas/releases{/id}","deployments_url":"https://api.github.com/repos/allenap/python-libmaas/deployments","created_at":"2016-11-16T16:23:36Z","updated_at":"2016-11-16T16:23:38Z","pushed_at":"2016-11-18T13:52:56Z","git_url":"git://github.com/allenap/python-libmaas.git","ssh_url":"git@github.com:allenap/python-libmaas.git","clone_url":"https://github.com/allenap/python-libmaas.git","svn_url":"https://github.com/allenap/python-libmaas","homepage":"","size":836,"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":"maas:master","ref":"master","sha":"cb8b9324ca5b4f02792c734efe36ed1000a41795","user":{"login":"maas","id":23200538,"avatar_url":"https://avatars.githubusercontent.com/u/23200538?v=3","gravatar_id":"","url":"https://api.github.com/users/maas","html_url":"https://github.com/maas","followers_url":"https://api.github.com/users/maas/followers","following_url":"https://api.github.com/users/maas/following{/other_user}","gists_url":"https://api.github.com/users/maas/gists{/gist_id}","starred_url":"https://api.github.com/users/maas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maas/subscriptions","organizations_url":"https://api.github.com/users/maas/orgs","repos_url":"https://api.github.com/users/maas/repos","events_url":"https://api.github.com/users/maas/events{/privacy}","received_events_url":"https://api.github.com/users/maas/received_events","type":"Organization","site_admin":false},"repo":{"id":42955758,"name":"python-libmaas","full_name":"maas/python-libmaas","owner":{"login":"maas","id":23200538,"avatar_url":"https://avatars.githubusercontent.com/u/23200538?v=3","gravatar_id":"","url":"https://api.github.com/users/maas","html_url":"https://github.com/maas","followers_url":"https://api.github.com/users/maas/followers","following_url":"https://api.github.com/users/maas/following{/other_user}","gists_url":"https://api.github.com/users/maas/gists{/gist_id}","starred_url":"https://api.github.com/users/maas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maas/subscriptions","organizations_url":"https://api.github.com/users/maas/orgs","repos_url":"https://api.github.com/users/maas/repos","events_url":"https://api.github.com/users/maas/events{/privacy}","received_events_url":"https://api.github.com/users/maas/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/maas/python-libmaas","description":"Python client API library specially adapted to work with MAAS","fork":false,"url":"https://api.github.com/repos/maas/python-libmaas","forks_url":"https://api.github.com/repos/maas/python-libmaas/forks","keys_url":"https://api.github.com/repos/maas/python-libmaas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maas/python-libmaas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maas/python-libmaas/teams","hooks_url":"https://api.github.com/repos/maas/python-libmaas/hooks","issue_events_url":"https://api.github.com/repos/maas/python-libmaas/issues/events{/number}","events_url":"https://api.github.com/repos/maas/python-libmaas/events","assignees_url":"https://api.github.com/repos/maas/python-libmaas/assignees{/user}","branches_url":"https://api.github.com/repos/maas/python-libmaas/branches{/branch}","tags_url":"https://api.github.com/repos/maas/python-libmaas/tags","blobs_url":"https://api.github.com/repos/maas/python-libmaas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maas/python-libmaas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maas/python-libmaas/git/refs{/sha}","trees_url":"https://api.github.com/repos/maas/python-libmaas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maas/python-libmaas/statuses/{sha}","languages_url":"https://api.github.com/repos/maas/python-libmaas/languages","stargazers_url":"https://api.github.com/repos/maas/python-libmaas/stargazers","contributors_url":"https://api.github.com/repos/maas/python-libmaas/contributors","subscribers_url":"https://api.github.com/repos/maas/python-libmaas/subscribers","subscription_url":"https://api.github.com/repos/maas/python-libmaas/subscription","commits_url":"https://api.github.com/repos/maas/python-libmaas/commits{/sha}","git_commits_url":"https://api.github.com/repos/maas/python-libmaas/git/commits{/sha}","comments_url":"https://api.github.com/repos/maas/python-libmaas/comments{/number}","issue_comment_url":"https://api.github.com/repos/maas/python-libmaas/issues/comments{/number}","contents_url":"https://api.github.com/repos/maas/python-libmaas/contents/{+path}","compare_url":"https://api.github.com/repos/maas/python-libmaas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maas/python-libmaas/merges","archive_url":"https://api.github.com/repos/maas/python-libmaas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maas/python-libmaas/downloads","issues_url":"https://api.github.com/repos/maas/python-libmaas/issues{/number}","pulls_url":"https://api.github.com/repos/maas/python-libmaas/pulls{/number}","milestones_url":"https://api.github.com/repos/maas/python-libmaas/milestones{/number}","notifications_url":"https://api.github.com/repos/maas/python-libmaas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maas/python-libmaas/labels{/name}","releases_url":"https://api.github.com/repos/maas/python-libmaas/releases{/id}","deployments_url":"https://api.github.com/repos/maas/python-libmaas/deployments","created_at":"2015-09-22T19:22:42Z","updated_at":"2016-11-02T13:45:47Z","pushed_at":"2016-11-18T14:24:37Z","git_url":"git://github.com/maas/python-libmaas.git","ssh_url":"git@github.com:maas/python-libmaas.git","clone_url":"https://github.com/maas/python-libmaas.git","svn_url":"https://github.com/maas/python-libmaas","homepage":"","size":820,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4,"mirror_url":null,"open_issues_count":0,"forks":4,"open_issues":0,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/maas/python-libmaas/pulls/43"},"html":{"href":"https://github.com/maas/python-libmaas/pull/43"},"issue":{"href":"https://api.github.com/repos/maas/python-libmaas/issues/43"},"comments":{"href":"https://api.github.com/repos/maas/python-libmaas/issues/43/comments"},"review_comments":{"href":"https://api.github.com/repos/maas/python-libmaas/pulls/43/comments"},"review_comment":{"href":"https://api.github.com/repos/maas/python-libmaas/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/maas/python-libmaas/pulls/43/commits"},"statuses":{"href":"https://api.github.com/repos/maas/python-libmaas/statuses/60e23f316bedb1f361316a958dbd73db2df324d3"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"blakerouse","id":3869671,"avatar_url":"https://avatars.githubusercontent.com/u/3869671?v=3","gravatar_id":"","url":"https://api.github.com/users/blakerouse","html_url":"https://github.com/blakerouse","followers_url":"https://api.github.com/users/blakerouse/followers","following_url":"https://api.github.com/users/blakerouse/following{/other_user}","gists_url":"https://api.github.com/users/blakerouse/gists{/gist_id}","starred_url":"https://api.github.com/users/blakerouse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakerouse/subscriptions","organizations_url":"https://api.github.com/users/blakerouse/orgs","repos_url":"https://api.github.com/users/blakerouse/repos","events_url":"https://api.github.com/users/blakerouse/events{/privacy}","received_events_url":"https://api.github.com/users/blakerouse/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":13,"additions":697,"deletions":426,"changed_files":39}}
{"actor":{"display_login":"blakerouse"}}