{"id":34095107,"url":"https://github.com/monasca/tiny-kubernetes","last_synced_at":"2026-04-08T15:32:59.789Z","repository":{"id":57475740,"uuid":"112777449","full_name":"monasca/tiny-kubernetes","owner":"monasca","description":"A minimal Kubernetes client for Python","archived":false,"fork":false,"pushed_at":"2019-03-29T22:36:28.000Z","size":34,"stargazers_count":5,"open_issues_count":3,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-12-16T18:55:00.237Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/monasca.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-01T19:16:10.000Z","updated_at":"2020-10-21T03:23:40.000Z","dependencies_parsed_at":"2022-09-07T13:51:35.486Z","dependency_job_id":null,"html_url":"https://github.com/monasca/tiny-kubernetes","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/monasca/tiny-kubernetes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monasca%2Ftiny-kubernetes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monasca%2Ftiny-kubernetes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monasca%2Ftiny-kubernetes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monasca%2Ftiny-kubernetes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monasca","download_url":"https://codeload.github.com/monasca/tiny-kubernetes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monasca%2Ftiny-kubernetes/sbom","scorecard":{"id":658105,"data":{"date":"2025-08-11","repo":{"name":"github.com/monasca/tiny-kubernetes","commit":"f9677f1313070b970a8ab09818c9bca847f71f75"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/14 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":"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":"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":"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":"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: Apache License 2.0: 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":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2021-142 / GHSA-8q59-q68h-6hv4","Warn: Project is vulnerable to: PYSEC-2018-49 / GHSA-rprw-h62v-c2w7","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","Warn: Project is vulnerable to: PYSEC-2018-28 / GHSA-x84v-xcm2-53pg"],"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-21T15:14:43.375Z","repository_id":57475740,"created_at":"2025-08-21T15:14:43.375Z","updated_at":"2025-08-21T15:14:43.375Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31562688,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2025-12-14T15:08:12.735Z","updated_at":"2026-04-08T15:32:59.773Z","avatar_url":"https://github.com/monasca.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"tiny-kubernetes\n===============\n\n`tiny-kubernetes` provides a thin wrapper on top of [requests][0] to make it\neasier to work with Kubernetes APIs.\n\nFeatures\n--------\n\n * Automatic authentication (`$KUBECONFIG`)\n * Simplified response traversal (`never['do']['this']['again']`) thanks to\n   [DotMap][2]\n * Sane exceptions\n * No crazy complex client-side APIs to deal with\n\nWhy?\n----\n\nThe official [kubernetes][1] package is, uh, complex. While it does support all\nthe advanced features the Kubernetes API offers (like WebSocket streaming) it is\noften non-trivial to work with. tiny-kubernetes aims to provide most of the same\nfunctionality with minimal overhead.\n\nInstallation\n------------\n\n```\npip install tiny-kubernetes\n```\n\nUsage\n-----\n\n```python\nfrom tiny_kubernetes import KubernetesAPIClient\n\nclient = KubernetesAPIClient()\nclient.load_auto_config()\n\npods = client.get('/api/v1/namespaces/{}/pods', 'default')\nfor pod in pods['items']:\n  print pod.metadata.name\n```\n\nNotice that you can access (almost) all parts of the Kubernetes API response\nusing dot accessors (courtesy of [DotMap][2]). As `.items()` is a reserved name\nin dictionaries, it needs to be accessed more traditionally, but most other\nmember names can use the shortened syntax.\n\nThe endpoint is formatted using [`str.format`][3] with the remaining positional\narguments. All keyword arguments are passed through to requests's\n[`Session.request`][4], so you can include a body with `json={...}` or URL\nparameters with `params={...}`.\n\nA special `json_patch` method exists to help perform patches. It works around\na few potential requests bugs automatically. For example, it can be used to\nappend labels to a resource:\n\n```python\nclient.json_patch([{\n  'op': 'add',\n  'path': '/metadata/labels/foo',\n  'value': 'bar'\n}], '/api/v1/namespaces/{}/pods/{}', 'default', 'some-pod')\n```\n\nNotes\n-----\n\n * Temporary files may be created if using a local `$KUBECONFIG` with\n   base64-encoded certificates. Due to limitations in python's SSL library these\n   must be decoded and written to the filesystem to be used. They should be\n   cleaned up when the interpreter exits.\n\n\n[0]: http://docs.python-requests.org/en/master/\n[1]: https://github.com/kubernetes-incubator/client-python\n[2]: https://github.com/drgrib/dotmap\n[3]: https://docs.python.org/2/library/stdtypes.html#str.format\n[4]: http://docs.python-requests.org/en/master/api/#requests.Session.request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonasca%2Ftiny-kubernetes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonasca%2Ftiny-kubernetes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonasca%2Ftiny-kubernetes/lists"}