Make graphs of HasProperties class networks
Project description
The purpose of this library is to quickly and easily create UML graphs
that show inheritance structure of HasProperties
class hierarchies.
For more information on HasProperties
classes, see
properties.
To install
pip install properties_inheritance_graph
then in Python
from properties_inheritance_graph import make_graph
import omf # or any other library built on properties
graph, registry = make_graph(
registry=omf.PointSetElement._REGISTRY,
expand_props=True,
only_new_props=True,
abstract_regex='^.*Model$',
)
In the above example, the properties-based OMF library is used for demonstration.
To render these graphs to file or in a Jupyter notebook, you may use nxpd. Graphviz must also be installed.
import nxpd
nxpd.draw(graph, filename='inheritance_graph.png')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file properties-inheritance-graph-1.0.0.tar.gz
.
File metadata
- Download URL: properties-inheritance-graph-1.0.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/38.2.4 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82ee9126c293c25476d484505876f056568d4345dce2521031042779293939d9 |
|
MD5 | 534606ebf0537a23d8b1ea0bf0d1926e |
|
BLAKE2b-256 | f9d9a9d977a4117a51485df0203b7d22be7d446259d0fdb6ece8c31f4eefb2af |
File details
Details for the file properties_inheritance_graph-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: properties_inheritance_graph-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/38.2.4 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27c0f483a88b02ef8f5d794ce8ae4c6fabd65b3a493a03c0f84360a7c3088316 |
|
MD5 | c4f494f6eb9162f8bda0c8a3c2b2c02e |
|
BLAKE2b-256 | 1b6209198cf4888e1dd3f373d81624716dde5ed9292c27b58e0e827a9b840922 |