# Semantic-model
All data about data in one model.
The single source of truth about data in one model.
### Install
```sh
pip install semantic-model
```
### Create initial sm model
```sh
python3 -m semantic_model -mode one_to_one -input example.json > sm_model.json
```
### Run sm model
```sh
python3 -m semantic_model -input example.json -sm sm_model.json
```
### Display sm model
```sh
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.
```python
from semantic_model import POSTFORMAT
def strip(item, **kwargs):
return item.strip()
POSTFORMAT["strip"] = strip
```
Raw data
{
"_id": null,
"home_page": "https://github.com/Attumm/semantic-model",
"name": "semantic-model",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Melvin Bijman",
"author_email": "bijman.m.m@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/07/a1/275a50577b85bad1b7c5cdc0b5bab2d923ecea663f2b9f75d71d7736c39d/semantic-model-3.0.0.tar.gz",
"platform": null,
"description": "# Semantic-model\nAll data about data in one model.\nThe single source of truth about data in one model.\n\n\n### Install\n```sh\npip install semantic-model\n```\n\n### Create initial sm model\n```sh\npython3 -m semantic_model -mode one_to_one -input example.json > sm_model.json\n```\n\n### Run sm model\n```sh\npython3 -m semantic_model -input example.json -sm sm_model.json\n```\n\n### Display sm model\n```sh\nsudo docker run -i attumm/dsm_png:latest < sm_model.json > output.png\n```\n\n### Extend\nAdd to the functionality by creating your own custom formatters.\nAnd adding them into semantic-model.\n\n```python\nfrom semantic_model import POSTFORMAT\n\n\ndef strip(item, **kwargs):\n return item.strip()\n\nPOSTFORMAT[\"strip\"] = strip\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "All data about data in one model",
"version": "3.0.0",
"project_urls": {
"Homepage": "https://github.com/Attumm/semantic-model"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "bbf4903bacee2cac78228117f53796fb00e461e93c231e114d3f4b3236695c77",
"md5": "f71e7a5374ff0ff19cfaf7035457725d",
"sha256": "ef76315371d02b3999bfca7c6e1d7ef1ebcb1dfc81c7b3b04ce7106b550783bf"
},
"downloads": -1,
"filename": "semantic_model-3.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f71e7a5374ff0ff19cfaf7035457725d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 9925,
"upload_time": "2023-10-03T09:09:37",
"upload_time_iso_8601": "2023-10-03T09:09:37.160170Z",
"url": "https://files.pythonhosted.org/packages/bb/f4/903bacee2cac78228117f53796fb00e461e93c231e114d3f4b3236695c77/semantic_model-3.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "07a1275a50577b85bad1b7c5cdc0b5bab2d923ecea663f2b9f75d71d7736c39d",
"md5": "948bef1edf85bbe426b0891ceddf8ce3",
"sha256": "81d39ff4b3d0064f38a975952f56ba10fe61613ef646857c517030353cc2af66"
},
"downloads": -1,
"filename": "semantic-model-3.0.0.tar.gz",
"has_sig": false,
"md5_digest": "948bef1edf85bbe426b0891ceddf8ce3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 14920,
"upload_time": "2023-10-03T09:09:39",
"upload_time_iso_8601": "2023-10-03T09:09:39.462230Z",
"url": "https://files.pythonhosted.org/packages/07/a1/275a50577b85bad1b7c5cdc0b5bab2d923ecea663f2b9f75d71d7736c39d/semantic-model-3.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-03 09:09:39",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Attumm",
"github_project": "semantic-model",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "semantic-model"
}