{"id":20690761,"url":"https://github.com/levsh/cwtch","last_synced_at":"2025-12-24T11:01:49.455Z","repository":{"id":219987674,"uuid":"689061098","full_name":"levsh/cwtch","owner":"levsh","description":"Python Data Classes with validation and views","archived":false,"fork":false,"pushed_at":"2024-03-26T16:38:05.000Z","size":678,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-25T20:20:20.590Z","etag":null,"topics":["dataclasses","python","validation","views"],"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/levsh.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}},"created_at":"2023-09-08T17:48:36.000Z","updated_at":"2024-01-30T16:26:08.000Z","dependencies_parsed_at":"2024-10-16T18:24:08.242Z","dependency_job_id":null,"html_url":"https://github.com/levsh/cwtch","commit_stats":null,"previous_names":["levsh/cwtch"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levsh%2Fcwtch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levsh%2Fcwtch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levsh%2Fcwtch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levsh%2Fcwtch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/levsh","download_url":"https://codeload.github.com/levsh/cwtch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242952424,"owners_count":20211821,"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","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":["dataclasses","python","validation","views"],"created_at":"2024-11-16T23:14:10.895Z","updated_at":"2025-12-24T11:01:49.450Z","avatar_url":"https://github.com/levsh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## cwtch [wip] - Python `dataclasses` with validation and views.\n\n[Documentation](https://levsh.github.io/cwtch)\n\n![tests](https://github.com/levsh/cwtch/workflows/tests/badge.svg)\n![coverage](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/levsh/f079c374abda6c5bd393c3ac723f1182/raw/coverage.json)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n```python\nIn [1]: from cwtch import dataclass, field\n\nIn [2]: @dataclass\n   ...: class M:\n   ...:     i: int\n   ...:     s: str = field(validate=False)\n   ...: \n\nIn [3]: M(i=1, s='s')\nOut[3]: M(i=1, s='s')\n\nIn [4]: M(i='i', s='s')\n---------------------------------------------------------------------------\nValidationError                           Traceback (most recent call last)\nCell In[4], line 1\n----\u003e 1 M(i='i', s='s')\n\nFile \u003cstring\u003e:32, in __init__(__cwtch_self__, i, s, **__extra_kwds)\n\nValidationError: \n  Type: --\u003e \u003cclass '__main__.M'\u003e\n  Path: ['i']\n  ValidationError:\n    Type: \u003cclass 'str'\u003e --\u003e \u003cclass 'int'\u003e\n    Input: 'i'\n    ValueError: invalid literal for int() with base 10: 'i'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevsh%2Fcwtch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flevsh%2Fcwtch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevsh%2Fcwtch/lists"}