{"id":15102787,"url":"https://github.com/legopitstop/schemaser","last_synced_at":"2026-02-10T07:32:31.452Z","repository":{"id":183141105,"uuid":"654324448","full_name":"legopitstop/schemaser","owner":"legopitstop","description":"Converts a Python class or method to a JSON schema.","archived":false,"fork":false,"pushed_at":"2024-04-15T03:57:25.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-28T19:47:12.795Z","etag":null,"topics":["class","json","jsonschema","method","pypi","python","pythonpackage","schema"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/schemaser/","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/legopitstop.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":null,"patreon":"Legopitstop","open_collective":null,"ko_fi":"legopitstop","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2023-06-15T22:05:49.000Z","updated_at":"2024-05-15T00:07:09.000Z","dependencies_parsed_at":"2024-04-15T05:54:09.663Z","dependency_job_id":null,"html_url":"https://github.com/legopitstop/schemaser","commit_stats":null,"previous_names":["legopitstop/schemaser"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/legopitstop/schemaser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/legopitstop%2Fschemaser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/legopitstop%2Fschemaser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/legopitstop%2Fschemaser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/legopitstop%2Fschemaser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/legopitstop","download_url":"https://codeload.github.com/legopitstop/schemaser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/legopitstop%2Fschemaser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272192692,"owners_count":24889468,"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-08-26T02:00:07.904Z","response_time":60,"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":["class","json","jsonschema","method","pypi","python","pythonpackage","schema"],"created_at":"2024-09-25T19:06:53.438Z","updated_at":"2026-02-10T07:32:31.445Z","avatar_url":"https://github.com/legopitstop.png","language":"Python","readme":"# schemaser\nConverts a Python class or method to a JSON schema.\n\n## Install\n```\npip install schemaser\n```\n\n## Example\n```py\nimport schemaser\n\nclass MyClass():\n    def __init__(self, string:str=None, integer:int=None, float:float=None):\n        pass\n\n    # Custom magic method for custom schemas\n    # def __schema__(self):\n    #     return {}\n\ndef MyMethod(value:str, **kw:cls):\n    pass\n\ndef func1(string:str, integer:int, float:float, tuple:list[str,int], array:list[str|int], object:MyClass, func:MyMethod):\n    pass\n\n# Convert func1 method to JSON Schema.\ndat = schemaser.to_schema(func1)\nprint(dat)\n```","funding_links":["https://patreon.com/Legopitstop","https://ko-fi.com/legopitstop"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flegopitstop%2Fschemaser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flegopitstop%2Fschemaser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flegopitstop%2Fschemaser/lists"}