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.3.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: prisma2markdown-1.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 c279b65158f1a3a728f195b8a2c3246ceae4d0631ea21f151cfda7412dbc8b55
MD5 9b0f7880fe8190df1c6c7ddc4dee7340
BLAKE2b-256 5d5556e46fde2ef037578e36e10dca28c005360d99fde6ade55cf417f35e2fb6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for prisma2markdown-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ea4a606a338f17d32c09178c46fb72d18e7c6ad2c5677218fb6071d41a527087
MD5 0e7660ec5817a03e4d045bb8a6420225
BLAKE2b-256 4d4638e4e85afb6b90c4427ab6221dc66db71cb07114e91de3c69c514a099f7c

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