{"id":13813470,"url":"https://github.com/schematics/schemalchemy","last_synced_at":"2025-08-04T08:34:16.594Z","repository":{"id":18698899,"uuid":"21909084","full_name":"schematics/schemalchemy","owner":"schematics","description":"SchemAlchemy = Schematics + SQLAlchemy","archived":false,"fork":false,"pushed_at":"2017-11-20T15:46:35.000Z","size":10,"stargazers_count":21,"open_issues_count":3,"forks_count":4,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-14T12:21:18.154Z","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/schematics.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}},"created_at":"2014-07-16T16:50:19.000Z","updated_at":"2024-04-24T23:11:32.000Z","dependencies_parsed_at":"2022-08-05T01:01:09.096Z","dependency_job_id":null,"html_url":"https://github.com/schematics/schemalchemy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/schematics/schemalchemy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schematics%2Fschemalchemy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schematics%2Fschemalchemy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schematics%2Fschemalchemy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schematics%2Fschemalchemy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schematics","download_url":"https://codeload.github.com/schematics/schemalchemy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schematics%2Fschemalchemy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268670341,"owners_count":24287965,"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-04T02:00:09.867Z","response_time":79,"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":"2024-08-04T04:01:18.897Z","updated_at":"2025-08-04T08:34:16.516Z","avatar_url":"https://github.com/schematics.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"SchemAlchemy\n===========\n\nSchematics + SQLAlchemy\n\n\n## Usage\n\n0. Import schemalchemy (before schematics)\n1. Inherit from schemalchemy `Base`\n2. Define the SQLAlchemy columns (or provide a Table)\n3. Define the Schematics fields\n\nNote: Column property names must be '_' + field_name (see about SQLAlchemy\n    `column_prefix` if you need to customize the prefix).\n\n\n## Example\n\n\u003cpre lang=\"python\"\u003e\u003ccode\u003e\n\nfrom schemalchemy import Base\nfrom schematics.types import IntType, StringType\nfrom sqlalchemy import Column, Integer, String\n\n\nclass Person(Base):\n\n    __tablename__ = 'person'\n\n    _id = Column('id', Integer, primary_key=True)\n    _name = Column('name', String(50))\n\n    id = IntType(default=1)\n    name = StringType()\n\n\u003c/code\u003e\u003c/pre\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschematics%2Fschemalchemy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschematics%2Fschemalchemy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschematics%2Fschemalchemy/lists"}