{"id":33546286,"url":"https://github.com/zvdy/kube-classify","last_synced_at":"2026-01-20T16:38:03.999Z","repository":{"id":305449889,"uuid":"1022943995","full_name":"zvdy/kube-classify","owner":"zvdy","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-20T11:25:46.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-26T03:49:15.119Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zvdy.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-20T07:25:33.000Z","updated_at":"2025-07-20T07:25:41.000Z","dependencies_parsed_at":"2025-07-20T07:48:32.010Z","dependency_job_id":"6b312b56-a781-434b-914c-e3e8ad94a8a9","html_url":"https://github.com/zvdy/kube-classify","commit_stats":null,"previous_names":["zvdy/kube-classify"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zvdy/kube-classify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zvdy%2Fkube-classify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zvdy%2Fkube-classify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zvdy%2Fkube-classify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zvdy%2Fkube-classify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zvdy","download_url":"https://codeload.github.com/zvdy/kube-classify/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zvdy%2Fkube-classify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286079811,"owners_count":27282121,"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-11-27T02:00:05.795Z","response_time":58,"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":[],"created_at":"2025-11-27T05:03:27.619Z","updated_at":"2025-11-27T05:03:28.191Z","avatar_url":"https://github.com/zvdy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kubectl Infra Classifier\n\nClassifies if a kubectl command modifies infrastructure (yes/no).\n\n## Features\n- Detects if a kubectl command is modifying (\"yes\") or non-modifying (\"no\")\n- Handles real-world, piped, and complex kubectl command scenarios\n- Designed for extensibility and production use\n\n## Installation\n\n```sh\npip install .\n# or with build isolation\npip install --use-pep517 .\n```\n\n## Usage\n\n### As a Python package\n```python\nfrom kube_classify.utils import load_model\nmodel = load_model(\"models/kubectl_classifier.joblib\")\nresult = model.predict([\"kubectl apply -f deployment.yaml\"])\nprint(\"yes\" if result[0] == 1 else \"no\")\n```\n\n### Training\nTrain a new model with your dataset:\n```sh\nmake train\n```\n\n## Makefile Commands\n- `make install` — Install the package in editable mode for development\n- `make train` — Train the model (ensures correct PYTHONPATH)\n- `make test` — Run the test suite\n- `make lint` — Lint the codebase with flake8\n- `make clean` — Remove model artifacts and cache files\n\n## Project Structure\n- `src/kube_classify/` — Main package code\n- `data/` — Training data\n- `models/` — Saved models\n- `tests/` — Test suite\n\n## License\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzvdy%2Fkube-classify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzvdy%2Fkube-classify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzvdy%2Fkube-classify/lists"}