Skip to content

Attumm/semantic-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Semantic-model

All data about data in one model. The single source of truth about data in one model.

Install

pip install semantic-model

Create initial sm model

python3 -m semantic_model -mode one_to_one -input example.json > sm_model.json

Run sm model

python3 -m semantic_model -input example.json -sm sm_model.json

Display sm model

sudo docker run -i attumm/dsm_png:latest < sm_model.json > output.png

Extend

Add to the functionality by creating your own custom formatters. And adding them into semantic-model.

from semantic_model import POSTFORMAT


def strip(item, **kwargs):
    return item.strip()

POSTFORMAT["strip"] = strip

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published