A pure python mermaid generator for prisma schema.
Project description
Prisma2Markdown
Prisma2Markdown or more is a pure python package that aim to facilitate prisma database visualization using mermaid.
Unfortunately, mermaid still have an issue that prevent perfect visualization since mermaid cannot yet create attribute relations.
Installation
pip install py-prisma2markdown
or
pip install git+https://github.com/HOZHENWAI/py-prisma2markdown.git
Usage
This package make a command line available:
prisma2markdown
To use the prisma2markdown update
command, you have to setup your markdown
with the following script:
\n[comment]: # (prisma2markdown)\n\n[comment]: # ({TARGET_PRISMA_SCRIPT})
replacing {TARGET_PRISMA_SCRIPT} with a path to the prisma script then calling
the cli command: prisma update --markdown-target PATH_TO_MARKDOWN
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file prisma2markdown-1.0.0.tar.gz
.
File metadata
- Download URL: prisma2markdown-1.0.0.tar.gz
- Upload date:
- Size: 18.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0133eda4c087d8192b590c9ceba7c4a8ab42f72bbd38841251a2acfbe57a126b |
|
MD5 | 298bdf06059d6286f708e9c83a8a52a9 |
|
BLAKE2b-256 | f68775196704980b53bf7985958c2be6bc34f13e66ed0ec7f65173db1880492c |
File details
Details for the file prisma2markdown-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: prisma2markdown-1.0.0-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e981497fbc403cd8ef3f426e6ed1a4c97a9de7b882c0c4897fa40b8043ff64ea |
|
MD5 | a249028c4a808f2a8da62069226b7dd5 |
|
BLAKE2b-256 | e58c40a24d28ffb35ce7b4462da26b6c0883d1c4a7a82125400ae27efe6a9883 |