{"action":"created","comment":{"url":"https://api.github.com/repos/Kinto/kinto.py/pulls/comments/50242749","id":50242749,"diff_hunk":"@@ -0,0 +1,230 @@\n+# -*- coding: utf-8 -*-\n+from __future__ import absolute_import\n+import argparse\n+import getpass\n+import logging\n+import os\n+from six import iteritems\n+\n+from kinto_client import Client\n+from kinto_client.exceptions import KintoException\n+\n+DEFAULT_KINTO_SERVER = 'http://localhost:8888/v1'\n+DEFAULT_USER_NAME = 'admin'","path":"kinto_client/importer.py","position":13,"original_position":13,"commit_id":"d25558bbbaceadf0fffaffc64a8b49fd8a197fb2","original_commit_id":"d25558bbbaceadf0fffaffc64a8b49fd8a197fb2","user":{"login":"almet","id":67073,"avatar_url":"https://avatars.githubusercontent.com/u/67073?v=3","gravatar_id":"","url":"https://api.github.com/users/almet","html_url":"https://github.com/almet","followers_url":"https://api.github.com/users/almet/followers","following_url":"https://api.github.com/users/almet/following{/other_user}","gists_url":"https://api.github.com/users/almet/gists{/gist_id}","starred_url":"https://api.github.com/users/almet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almet/subscriptions","organizations_url":"https://api.github.com/users/almet/orgs","repos_url":"https://api.github.com/users/almet/repos","events_url":"https://api.github.com/users/almet/events{/privacy}","received_events_url":"https://api.github.com/users/almet/received_events","type":"User","site_admin":false},"body":"These should be dropped.","created_at":"2016-01-20T11:23:38Z","updated_at":"2016-01-20T11:23:38Z","html_url":"https://github.com/Kinto/kinto.py/pull/34#discussion_r50242749","pull_request_url":"https://api.github.com/repos/Kinto/kinto.py/pulls/34","_links":{"self":{"href":"https://api.github.com/repos/Kinto/kinto.py/pulls/comments/50242749"},"html":{"href":"https://github.com/Kinto/kinto.py/pull/34#discussion_r50242749"},"pull_request":{"href":"https://api.github.com/repos/Kinto/kinto.py/pulls/34"}}},"pull_request":{"url":"https://api.github.com/repos/Kinto/kinto.py/pulls/34","id":56352145,"html_url":"https://github.com/Kinto/kinto.py/pull/34","diff_url":"https://github.com/Kinto/kinto.py/pull/34.diff","patch_url":"https://github.com/Kinto/kinto.py/pull/34.patch","issue_url":"https://api.github.com/repos/Kinto/kinto.py/issues/34","number":34,"state":"open","locked":false,"title":"Add CLI utilities to Kinto.py","user":{"login":"Natim","id":229453,"avatar_url":"https://avatars.githubusercontent.com/u/229453?v=3","gravatar_id":"","url":"https://api.github.com/users/Natim","html_url":"https://github.com/Natim","followers_url":"https://api.github.com/users/Natim/followers","following_url":"https://api.github.com/users/Natim/following{/other_user}","gists_url":"https://api.github.com/users/Natim/gists{/gist_id}","starred_url":"https://api.github.com/users/Natim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Natim/subscriptions","organizations_url":"https://api.github.com/users/Natim/orgs","repos_url":"https://api.github.com/users/Natim/repos","events_url":"https://api.github.com/users/Natim/events{/privacy}","received_events_url":"https://api.github.com/users/Natim/received_events","type":"User","site_admin":false},"body":"The final aims is to let people easily create sync between a collection and a local data store (usually built from files)","created_at":"2016-01-18T14:56:58Z","updated_at":"2016-01-20T11:23:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c8471a82a5097d1311fe942dc313bde87870602b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Kinto/kinto.py/pulls/34/commits","review_comments_url":"https://api.github.com/repos/Kinto/kinto.py/pulls/34/comments","review_comment_url":"https://api.github.com/repos/Kinto/kinto.py/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Kinto/kinto.py/issues/34/comments","statuses_url":"https://api.github.com/repos/Kinto/kinto.py/statuses/d25558bbbaceadf0fffaffc64a8b49fd8a197fb2","head":{"label":"Kinto:import_cli_utilities","ref":"import_cli_utilities","sha":"d25558bbbaceadf0fffaffc64a8b49fd8a197fb2","user":{"login":"Kinto","id":13413813,"avatar_url":"https://avatars.githubusercontent.com/u/13413813?v=3","gravatar_id":"","url":"https://api.github.com/users/Kinto","html_url":"https://github.com/Kinto","followers_url":"https://api.github.com/users/Kinto/followers","following_url":"https://api.github.com/users/Kinto/following{/other_user}","gists_url":"https://api.github.com/users/Kinto/gists{/gist_id}","starred_url":"https://api.github.com/users/Kinto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kinto/subscriptions","organizations_url":"https://api.github.com/users/Kinto/orgs","repos_url":"https://api.github.com/users/Kinto/repos","events_url":"https://api.github.com/users/Kinto/events{/privacy}","received_events_url":"https://api.github.com/users/Kinto/received_events","type":"Organization","site_admin":false},"repo":{"id":37655419,"name":"kinto.py","full_name":"Kinto/kinto.py","owner":{"login":"Kinto","id":13413813,"avatar_url":"https://avatars.githubusercontent.com/u/13413813?v=3","gravatar_id":"","url":"https://api.github.com/users/Kinto","html_url":"https://github.com/Kinto","followers_url":"https://api.github.com/users/Kinto/followers","following_url":"https://api.github.com/users/Kinto/following{/other_user}","gists_url":"https://api.github.com/users/Kinto/gists{/gist_id}","starred_url":"https://api.github.com/users/Kinto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kinto/subscriptions","organizations_url":"https://api.github.com/users/Kinto/orgs","repos_url":"https://api.github.com/users/Kinto/repos","events_url":"https://api.github.com/users/Kinto/events{/privacy}","received_events_url":"https://api.github.com/users/Kinto/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Kinto/kinto.py","description":"Python library to interact with Kinto","fork":false,"url":"https://api.github.com/repos/Kinto/kinto.py","forks_url":"https://api.github.com/repos/Kinto/kinto.py/forks","keys_url":"https://api.github.com/repos/Kinto/kinto.py/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kinto/kinto.py/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kinto/kinto.py/teams","hooks_url":"https://api.github.com/repos/Kinto/kinto.py/hooks","issue_events_url":"https://api.github.com/repos/Kinto/kinto.py/issues/events{/number}","events_url":"https://api.github.com/repos/Kinto/kinto.py/events","assignees_url":"https://api.github.com/repos/Kinto/kinto.py/assignees{/user}","branches_url":"https://api.github.com/repos/Kinto/kinto.py/branches{/branch}","tags_url":"https://api.github.com/repos/Kinto/kinto.py/tags","blobs_url":"https://api.github.com/repos/Kinto/kinto.py/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kinto/kinto.py/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kinto/kinto.py/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kinto/kinto.py/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kinto/kinto.py/statuses/{sha}","languages_url":"https://api.github.com/repos/Kinto/kinto.py/languages","stargazers_url":"https://api.github.com/repos/Kinto/kinto.py/stargazers","contributors_url":"https://api.github.com/repos/Kinto/kinto.py/contributors","subscribers_url":"https://api.github.com/repos/Kinto/kinto.py/subscribers","subscription_url":"https://api.github.com/repos/Kinto/kinto.py/subscription","commits_url":"https://api.github.com/repos/Kinto/kinto.py/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kinto/kinto.py/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kinto/kinto.py/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kinto/kinto.py/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kinto/kinto.py/contents/{+path}","compare_url":"https://api.github.com/repos/Kinto/kinto.py/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kinto/kinto.py/merges","archive_url":"https://api.github.com/repos/Kinto/kinto.py/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kinto/kinto.py/downloads","issues_url":"https://api.github.com/repos/Kinto/kinto.py/issues{/number}","pulls_url":"https://api.github.com/repos/Kinto/kinto.py/pulls{/number}","milestones_url":"https://api.github.com/repos/Kinto/kinto.py/milestones{/number}","notifications_url":"https://api.github.com/repos/Kinto/kinto.py/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kinto/kinto.py/labels{/name}","releases_url":"https://api.github.com/repos/Kinto/kinto.py/releases{/id}","created_at":"2015-06-18T11:24:34Z","updated_at":"2016-01-18T10:44:07Z","pushed_at":"2016-01-20T11:15:06Z","git_url":"git://github.com/Kinto/kinto.py.git","ssh_url":"git@github.com:Kinto/kinto.py.git","clone_url":"https://github.com/Kinto/kinto.py.git","svn_url":"https://github.com/Kinto/kinto.py","homepage":null,"size":135,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":4,"default_branch":"master"}},"base":{"label":"Kinto:master","ref":"master","sha":"afb6fbbf8c0d14a709d31ce74102dc238a4d4167","user":{"login":"Kinto","id":13413813,"avatar_url":"https://avatars.githubusercontent.com/u/13413813?v=3","gravatar_id":"","url":"https://api.github.com/users/Kinto","html_url":"https://github.com/Kinto","followers_url":"https://api.github.com/users/Kinto/followers","following_url":"https://api.github.com/users/Kinto/following{/other_user}","gists_url":"https://api.github.com/users/Kinto/gists{/gist_id}","starred_url":"https://api.github.com/users/Kinto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kinto/subscriptions","organizations_url":"https://api.github.com/users/Kinto/orgs","repos_url":"https://api.github.com/users/Kinto/repos","events_url":"https://api.github.com/users/Kinto/events{/privacy}","received_events_url":"https://api.github.com/users/Kinto/received_events","type":"Organization","site_admin":false},"repo":{"id":37655419,"name":"kinto.py","full_name":"Kinto/kinto.py","owner":{"login":"Kinto","id":13413813,"avatar_url":"https://avatars.githubusercontent.com/u/13413813?v=3","gravatar_id":"","url":"https://api.github.com/users/Kinto","html_url":"https://github.com/Kinto","followers_url":"https://api.github.com/users/Kinto/followers","following_url":"https://api.github.com/users/Kinto/following{/other_user}","gists_url":"https://api.github.com/users/Kinto/gists{/gist_id}","starred_url":"https://api.github.com/users/Kinto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kinto/subscriptions","organizations_url":"https://api.github.com/users/Kinto/orgs","repos_url":"https://api.github.com/users/Kinto/repos","events_url":"https://api.github.com/users/Kinto/events{/privacy}","received_events_url":"https://api.github.com/users/Kinto/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Kinto/kinto.py","description":"Python library to interact with Kinto","fork":false,"url":"https://api.github.com/repos/Kinto/kinto.py","forks_url":"https://api.github.com/repos/Kinto/kinto.py/forks","keys_url":"https://api.github.com/repos/Kinto/kinto.py/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kinto/kinto.py/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kinto/kinto.py/teams","hooks_url":"https://api.github.com/repos/Kinto/kinto.py/hooks","issue_events_url":"https://api.github.com/repos/Kinto/kinto.py/issues/events{/number}","events_url":"https://api.github.com/repos/Kinto/kinto.py/events","assignees_url":"https://api.github.com/repos/Kinto/kinto.py/assignees{/user}","branches_url":"https://api.github.com/repos/Kinto/kinto.py/branches{/branch}","tags_url":"https://api.github.com/repos/Kinto/kinto.py/tags","blobs_url":"https://api.github.com/repos/Kinto/kinto.py/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kinto/kinto.py/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kinto/kinto.py/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kinto/kinto.py/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kinto/kinto.py/statuses/{sha}","languages_url":"https://api.github.com/repos/Kinto/kinto.py/languages","stargazers_url":"https://api.github.com/repos/Kinto/kinto.py/stargazers","contributors_url":"https://api.github.com/repos/Kinto/kinto.py/contributors","subscribers_url":"https://api.github.com/repos/Kinto/kinto.py/subscribers","subscription_url":"https://api.github.com/repos/Kinto/kinto.py/subscription","commits_url":"https://api.github.com/repos/Kinto/kinto.py/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kinto/kinto.py/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kinto/kinto.py/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kinto/kinto.py/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kinto/kinto.py/contents/{+path}","compare_url":"https://api.github.com/repos/Kinto/kinto.py/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kinto/kinto.py/merges","archive_url":"https://api.github.com/repos/Kinto/kinto.py/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kinto/kinto.py/downloads","issues_url":"https://api.github.com/repos/Kinto/kinto.py/issues{/number}","pulls_url":"https://api.github.com/repos/Kinto/kinto.py/pulls{/number}","milestones_url":"https://api.github.com/repos/Kinto/kinto.py/milestones{/number}","notifications_url":"https://api.github.com/repos/Kinto/kinto.py/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kinto/kinto.py/labels{/name}","releases_url":"https://api.github.com/repos/Kinto/kinto.py/releases{/id}","created_at":"2015-06-18T11:24:34Z","updated_at":"2016-01-18T10:44:07Z","pushed_at":"2016-01-20T11:15:06Z","git_url":"git://github.com/Kinto/kinto.py.git","ssh_url":"git@github.com:Kinto/kinto.py.git","clone_url":"https://github.com/Kinto/kinto.py.git","svn_url":"https://github.com/Kinto/kinto.py","homepage":null,"size":135,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Kinto/kinto.py/pulls/34"},"html":{"href":"https://github.com/Kinto/kinto.py/pull/34"},"issue":{"href":"https://api.github.com/repos/Kinto/kinto.py/issues/34"},"comments":{"href":"https://api.github.com/repos/Kinto/kinto.py/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/Kinto/kinto.py/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/Kinto/kinto.py/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Kinto/kinto.py/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/Kinto/kinto.py/statuses/d25558bbbaceadf0fffaffc64a8b49fd8a197fb2"}}}}