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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: prisma2markdown-1.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 b66996fcbef3bd2f7f0fa26b799e2a4b08ceb1556295204931ec6bd6d9b081a2
MD5 5a3586662f94ca67ba7fabb6b02bec05
BLAKE2b-256 40eccbcc9d0feccf7d6f6e0f5980b9d333fe54b04abd534b7ffa61d319dcab75

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for prisma2markdown-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 cde5bf69a7119132ee707abb60a90ba420d8f849b512e4c0fc2736b9a366f01c
MD5 57fe2ea5eceb5ab3d3c8af88c1aab170
BLAKE2b-256 3ab43474d6fe0413a98c4d74a6491b56cdcbe4764598b594130aa293766c5c16

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