{"id":19357051,"url":"https://github.com/kaaproject/python-sdk","last_synced_at":"2026-07-08T05:30:18.841Z","repository":{"id":76973571,"uuid":"180608773","full_name":"kaaproject/python-sdk","owner":"kaaproject","description":null,"archived":false,"fork":false,"pushed_at":"2019-05-22T09:42:22.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-01-06T17:51:06.178Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kaaproject.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-10T15:17:31.000Z","updated_at":"2019-05-22T09:42:23.000Z","dependencies_parsed_at":"2023-03-11T23:44:53.583Z","dependency_job_id":null,"html_url":"https://github.com/kaaproject/python-sdk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaaproject%2Fpython-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaaproject%2Fpython-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaaproject%2Fpython-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaaproject%2Fpython-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaaproject","download_url":"https://codeload.github.com/kaaproject/python-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240473455,"owners_count":19807139,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T07:06:10.101Z","updated_at":"2026-07-08T05:30:18.791Z","avatar_url":"https://github.com/kaaproject.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Welcome to Kaa Python SDK\n\nCurrent version of Kaa Python SDK covers authentication management and provides programmatic access for timeseries REST API.\n\n# Supported python versions\n\nPython 3.6 and higher\n\n# How to use\n\n### Step 1 - Set credentials\n\n```python\nfrom kaa_sdk.config import set_credentials_file, set_config_file\n\nset_credentials_file(uname='\u003cYOUR_LOGIN\u003e',\n                     password='\u003cYOUR_PASSWORD\u003e',\n                     client_id='\u003cYOUR_CLIENT_ID\u003e',\n                     client_secret='\u003cYOUR_CLIENT_SECRET\u003e')\nset_config_file(host='\u003cKAA_HOST\u003e',\n                    auth_host='\u003cKEYCLOAK_HOST\u003e',\n                    realm='\u003cREALM\u003e')\n```\n\n### Step 2 - explore available commands\n\n#### Examples:\n\n##### Get configs\n```python\nfrom kaa_sdk.epts.v1.api import get_time_series_config\n\nget_time_series_config()\n\n```\n\n##### Get last time series\n```python\nfrom kaa_sdk.epts.v1.api import get_last_time_series\n\nget_last_time_series(\"\u003cAPPLICATION_NAME\u003e\", [\"humidity\", \"temperature\"])\n\n```\n\n##### Get time series\n```python\nfrom datetime import datetime, timedelta\n\nfrom kaa_sdk.epts.v1.api import get_time_series\n\nnow = datetime.now()\nthen = now - timedelta(days=2)\njson_resp = get_time_series(\"\u003cAPPLICATION_NAME\u003e\", [\"humidity\"], then, now, [\"\u003cENDPOINT_ID\u003e\"], \"ASC\")\n\n```\n\n### Also help available for each command\n\n#### Examples:\n\n```\nhelp(get_time_series_config)\n\nHelp on function get_time_series_config in module kaa_sdk.epts.v1.api:\n\nget_time_series_config(application_names=None)\n    Returns configurations of all time series.\n    \n    :param application_names: Application name, one or multiple. If not specified,\n     the data is returned for all available applications.\n    :return: json with time series configuration\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaaproject%2Fpython-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaaproject%2Fpython-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaaproject%2Fpython-sdk/lists"}