Skip to main content

Introduction

The packages allows you to programmatically create ER diagrams. The pacakges is simple, but it should help you generate ER diagrams like the one provided by Chen.

Installation

pip install yaerrrr

Example

A single ER can be generated as follows:

import yaerrrr


class TestEr(yaerrrr.AbstractYaerrrrScript):

    def generate_er(self, context: 'yaerrrr.YaerrrContext') -> "yaerrrr.ErDiagram":
        er = context.er

        er.add_entity(name="authors", fields=[
            er.generate_primary_id_key(),
        ])
        er.add_entity(name="books", fields=[
            er.generate_primary_id_key()
        ])
        er.add_1_to_0_n("authors", "books", "writes")

        return er


def main():
    x = TestEr()
    x.run("output.svg")


if __name__ == "__main__":
    main()

and it outputs (for now):

ER

Metadata

Release files for yaerrrr 1.14.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for yaerrrr 1.14.4
File Interpreter ABI Platform Actions
yaerrrr-1.14.4-py3-none-any.whl Python 3 none any Details for yaerrrr-1.14.4-py3-none-any.whl

Release files / yaerrrr-1.14.4-py3-none-any.whl

Download URL yaerrrr-1.14.4-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
646ed3fb8a9531e903d6df0f8df08e357ae52e1b4f5714af18383330934b8f44
BLAKE2b-256 checksum
How to use checksums
ca70d6313febc8c0c971b15ca80be51afc9a52ebb800e37cf560207636d345eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.8.6

Security for yaerrrr 1.14.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page