RepositoryPythonUSHoa Kỳ
tedivm

tedivm/paracelsus

Visualize SQLAlchemy Databases using Mermaid or Dot Diagrams.

176sao
18fork
8issue
0lượt xem

🧪 Paracelsus: Công cụ sinh sơ đồ ERD từ SQLAlchemy bằng Mermaid hoặc Dot

Paracelsus đọc trực tiếp mô hình SQLAlchemy để tạo sơ đồ mối quan hệ cơ sở dữ liệu, hỗ trợ cả Mermaid và Dot.

Paracelsus là một công cụ dòng lệnh (CLI) giúp bạn tạo sơ đồ Entity Relationship Diagrams (ERD) từ các mô hình SQLAlchemy đã được định nghĩa. Dự án hỗ trợ xuất ra định dạng Mermaid hoặc Dot (Graphviz), đồng thời cho phép chèn sơ đồ trực tiếp vào tệp Markdown.

✨ Điểm nổi bật

  • Hỗ trợ Mermaid: ERD có thể được chèn trực tiếp vào tài liệu dưới dạng sơ đồ Mermaid.
  • Chạy trong CI/CD: Kiểm tra xem cơ sở dữ liệu có cập nhật không thông qua pipeline tự động.
  • Xuất file Dot/Mermaid: Tạo tệp ERD ở định dạng Dot hoặc Mermaid.
  • Tạo hình ảnh từ Dot: Dùng Dot để sinh SVG/PNG hoặc chỉnh sửa trong GraphViz.
  • Tùy chọn bảng: Bao gồm hoặc loại trừ bảng bằng tên hoặc regex.
  • Sắp xếp cột: Tùy chỉnh thứ tự cột (mặc định: PK, FK, sau đó tên cột).
  • Xử lý dấu phẩy trong kiểu dữ liệu: Tự động thay thế dấu phẩy trong tham số kiểu để tránh lỗi Mermaid.
  • Cấu hình linh hoạt: Hỗ trợ cấu hình qua pyproject.toml hoặc tệp cấu hình khác.

💡 Vì sao đáng chú ý

Paracelsus khác biệt vì khả năng tích hợp sâu vào quy trình làm việc tài liệu và CI/CD. Thay vì chỉ sinh sơ đồ tĩnh, công cụ cho phép tự động cập nhật sơ đồ khi mô hình thay đổi, đồng thời hỗ trợ cả Mermaid (dễ nhúng vào Markdown) và Dot (dễ tùy chỉnh bằng GraphViz). Điều này giúp giảm thiểu công việc thủ công trong việc duy trì tài liệu cơ sở dữ liệu.


#Python #SQLAlchemy #Mermaid #Graphviz #Documentation #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryPython
eralchemy/eralchemy

Entity Relation Diagrams generation tool

1.4k
May 5, 2026
RepositoryPython
datnguye/dbterd

Generate the ERD as a code from dbt artifacts

347
Oct 26, 2026
RepositorySwift
lukilabs/beautiful-mermaid-swift

Native Mermaid diagram renderer for Swift

364
Apr 27, 2026
RepositoryGo
emicklei/dot

Go package for writing graph descriptions using the Graphviz DOT or Mermaid language

299
Oct 9, 2026
RepositorySwift
objecthub/swift-markdownkit

A framework for parsing and transforming Markdown written in Swift 6. The syntax is based on the CommonMark specification. The framework defines an abstract syntax for Markdown, provides parsers for parsing strings into abstract syntax trees, and comes with generators for HTML, attributed strings, plain text, and text with ANSI-markup.

213
Oct 22, 2026
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
190.1M
Jun 1, 2026
RepositoryMarkdown
DigitalPlatDev/FreeDomain

Free domain registration and practical DNS learning resources for everyone.

206.3k
Aug 12, 2026
Repository
getify/You-Dont-Know-JS

A book series (2 published editions) on the JS language.

184.8k
Feb 15, 2026
RepositoryPython
yt-dlp/yt-dlp

A feature-rich command-line audio/video downloader

203.7k
Oct 29, 2026