{"action":"created","comment":{"url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/pulls/comments/244942160","pull_request_review_id":188938455,"id":244942160,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NDk0MjE2MA==","diff_hunk":"@@ -0,0 +1,194 @@\n+import logging\n+import os\n+from typing import Any, Dict\n+\n+from cognite_logger import cognite_logger\n+\n+from cognite.client._api_client import APIClient\n+from cognite.client.experimental import ExperimentalClient\n+from cognite.client.stable.assets import AssetsClient\n+from cognite.client.stable.datapoints import DatapointsClient\n+from cognite.client.stable.events import EventsClient\n+from cognite.client.stable.files import FilesClient\n+from cognite.client.stable.login import LoginClient\n+from cognite.client.stable.raw import RawClient\n+from cognite.client.stable.tagmatching import TagMatchingClient\n+from cognite.client.stable.time_series import TimeSeriesClient\n+\n+DEFAULT_BASE_URL = \"https://api.cognitedata.com\"\n+DEFAULT_NUM_OF_RETRIES = 5\n+DEFAULT_NUM_OF_WORKERS = 10\n+DEFAULT_LOG_LEVEL = \"DEBUG\"","path":"cognite/client/cognite_client.py","position":21,"original_position":21,"commit_id":"2679a3417130ae75394708ee95ee18793f11c292","original_commit_id":"12ac58201f49b90bb38070e05e01cf9ad6992b60","user":{"login":"NilsBarlaug-cognite","id":40356634,"node_id":"MDQ6VXNlcjQwMzU2NjM0","avatar_url":"https://avatars0.githubusercontent.com/u/40356634?v=4","gravatar_id":"","url":"https://api.github.com/users/NilsBarlaug-cognite","html_url":"https://github.com/NilsBarlaug-cognite","followers_url":"https://api.github.com/users/NilsBarlaug-cognite/followers","following_url":"https://api.github.com/users/NilsBarlaug-cognite/following{/other_user}","gists_url":"https://api.github.com/users/NilsBarlaug-cognite/gists{/gist_id}","starred_url":"https://api.github.com/users/NilsBarlaug-cognite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NilsBarlaug-cognite/subscriptions","organizations_url":"https://api.github.com/users/NilsBarlaug-cognite/orgs","repos_url":"https://api.github.com/users/NilsBarlaug-cognite/repos","events_url":"https://api.github.com/users/NilsBarlaug-cognite/events{/privacy}","received_events_url":"https://api.github.com/users/NilsBarlaug-cognite/received_events","type":"User","site_admin":false},"body":"Ah, okey, sorry - just assumed this was displayed somehow to the user.","created_at":"2019-01-03T09:20:50Z","updated_at":"2019-01-03T09:20:50Z","html_url":"https://github.com/cognitedata/cognite-sdk-python/pull/175#discussion_r244942160","pull_request_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/pulls/175","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/cognitedata/cognite-sdk-python/pulls/comments/244942160"},"html":{"href":"https://github.com/cognitedata/cognite-sdk-python/pull/175#discussion_r244942160"},"pull_request":{"href":"https://api.github.com/repos/cognitedata/cognite-sdk-python/pulls/175"}},"in_reply_to_id":244686155},"pull_request":{"url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/pulls/175","id":240273477,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQwMjczNDc3","html_url":"https://github.com/cognitedata/cognite-sdk-python/pull/175","diff_url":"https://github.com/cognitedata/cognite-sdk-python/pull/175.diff","patch_url":"https://github.com/cognitedata/cognite-sdk-python/pull/175.patch","issue_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/issues/175","number":175,"state":"open","locked":false,"title":"V0.12.0","user":{"login":"erlendcognite","id":31001374,"node_id":"MDQ6VXNlcjMxMDAxMzc0","avatar_url":"https://avatars3.githubusercontent.com/u/31001374?v=4","gravatar_id":"","url":"https://api.github.com/users/erlendcognite","html_url":"https://github.com/erlendcognite","followers_url":"https://api.github.com/users/erlendcognite/followers","following_url":"https://api.github.com/users/erlendcognite/following{/other_user}","gists_url":"https://api.github.com/users/erlendcognite/gists{/gist_id}","starred_url":"https://api.github.com/users/erlendcognite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erlendcognite/subscriptions","organizations_url":"https://api.github.com/users/erlendcognite/orgs","repos_url":"https://api.github.com/users/erlendcognite/repos","events_url":"https://api.github.com/users/erlendcognite/events{/privacy}","received_events_url":"https://api.github.com/users/erlendcognite/received_events","type":"User","site_admin":false},"body":"**Client**\r\n- Introduced CogniteClient.  Class with all api call methods made available through its instantiation. Ensures thread-safety. All sub clients (specific to APIs, e.g. files, events, timeseries, datapoints) inherit from APIClient class which give them access to sending requests through _self_.\r\n- Expose http verbs with plumbing and error handling taken care of through CogniteClient to make it easier for users to hit endpoints which are not covered by the sdk.\r\n- API Version is no longer exposed directly to user. 0.5 is default and some 0.6 features are exposed through an **experimental** sub client.\r\n- Changed CogniteDataObject to CogniteResponse and added a string representation for pretty printing responses.\r\n- Removed .to_ndarray() support for response objects\r\n- Logging now defaults to log to DEBUG but log_level can be configured through CogniteClient object.\r\n\r\n**Restructuring**\r\n- All configuration is moved from config module to CogniteClient\r\n- Everything requests related is moved to APIClient\r\n- Preprocessing module removed\r\n- Removed everything related to CLI which was abandoned\r\n- _constants module removed\r\n- config module removed\r\n\r\n**Documentation**\r\n- Improved overall documentation\r\n- Added some simple examples for all queries.\r\n\r\n**Tests**\r\n- Tests no longer dependent on time series stored in mltest tenant\r\n\r\n**Data Transfer Service**\r\n- Updated to use new client interface\r\n","created_at":"2018-12-20T19:12:02Z","updated_at":"2019-01-03T09:20:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"71eea29bf274148120e6009c1d708de1ccb7d566","assignee":null,"assignees":[],"requested_reviewers":[{"login":"NilsBarlaug-cognite","id":40356634,"node_id":"MDQ6VXNlcjQwMzU2NjM0","avatar_url":"https://avatars0.githubusercontent.com/u/40356634?v=4","gravatar_id":"","url":"https://api.github.com/users/NilsBarlaug-cognite","html_url":"https://github.com/NilsBarlaug-cognite","followers_url":"https://api.github.com/users/NilsBarlaug-cognite/followers","following_url":"https://api.github.com/users/NilsBarlaug-cognite/following{/other_user}","gists_url":"https://api.github.com/users/NilsBarlaug-cognite/gists{/gist_id}","starred_url":"https://api.github.com/users/NilsBarlaug-cognite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NilsBarlaug-cognite/subscriptions","organizations_url":"https://api.github.com/users/NilsBarlaug-cognite/orgs","repos_url":"https://api.github.com/users/NilsBarlaug-cognite/repos","events_url":"https://api.github.com/users/NilsBarlaug-cognite/events{/privacy}","received_events_url":"https://api.github.com/users/NilsBarlaug-cognite/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/pulls/175/commits","review_comments_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/pulls/175/comments","review_comment_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/issues/175/comments","statuses_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/statuses/2679a3417130ae75394708ee95ee18793f11c292","head":{"label":"cognitedata:new-sdk","ref":"new-sdk","sha":"2679a3417130ae75394708ee95ee18793f11c292","user":{"login":"cognitedata","id":25435133,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1NDM1MTMz","avatar_url":"https://avatars0.githubusercontent.com/u/25435133?v=4","gravatar_id":"","url":"https://api.github.com/users/cognitedata","html_url":"https://github.com/cognitedata","followers_url":"https://api.github.com/users/cognitedata/followers","following_url":"https://api.github.com/users/cognitedata/following{/other_user}","gists_url":"https://api.github.com/users/cognitedata/gists{/gist_id}","starred_url":"https://api.github.com/users/cognitedata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cognitedata/subscriptions","organizations_url":"https://api.github.com/users/cognitedata/orgs","repos_url":"https://api.github.com/users/cognitedata/repos","events_url":"https://api.github.com/users/cognitedata/events{/privacy}","received_events_url":"https://api.github.com/users/cognitedata/received_events","type":"Organization","site_admin":false},"repo":{"id":114663959,"node_id":"MDEwOlJlcG9zaXRvcnkxMTQ2NjM5NTk=","name":"cognite-sdk-python","full_name":"cognitedata/cognite-sdk-python","private":false,"owner":{"login":"cognitedata","id":25435133,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1NDM1MTMz","avatar_url":"https://avatars0.githubusercontent.com/u/25435133?v=4","gravatar_id":"","url":"https://api.github.com/users/cognitedata","html_url":"https://github.com/cognitedata","followers_url":"https://api.github.com/users/cognitedata/followers","following_url":"https://api.github.com/users/cognitedata/following{/other_user}","gists_url":"https://api.github.com/users/cognitedata/gists{/gist_id}","starred_url":"https://api.github.com/users/cognitedata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cognitedata/subscriptions","organizations_url":"https://api.github.com/users/cognitedata/orgs","repos_url":"https://api.github.com/users/cognitedata/repos","events_url":"https://api.github.com/users/cognitedata/events{/privacy}","received_events_url":"https://api.github.com/users/cognitedata/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/cognitedata/cognite-sdk-python","description":null,"fork":false,"url":"https://api.github.com/repos/cognitedata/cognite-sdk-python","forks_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/forks","keys_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/teams","hooks_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/hooks","issue_events_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/issues/events{/number}","events_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/events","assignees_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/assignees{/user}","branches_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/branches{/branch}","tags_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/tags","blobs_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/statuses/{sha}","languages_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/languages","stargazers_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/stargazers","contributors_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/contributors","subscribers_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/subscribers","subscription_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/subscription","commits_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/contents/{+path}","compare_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/merges","archive_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/downloads","issues_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/issues{/number}","pulls_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/pulls{/number}","milestones_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/milestones{/number}","notifications_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/labels{/name}","releases_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/releases{/id}","deployments_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/deployments","created_at":"2017-12-18T16:36:25Z","updated_at":"2018-12-27T15:19:47Z","pushed_at":"2019-01-03T08:46:12Z","git_url":"git://github.com/cognitedata/cognite-sdk-python.git","ssh_url":"git@github.com:cognitedata/cognite-sdk-python.git","clone_url":"https://github.com/cognitedata/cognite-sdk-python.git","svn_url":"https://github.com/cognitedata/cognite-sdk-python","homepage":null,"size":12846,"stargazers_count":9,"watchers_count":9,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":3,"open_issues":8,"watchers":9,"default_branch":"master"}},"base":{"label":"cognitedata:master","ref":"master","sha":"f341aa7e87638241de9235a254b1cefabaa75f2c","user":{"login":"cognitedata","id":25435133,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1NDM1MTMz","avatar_url":"https://avatars0.githubusercontent.com/u/25435133?v=4","gravatar_id":"","url":"https://api.github.com/users/cognitedata","html_url":"https://github.com/cognitedata","followers_url":"https://api.github.com/users/cognitedata/followers","following_url":"https://api.github.com/users/cognitedata/following{/other_user}","gists_url":"https://api.github.com/users/cognitedata/gists{/gist_id}","starred_url":"https://api.github.com/users/cognitedata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cognitedata/subscriptions","organizations_url":"https://api.github.com/users/cognitedata/orgs","repos_url":"https://api.github.com/users/cognitedata/repos","events_url":"https://api.github.com/users/cognitedata/events{/privacy}","received_events_url":"https://api.github.com/users/cognitedata/received_events","type":"Organization","site_admin":false},"repo":{"id":114663959,"node_id":"MDEwOlJlcG9zaXRvcnkxMTQ2NjM5NTk=","name":"cognite-sdk-python","full_name":"cognitedata/cognite-sdk-python","private":false,"owner":{"login":"cognitedata","id":25435133,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1NDM1MTMz","avatar_url":"https://avatars0.githubusercontent.com/u/25435133?v=4","gravatar_id":"","url":"https://api.github.com/users/cognitedata","html_url":"https://github.com/cognitedata","followers_url":"https://api.github.com/users/cognitedata/followers","following_url":"https://api.github.com/users/cognitedata/following{/other_user}","gists_url":"https://api.github.com/users/cognitedata/gists{/gist_id}","starred_url":"https://api.github.com/users/cognitedata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cognitedata/subscriptions","organizations_url":"https://api.github.com/users/cognitedata/orgs","repos_url":"https://api.github.com/users/cognitedata/repos","events_url":"https://api.github.com/users/cognitedata/events{/privacy}","received_events_url":"https://api.github.com/users/cognitedata/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/cognitedata/cognite-sdk-python","description":null,"fork":false,"url":"https://api.github.com/repos/cognitedata/cognite-sdk-python","forks_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/forks","keys_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/teams","hooks_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/hooks","issue_events_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/issues/events{/number}","events_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/events","assignees_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/assignees{/user}","branches_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/branches{/branch}","tags_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/tags","blobs_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/statuses/{sha}","languages_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/languages","stargazers_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/stargazers","contributors_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/contributors","subscribers_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/subscribers","subscription_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/subscription","commits_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/contents/{+path}","compare_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/merges","archive_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/downloads","issues_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/issues{/number}","pulls_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/pulls{/number}","milestones_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/milestones{/number}","notifications_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/labels{/name}","releases_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/releases{/id}","deployments_url":"https://api.github.com/repos/cognitedata/cognite-sdk-python/deployments","created_at":"2017-12-18T16:36:25Z","updated_at":"2018-12-27T15:19:47Z","pushed_at":"2019-01-03T08:46:12Z","git_url":"git://github.com/cognitedata/cognite-sdk-python.git","ssh_url":"git@github.com:cognitedata/cognite-sdk-python.git","clone_url":"https://github.com/cognitedata/cognite-sdk-python.git","svn_url":"https://github.com/cognitedata/cognite-sdk-python","homepage":null,"size":12846,"stargazers_count":9,"watchers_count":9,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":3,"open_issues":8,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cognitedata/cognite-sdk-python/pulls/175"},"html":{"href":"https://github.com/cognitedata/cognite-sdk-python/pull/175"},"issue":{"href":"https://api.github.com/repos/cognitedata/cognite-sdk-python/issues/175"},"comments":{"href":"https://api.github.com/repos/cognitedata/cognite-sdk-python/issues/175/comments"},"review_comments":{"href":"https://api.github.com/repos/cognitedata/cognite-sdk-python/pulls/175/comments"},"review_comment":{"href":"https://api.github.com/repos/cognitedata/cognite-sdk-python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cognitedata/cognite-sdk-python/pulls/175/commits"},"statuses":{"href":"https://api.github.com/repos/cognitedata/cognite-sdk-python/statuses/2679a3417130ae75394708ee95ee18793f11c292"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"NilsBarlaug-cognite"}}