{"id":34569079,"url":"https://github.com/kabouzeid/mini-kit","last_synced_at":"2025-12-24T09:14:15.753Z","repository":{"id":319741997,"uuid":"1071658019","full_name":"kabouzeid/mini-kit","owner":"kabouzeid","description":"Small self-contained micro packages for deep learning codebases.","archived":false,"fork":false,"pushed_at":"2025-12-14T15:15:55.000Z","size":458,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-16T23:39:18.942Z","etag":null,"topics":["deep-learning","library","python","pytorch"],"latest_commit_sha":null,"homepage":"https://kabouzeid.github.io/mini-kit/","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/kabouzeid.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-10-07T16:31:10.000Z","updated_at":"2025-12-14T15:15:58.000Z","dependencies_parsed_at":"2025-10-28T15:12:07.817Z","dependency_job_id":"3b3e8d4f-4e1e-4e34-8cf8-88a2c410a5d7","html_url":"https://github.com/kabouzeid/mini-kit","commit_stats":null,"previous_names":["kabouzeid/mini-kit"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/kabouzeid/mini-kit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kabouzeid%2Fmini-kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kabouzeid%2Fmini-kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kabouzeid%2Fmini-kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kabouzeid%2Fmini-kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kabouzeid","download_url":"https://codeload.github.com/kabouzeid/mini-kit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kabouzeid%2Fmini-kit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27999539,"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-12-24T02:00:07.193Z","response_time":83,"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":["deep-learning","library","python","pytorch"],"created_at":"2025-12-24T09:14:15.219Z","updated_at":"2025-12-24T09:14:15.743Z","avatar_url":"https://github.com/kabouzeid.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/e8f5ce11-1b57-49d0-9d20-a3ee587a4498\" height=200/\u003e\n\u003c/p\u003e\n\n# mini-kit\n\nMinimal, hackable building blocks for deep learning projects. The goal is to keep every layer small enough that you can read it, tweak it, or drop it into your own codebase.\n\n[![PyPI version](https://img.shields.io/pypi/v/mini-kit.svg)](https://pypi.python.org/pypi/mini-kit)\n[![docs](https://img.shields.io/badge/docs-brightgreen.svg)](https://kabouzeid.github.io/mini-kit/)\n\n## Quick Start\n\n```bash\npip install mini-kit\n```\n\nYou now have three tiny helpers that play nicely together:\n\n1. `mini.config` loads plain-Python configs. Start with a single dictionary, then grow into composable templates and parent chains without learning a new DSL.\n2. `mini.builder` turns dictionaries into Python objects. Supports both registry shortcuts and fully qualified import paths.\n3. `mini.trainer` provides a lightweight training framework with hooks for logging, checkpointing, and customization.\n\nThe example below shows `mini.config` and `mini.builder` in action.\n\n```python\n# configs/model.py\nconfig = {\n    \"model\": {\n        \"type\": \"Classifier\",\n        \"encoder\": {\"type\": \"Encoder\", \"channels\": 64},\n        \"head\": {\"type\": \"torch.nn.Linear\", \"*\": [64, 10]},\n    },\n    \"optimizer\": {\"type\": \"torch.optim.AdamW\", \"lr\": 3e-4},\n}\n```\n\n```python\n# main.py\nfrom mini.builder import register, build\nfrom mini.config import apply_overrides, load\n\n@register()\nclass Encoder:\n    def __init__(self, channels: int):\n        self.channels = channels\n\n@register()\nclass Classifier:\n    def __init__(self, encoder, head):\n        self.encoder = encoder\n        self.head = head\n\ncfg = load(\"configs/model.py\")\ncfg = apply_overrides(cfg, [\"optimizer.lr=1e-3\", \"model.encoder.channels=128\"])\n\nmodel = build(cfg[\"model\"])\noptimizer = build(cfg[\"optimizer\"])\n```\n\n- `load` executes `configs/model.py`; keep a simple `config = {...}` for small projects, or swap to `def config(...):` and `parents = [...]` when you need templates and composition.\n- `apply_overrides` allows for painless command-line overrides: tweak nested keys with a short-hand syntax: `optimizer.lr=...`, append with `+=`, or drop entries with `!=`.\n- `build` looks at the `\"type\"` key, grabs the right constructor (from the registry or import path), and wires up dependencies for you.\n\n## Docs\n\nMore details live in the [documentation site](https://kabouzeid.github.io/mini-kit).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkabouzeid%2Fmini-kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkabouzeid%2Fmini-kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkabouzeid%2Fmini-kit/lists"}