{"id":14065316,"url":"https://github.com/hamedsj/DbmlForDjango","last_synced_at":"2025-07-29T20:32:10.772Z","repository":{"id":40487755,"uuid":"265178903","full_name":"hamedsj/DbmlForDjango","owner":"hamedsj","description":"A converter between django models.py and dbml file","archived":false,"fork":false,"pushed_at":"2022-05-05T04:58:03.000Z","size":642,"stargazers_count":25,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-13T07:08:35.727Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hamedsj.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":"2020-05-19T07:39:31.000Z","updated_at":"2024-08-04T15:19:14.000Z","dependencies_parsed_at":"2022-08-09T22:00:37.193Z","dependency_job_id":null,"html_url":"https://github.com/hamedsj/DbmlForDjango","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamedsj%2FDbmlForDjango","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamedsj%2FDbmlForDjango/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamedsj%2FDbmlForDjango/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamedsj%2FDbmlForDjango/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hamedsj","download_url":"https://codeload.github.com/hamedsj/DbmlForDjango/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228046122,"owners_count":17861101,"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":[],"created_at":"2024-08-13T07:04:25.711Z","updated_at":"2024-12-04T04:31:00.233Z","avatar_url":"https://github.com/hamedsj.png","language":"Python","readme":"# DbmlForDjango\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nA converter between django models.py and dbml file\n\n![ModelsToDbml Test Gif](mtd-test.gif)\n\n## Usage\n1. Go to django project directory, beside `manage.py` file:\n```bash\n\u003e\u003e\u003e cd path/to/folder/of/project\n```\n\n2. Clone DbmlForDjango from github:\n```bash\n\u003e\u003e\u003e git clone https://github.com/hamedsj/DbmlForDjango\n```\n\n3. Open django shell:\n```bash\n\u003e\u003e\u003e python3 manage.py shell\n```\n\n4. Import modelsToDbml and call convert:\n```python\n\u003e\u003e\u003e from DbmlForDjango import modelsToDbml as mtd\n\u003e\u003e\u003e mtd.convert()\n```\n\n\n5. Now you can see `output.dbml` file beside `manage.py` file\n\n\n## License\nCopyright 2020 Shajaravi Hamid-Reza\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n    \nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamedsj%2FDbmlForDjango","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhamedsj%2FDbmlForDjango","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamedsj%2FDbmlForDjango/lists"}