Skip to main content

Show Entity Relationship diagrams of tables in Datasette

Project description

datasette-table-diagram

PyPI Changelog Tests License

Show Entity Relationship diagrams of tables in Datasette

Installation

Install this plugin in the same environment as Datasette.

datasette install datasette-table-diagram

Usage

Databases gain a new database action menu item called "Table diagram", which links to a page that displays Mermaid Entity Relationship diagrams of the tables in that database.

These diagrams can be panned and zoomed, or users can click a table name to zoom to that table and its relationships.

Users will only see tables that they have permission to view.

Screenshot of a diagram of the fixtures.db table - tables are joined by curved lines, there is a + / - / reset button and a list of tables.

Development

To set up this plugin locally, first checkout the code. You can confirm it is available like this:

cd datasette-table-diagram
# Confirm the plugin is visible
uv run datasette plugins

To run the tests:

uv run pytest

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

datasette_table_diagram-0.1a0.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datasette_table_diagram-0.1a0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file datasette_table_diagram-0.1a0.tar.gz.

File metadata

  • Download URL: datasette_table_diagram-0.1a0.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for datasette_table_diagram-0.1a0.tar.gz
Algorithm Hash digest
SHA256 8c80fe62cd30833571422082bc16c2d871432c65f27234a72605bd8d73824390
MD5 031578d8283537415ac3de179898a5fc
BLAKE2b-256 7cc9d003dee45bf493c87143f9c61afc6e2668c7f965f905bbf54c9b468faeac

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_table_diagram-0.1a0.tar.gz:

Publisher: publish.yml on datasette/datasette-table-diagram

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file datasette_table_diagram-0.1a0-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_table_diagram-0.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 0530da78e594971220ab0228a73d6e477cdcda987a2906da727c10ac7a29a4ec
MD5 1c0d0e5383b46f1326674b8951e2b072
BLAKE2b-256 349f8fe6f80aee0c907fee39f56bb0a3b5c065671dbaeb0bafd4cbd19c927e54

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_table_diagram-0.1a0-py3-none-any.whl:

Publisher: publish.yml on datasette/datasette-table-diagram

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page