{"id":28637722,"url":"https://github.com/sann05/python-adjust","last_synced_at":"2025-10-04T16:49:12.211Z","repository":{"id":41079075,"uuid":"357196010","full_name":"sann05/python-adjust","owner":"sann05","description":"This is an unofficial wrapper for Adjust.com KPI API and little bit extra","archived":false,"fork":false,"pushed_at":"2023-02-15T08:25:30.000Z","size":22,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-29T08:09:03.701Z","etag":null,"topics":["adjust","metrics","mobile","mobile-development","mobile-measurement"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sann05.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-12T13:03:29.000Z","updated_at":"2024-11-25T11:39:08.000Z","dependencies_parsed_at":"2022-09-14T05:10:37.141Z","dependency_job_id":null,"html_url":"https://github.com/sann05/python-adjust","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sann05/python-adjust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sann05%2Fpython-adjust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sann05%2Fpython-adjust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sann05%2Fpython-adjust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sann05%2Fpython-adjust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sann05","download_url":"https://codeload.github.com/sann05/python-adjust/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sann05%2Fpython-adjust/sbom","scorecard":{"id":799784,"data":{"date":"2025-08-11","repo":{"name":"github.com/sann05/python-adjust","commit":"81bbac394f7e010852bd746a12e6349220af7606"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":8,"reason":"Found 5/6 approved changesets -- score normalized to 8","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 15 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2020-73","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2023-74 / GHSA-j8r2-6x86-q33q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T10:06:39.152Z","repository_id":41079075,"created_at":"2025-08-23T10:06:39.152Z","updated_at":"2025-08-23T10:06:39.152Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278343080,"owners_count":25971399,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["adjust","metrics","mobile","mobile-development","mobile-measurement"],"created_at":"2025-06-12T18:30:51.402Z","updated_at":"2025-10-04T16:49:12.148Z","avatar_url":"https://github.com/sann05.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Welcome to the python-adjust\nThis is an unofficial Python wrapper for the Adjust.com REST API.\nI am in no way affiliated with Adjust.com, use at your own risk.\n\n\n### Regards\nThis project was inspired by [adjusty](https://github.com/techieashish/adjusty)\n\n\n### Documentation\nPlease find official documentation by:\nhttps://help.adjust.com/en/article/kpi-service\n\n\n### QuickStart\n\nYour access to the KPI Service is tied to your Adjust user account. Each user account has an associated user token, to allow you to individually control access to your KPIs.\n\nYou can find your own user token in the dashboard, under **Account Settings \u003e Your Data \u003e User Details**. This is the user token we’ll be referring to for your authentication below.\n```\npip install python-adjust\n```\n\nLet's retrieve list of applications accessible to you\n```python\n\nfrom adjustapi.api import AdjustApi\n\napi = AdjustApi('USER_TOKEN')\n\napps = api.list_apps()\n\nprint(apps[0].name, apps[0].token, apps[0].id)\n# Prints something like: \"MyTestApp ft5popkfebns com.mytest.app\"\n```\n\nThis is how KPI API works\n```python\nkpis_api = api.kpi_service(trackers=trackers,\n                           start_date=start_date,\n                           end_date=end_date,\n                           countries=countries,\n                           app_tokens=app_tokens,\n                           kpis=kpis)\nprint(str(kpis_api.fetch_kpi()))\n# prints: KpiResult(result_parameters=ResultParameters(kpis=['revenue'], start_date=datetime.date(2020, 4, 4), end_date=datetime.date(2020, 5, 4), sandbox=False, countries=['us'], events=None, trackers=[TrackerResultParameters(token='tsrdag', name='Facebook Installs::Expired Attributions', currency=None, has_subtrackers=False)], grouping=['trackers'], period=None, attribution_type='click', utc_offset='00:00', cohort_period_filter=None, day_def=None, attribution_source='dynamic'), result_set={'token': 'thomki', 'name': 'Facebook Installs', 'currency': 'USD', 'trackers': [{'token': 'tsodkg', 'kpi_values': [3627.54]}]})\n\nprint(str(kpis_api.fetch_events()))\n# prints: KpiResult(result_parameters=ResultParameters(kpis=['revenue'], start_date=datetime.date(2020, 4, 4), end_date=datetime.date(2020, 5, 4), sandbox=False, countries=['us'], events=[EventParameter(name='com.test.subscription.name', token='s6p2ub'), EventParameter(name='event_name', token='eakvze'), EventParameter(name='event.name.2', token='5a6u7u'), EventParameter(name='event_name_3', token='e34v0e')], trackers=[TrackerResultParameters(token='6tcrta', name='Facebook Installs::Expired Attributions', currency=None, has_subtrackers=False)], grouping=['trackers', 'event_types'], period=None, attribution_type='click', utc_offset='00:00', cohort_period_filter=None, day_def=None, attribution_source='dynamic'), result_set={'token': 'thamsi', 'name': 'Facebook Installs', 'currency': 'USD', 'trackers': [{'token': 'tsrdta', 'events': [{'token': 'e6e2v1', 'kpi_values': [1149.77]}, {'token': 'ea3vpe', 'kpi_values': [95.88]}, {'token': 'e34v0e', 'kpi_values': [17.99]}, {'token': 'eovy8e', 'kpi_values': [147.63]}}]}]})\n\nprint(str(kpis_api.fetch_cohorts()))\n# KpiResult(result_parameters=ResultParameters(kpis=['revenue'], start_date=datetime.date(2020, 4, 4), end_date=datetime.date(2020, 5, 4), sandbox=False, countries=['us'], events=None, trackers=[TrackerResultParameters(token='csodbh', name='Facebook Installs::Expired Attributions', currency=None, has_subtrackers=False)], grouping=['trackers', 'periods'], period='day', attribution_type='click', utc_offset='00:00', cohort_period_filter=None, day_def='24h', attribution_source='dynamic'), result_set={'token': 'chamsh', 'name': 'Facebook Installs', 'currency': 'USD', 'trackers': [{'token': 'cscoth', 'periods': [{'period': '0', 'kpi_values': [109.89]}}]}]})\n```\n\nBut most of the time you need these data as table, so you can retrieve it as pandas Dataframe\n```python\nkpis_api = api.kpi_service(trackers=trackers,\n                           start_date=start_date,\n                           end_date=end_date,\n                           countries=countries,\n                           app_tokens=app_tokens,\n                           kpis=kpis)\nprint(str(kpis_api.fetch_kpi(as_df=True)))\n\n# '  tracker_token                             tracker_name  revenue\n# 0        tsrdag  Facebook Installs::Expired Attributions  3627.54'\n```\n\nFor more check out [the documentation](https://help.adjust.com/en/article/kpi-service).\n\nIf you have any questions feel free to add [issues]() or write to me. \n\nTODO: Add link to Airflow hook and operator for AdjustApi\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsann05%2Fpython-adjust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsann05%2Fpython-adjust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsann05%2Fpython-adjust/lists"}