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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: prisma2markdown-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 96288aa8a8ba8148e51479237dd4df4d182fb953a9f58f9da36668a8dd87a1b2
MD5 f7abd21ffb38950047b260a4de0cbf17
BLAKE2b-256 3cf2f850c9f29e0a473c7ffae179f617cc822394f26ae1e8f04f59063b6d8bff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for prisma2markdown-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ae68d5c756f66d8799508baab650c14d39974798c9c2ed3ae5a5f645e559d436
MD5 cdf9f1c2979f428bab778e0f4907366e
BLAKE2b-256 186d2751c6ab77d3f1993ef3efe2dcd77e295031acc9c33a95b45d6d13afecd4

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