https://github.com/felixthec/lucidchart2sqlalchemy
https://github.com/felixthec/lucidchart2sqlalchemy
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/felixthec/lucidchart2sqlalchemy
- Owner: FelixTheC
- License: mit
- Created: 2022-07-08T17:46:02.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-08T21:28:50.000Z (almost 3 years ago)
- Last Synced: 2025-02-10T00:45:06.886Z (3 months ago)
- Language: Python
- Size: 66.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://github.com/psf/black)
[](https://pycqa.github.io/isort/)# Lucidchart2SqlAlchemy
- when creating UML charts in Lucidchart I needed to create these objects "twice" with
this package you're being able to generate python-files including SqlAlchemy-Models## How To Use
```shell
$ lucidchart_2_sql --help```
## Example

- will generate models like this
```python
class BaseRate(BaseModel):
__tablename__ = "base_rate"model_code: str = sa.Column(sa.String)
booking_period_id: str = sa.Column(sa.String, sa.ForeignKey("booking_period.id"))
rate: float = sa.Column(sa.Float)
monthly_rate: bool = sa.Column(sa.Boolean)
```