Skip to main content

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

prisma2markdown-1.0.1.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

prisma2markdown-1.0.1-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file prisma2markdown-1.0.1.tar.gz.

File metadata

  • Download URL: prisma2markdown-1.0.1.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for prisma2markdown-1.0.1.tar.gz
Algorithm Hash digest
SHA256 060602569fdf45135f3d462d8ee625681f6ce684192546c335f1dbde07acc9e2
MD5 15480249bb96987dce7a5153a0915244
BLAKE2b-256 c0872a8b3d182f23d4d922e9501060132ba128471c170d884d98be969292f0f5

See more details on using hashes here.

File details

Details for the file prisma2markdown-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for prisma2markdown-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b9d5495bdebf0abb9a75eed2b60fcca11e1ccaf07cf156cb346c059bba44be5e
MD5 fe5b90765d4c062c4274715a87b1d8f4
BLAKE2b-256 ef55bb25e8caf83c9f4b351d4bb66da2fcc71211788acdd807c0ab6a49c44581

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page