{"id":30450257,"url":"https://github.com/ottojimb/symodel","last_synced_at":"2025-08-23T13:26:23.728Z","repository":{"id":53633147,"uuid":"273803636","full_name":"ottojimb/symodel","owner":"ottojimb","description":"Simple (too much) database model generator","archived":false,"fork":false,"pushed_at":"2021-03-20T04:16:19.000Z","size":7,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-08T07:08:36.961Z","etag":null,"topics":["database","fastapi","flask","generator","model","python","tortoise-orm"],"latest_commit_sha":null,"homepage":"","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/ottojimb.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}},"created_at":"2020-06-20T23:57:55.000Z","updated_at":"2020-06-21T04:20:01.000Z","dependencies_parsed_at":"2022-09-22T00:55:00.276Z","dependency_job_id":null,"html_url":"https://github.com/ottojimb/symodel","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/ottojimb/symodel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottojimb%2Fsymodel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottojimb%2Fsymodel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottojimb%2Fsymodel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottojimb%2Fsymodel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ottojimb","download_url":"https://codeload.github.com/ottojimb/symodel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottojimb%2Fsymodel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271749048,"owners_count":24814115,"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-23T02:00:09.327Z","response_time":69,"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":["database","fastapi","flask","generator","model","python","tortoise-orm"],"created_at":"2025-08-23T13:25:59.076Z","updated_at":"2025-08-23T13:26:23.716Z","avatar_url":"https://github.com/ottojimb.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Symodel\n\nSymodel is a simple database model generator. It's simple, maybe too much.\n\nIt reads the postgres database configuration and generate some files (one per table), trying to parse some data and rendering it using [Jinja2](https://jinja.palletsprojects.com/)  \n\nFeel free to change anything and use and [improve it](#contributing)\n\n## Installation\n\nClone this repo and after simply do:\n\n```bash\npip install -r requirements.txt\n```\n\n## Usage\n\nSet the following environment vars:\n\n```\nDATABASE_DSN=postgresql://db_user:db_pass@localhost:5432/db_name\nDB_CATALOG=your_catalog\nDB_SCHEMA=your_schema\n```\n\nDon't forget to load these doing `source .env`\n\nAfter, simply do `mkdir output; python main.py`\n\nYou must check the output directory to look for your models\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n## License\n[MIT](https://mit-license.org/)\n\n### The MIT License (MIT)\nCopyright © 2020\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fottojimb%2Fsymodel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fottojimb%2Fsymodel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fottojimb%2Fsymodel/lists"}