Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Export | 176 | 6 months ago | 2 | December 07, 2022 | 4 | R | ||||
R package for streamlined export of graphs and data tables. | ||||||||||
Pgfplots | 140 | 2 months ago | 204 | TeX | ||||||
pgfplots - A TeX package to draw normal and/or logarithmic plots directly in TeX in two and three dimensions with a user-friendly interface and pgfplotstable - a TeX package to round and format numerical tables. Examples in manuals and/or on web site. | ||||||||||
Ascii Data | 113 | 1 | 2 | 4 years ago | 4 | May 01, 2019 | 3 | apache-2.0 | Java | |
A small Java library for producing nice looking text-based line-graphs and tables. | ||||||||||
Sqlalchemy_schemadisplay | 105 | 11 | 8 | 8 months ago | 5 | January 27, 2016 | 10 | other | Python | |
Gcc | 99 | 2 years ago | 3 | mit | Python | |||||
GCC: Graph Contrastive Coding for Graph Neural Network Pre-Training | ||||||||||
Leafpop | 89 | 2 | 6 | a year ago | 4 | May 22, 2021 | 6 | other | R | |
Include Tables, Images and Graphs in Leaflet Popups | ||||||||||
Rimbu | 85 | 10 | 14 days ago | 25 | July 02, 2022 | 3 | mit | TypeScript | ||
Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools. | ||||||||||
Sub Gc | 75 | a year ago | 1 | mit | Jupyter Notebook | |||||
Code repository for our paper "Comprehensive Image Captioning via Scene Graph Decomposition" in ECCV 2020. | ||||||||||
Tern | 51 | 14 hours ago | 80 | other | R | |||||
Table, Listings, and Graphs (TLG) library for common outputs used in clinical trials | ||||||||||
Graphvix | 50 | 3 | 4 | 6 months ago | 6 | July 08, 2018 | 7 | mit | Elixir | |
Graphviz for Elixir |
Turn SQLAlchemy DB Model into a graph.
See SQLAlchemy wiki for the previous version of this doc.
You will need atleast SQLAlchemy and pydot along with graphviz for this. Graphviz-cairo is highly recommended to get tolerable image quality. If PIL and an image viewer are available then there are functions to automatically show the image. Some of the stuff, specifically loading list of tables from a database via a mapper and reflecting indexes currently only work on postgres.
This is an example of database entity diagram generation:
from sqlalchemy import MetaData
from sqlalchemy_schemadisplay import create_schema_graph
# create the pydot graph object by autoloading all tables via a bound metadata object
graph = create_schema_graph(metadata=MetaData('postgres://user:[email protected]/database'),
show_datatypes=False, # The image would get nasty big if we'd show the datatypes
show_indexes=False, # ditto for indexes
rankdir='LR', # From left to right (instead of top to bottom)
concentrate=False # Don't try to join the relation lines together
)
graph.write_png('dbschema.png') # write out the file
And an UML class diagram from a model:
from myapp import model
from sqlalchemy_schemadisplay import create_uml_graph
from sqlalchemy.orm import class_mapper
# lets find all the mappers in our model
mappers = [model.__mapper__]
for attr in dir(model):
if attr[0] == '_': continue
try:
cls = getattr(model, attr)
mappers.append(cls.property.entity)
except:
pass
# pass them to the function and set some formatting options
graph = create_uml_graph(mappers,
show_operations=False, # not necessary in this case
show_multiplicity_one=False # some people like to see the ones, some don't
)
graph.write_png('schema.png') # write out the file