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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: prisma2markdown-1.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 335850bcdaf7c084dacc19edccadb563dec84d44f54dec8465151be06a7f5733
MD5 5ab270f0a7ad6fc5ae563510b2960560
BLAKE2b-256 ff57389d8f7a57f384f4f934767ba5152fab8b4bd1f2dade227de69bcc0f22f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for prisma2markdown-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d014208ebfcc161e387aac67e5bf9866464e9a0eed8fbf1840494ab69431b297
MD5 5c872e5766e11921d37ab68839213145
BLAKE2b-256 fd1368a20b02713ea81d99cf7241db17d5ffce15bd2e5f35183cf07b2c2bc550

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