{"id":47810520,"url":"https://github.com/rmorshea/cmodel","last_synced_at":"2026-04-12T07:09:19.454Z","repository":{"id":348446464,"uuid":"1198135624","full_name":"rmorshea/cmodel","owner":"rmorshea","description":"Model C structs with Pydantic","archived":false,"fork":false,"pushed_at":"2026-04-06T06:54:04.000Z","size":745,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-07T22:03:38.887Z","etag":null,"topics":["c","pydantic","python"],"latest_commit_sha":null,"homepage":"https://ryanmorshead.com/cmodel/","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/rmorshea.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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":null,"dco":null,"cla":null}},"created_at":"2026-04-01T06:36:14.000Z","updated_at":"2026-04-06T05:55:22.000Z","dependencies_parsed_at":"2026-04-05T20:00:56.936Z","dependency_job_id":"aeeb70ba-c525-46e9-9a7f-689e3f6e81ee","html_url":"https://github.com/rmorshea/cmodel","commit_stats":null,"previous_names":["rmorshea/cmodel"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/rmorshea/cmodel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmorshea%2Fcmodel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmorshea%2Fcmodel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmorshea%2Fcmodel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmorshea%2Fcmodel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rmorshea","download_url":"https://codeload.github.com/rmorshea/cmodel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmorshea%2Fcmodel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31706971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T06:22:27.080Z","status":"ssl_error","status_checked_at":"2026-04-12T06:21:52.710Z","response_time":58,"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":["c","pydantic","python"],"created_at":"2026-04-03T18:09:17.994Z","updated_at":"2026-04-12T07:09:19.449Z","avatar_url":"https://github.com/rmorshea.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CModel\n\n[![PyPI - Version](https://img.shields.io/pypi/v/cmodel.svg)](https://pypi.org/project/cmodel)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/cmodel.svg)](https://pypi.org/project/cmodel)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nModel C structs with Pydantic\n\n`cmodel` lets you describe C-compatible binary layouts with normal Pydantic models.\nYou keep Pydantic's validation and nested models, and gain a simple way to pack and\nunpack structs from binary buffers.\n\n## Quick start\n\n```python\nfrom io import BytesIO\n\nfrom cmodel import CModel\nfrom cmodel.types import Int\n\n\nclass Point(CModel):\n\tx: Int\n\ty: Int\n\n\nbuf = BytesIO()\nPoint(x=3, y=7).c_pack(buf)\n\nbuf.seek(0)\npoint = Point.c_unpack(buf)\n\nassert point == Point(x=3, y=7)\nassert buf.getvalue() == b\"\\x03\\x00\\x00\\x00\\x07\\x00\\x00\\x00\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmorshea%2Fcmodel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frmorshea%2Fcmodel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmorshea%2Fcmodel/lists"}