Metadata-Version: 2.1
Name: prisma2markdown
Version: 1.0.4
Summary: A pure python mermaid generator for prisma schema.
Author-email: HO Olivier <hozhenwai@gmail.com>
Project-URL: Source, https://github.com/HOZHENWAI/py-prisma2markdown
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE

# 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```
