{"id":37079161,"url":"https://github.com/openkamer/tkapi","last_synced_at":"2026-01-14T09:35:02.274Z","repository":{"id":57475834,"uuid":"83925273","full_name":"openkamer/tkapi","owner":"openkamer","description":"Python bindings for the Tweede Kamer OData API","archived":false,"fork":false,"pushed_at":"2025-11-16T13:27:07.000Z","size":1424,"stargazers_count":20,"open_issues_count":0,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-01-03T03:01:00.221Z","etag":null,"topics":["api-bindings","parliamentary-data"],"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/openkamer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-04T21:16:35.000Z","updated_at":"2025-12-28T04:36:22.000Z","dependencies_parsed_at":"2022-09-07T17:13:07.459Z","dependency_job_id":null,"html_url":"https://github.com/openkamer/tkapi","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/openkamer/tkapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openkamer%2Ftkapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openkamer%2Ftkapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openkamer%2Ftkapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openkamer%2Ftkapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openkamer","download_url":"https://codeload.github.com/openkamer/tkapi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openkamer%2Ftkapi/sbom","scorecard":{"id":709631,"data":{"date":"2025-08-11","repo":{"name":"github.com/openkamer/tkapi","commit":"6147d0e887a2b25ca3dbc8354b066e9551467068"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/27 approved changesets -- score normalized to 0","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":"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":10,"reason":"no dangerous workflow patterns detected","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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/main.yml:1","Info: no jobLevel write permissions found"],"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":"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/openkamer/tkapi/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/openkamer/tkapi/main.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/main.yml:17","Warn: pipCommand not pinned by hash: .github/workflows/main.yml:18","Warn: pipCommand not pinned by hash: .github/workflows/main.yml:19","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 pipCommand dependencies pinned"],"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["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"}},{"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 5 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"}}]},"last_synced_at":"2025-08-22T07:45:25.306Z","repository_id":57475834,"created_at":"2025-08-22T07:45:25.306Z","updated_at":"2025-08-22T07:45:25.306Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28416119,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:38:59.149Z","status":"ssl_error","status_checked_at":"2026-01-14T08:38:43.588Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api-bindings","parliamentary-data"],"created_at":"2026-01-14T09:35:01.609Z","updated_at":"2026-01-14T09:35:02.268Z","avatar_url":"https://github.com/openkamer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tkapi\n[![PyPI version](https://badge.fury.io/py/tkapi.svg)](https://badge.fury.io/py/tkapi) ![CI/CD status](https://github.com/openkamer/tkapi/actions/workflows/main.yml/badge.svg)  \nPython ORM and bindings for the [Tweede Kamer](https://tweedekamer.nl) [Open Data Portaal](https://opendata.tweedekamer.nl) OData API.\n\nA pure Python interface for the Tweede Kamer API with type annotations for easy data model discovery.\n\nRequires Python 3.5+.\n\nPlease create an issue if you have any problems, questions or suggestions.\n\n## Installation\n```\npip install tkapi\n```\n\n## Data model\nSee [Open Kamer Data Model documentation](https://opendata.tweedekamer.nl/documentatie/informatiemodel) for the data model that is mapped to Python classes.\n\n## Usage\nA simple first example,\n```python\nimport tkapi\n\napi = tkapi.TKApi()\npersonen = api.get_personen(max_items=100)\nfor persoon in personen:\n    print(persoon.achternaam)\n```\n\nFor more examples see the [examples](./examples) and [tests](./tests).\n\n## Entities\n\nSee Tweede Kamer [documentation](https://opendata.tweedekamer.nl/documentatie/informatiemodel-20) for details.\n\n| Algemeen                    | Persoon                       | Fractie                  | Commissie                       |\n|-----------------------------|-------------------------------|--------------------------|---------------------------------|\n| Activiteit                  | Persoon                       | Fractie                  | Commissie                       |\n| ActiviteitActor             | PersoonContactinformatie      | FractieZetel             | CommissieContactinformatie      |\n| Agendapunt                  | PersoonFunctie                | FractieZetelPersoon      | CommissieZetel                  |\n| Besluit                     | PersoonGeschenk               | FractieZetelVacature     | CommissieZetelVastPersoon       |\n| Document                    | PersoonLoopbaan               | FractieZetelVacature     | CommissieZetelVastVacature      |\n| DocumentActor               | PersoonNevenfunctie           |                          | CommissieZetelVervangerPersoon  |\n| DocumentVersie              | PersoonNevenfunctieInkomsten  |                          | CommissieZetelVervangerVacature |\n| Kamerstukdossier            | PersoonOnderwijs              |                          |                                 |\n| Reservering                 | PersoonReis                   |                          |                                 |\n| Stemming                    |                               |                          |                                 |\n| Vergadering                 |                               |                          |                                 |\n| Verslag                     |                               |                          |                                 |\n| Zaak                        |                               |                          |                                 |\n| ZaakActor                   |                               |                          |                                 |\n| Zaal                        |                               |                          |                                 |\n\n## Development\n\n### Tests\n\nRun all tests,\n```bash\npytest\n```\n\n#### Coverage report\n\nRun all tests,\n```bash\ncoverage run -m unittest discover\n```\n\nCreate coverage report,\n```bash\ncoverage html\n```\nThen visit htmlcov/index.html in your browser.\n\n### Publishing\n\nThis project uses Python packaging with `pyproject.toml`. To publish a new version to PyPI:\n\n1. **Install build tools** (if not already installed):\n   ```bash\n   pip install build twine\n   ```\n\n2. **Update the version** in `pyproject.toml`:\n   ```toml\n   version = \"X.Y.Z\"\n   ```\n\n3. **Build the package**:\n   ```bash\n   python -m build\n   ```\n   This will create distribution files in the `dist/` directory.\n\n4. **Test the build locally** (optional but recommended):\n   ```bash\n   pip install dist/tkapi-X.Y.Z-py3-none-any.whl\n   ```\n\n5. **Upload to Test PyPI** (optional, for testing):\n   ```bash\n   twine upload --repository-url https://test.pypi.org/legacy/ dist/*\n   ```\n\n6. **Upload to PyPI**:\n   ```bash\n   twine upload dist/*\n   ```\n   You'll need PyPI credentials (username and password/token). You can create an API token at https://pypi.org/manage/account/token/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenkamer%2Ftkapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenkamer%2Ftkapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenkamer%2Ftkapi/lists"}