Importing JSON into Capella Data package
Project description
JSON2Capella
Command-line tool for importing package definitions from JSON files into a Capella model's data package.
Documentation
Read the full documentation on Github pages.
Examples
Apply package definition from .json file to Capella model layer's root data package:
python -m json2capella \
-i tests/data/example_jsons/package1.json \
-m tests/data/empty_project_60 \
-l la \
Import package definitions from folder with .json files to Capella model layer's root data package:
python -m json2capella \
-i tests/data/example_jsons \
-m tests/data/empty_project_60 \
-l la
Installation
You can install the latest released version directly from PyPI.
pip install json2capella
To set up a development environment, clone the project and install it into a virtual environment.
git clone https://github.com/DSD-DBS/json2capella
cd json2capella
python -m venv .venv
source .venv/bin/activate.sh # for Linux / Mac
.venv\Scripts\activate # for Windows
pip install -U pip pre-commit
pip install -e '.[docs,test]'
pre-commit install
Contributing
We'd love to see your bug reports and improvement suggestions! Please take a look at our guidelines for contributors for details.
Licenses
This project is compliant with the REUSE Specification Version 3.0.
Copyright DB InfraGO AG, licensed under Apache 2.0 (see full text in LICENSES/Apache-2.0.txt)
Dot-files are licensed under CC0-1.0 (see full text in LICENSES/CC0-1.0.txt)
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file json2capella-0.3.1.tar.gz.
File metadata
- Download URL: json2capella-0.3.1.tar.gz
- Upload date:
- Size: 37.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee69f2f191763d46770ba8ff0d3b7069cdfbd0d1ae699f51a0e37089488d70df
|
|
| MD5 |
fa679323e6fe9c35d12ba7686a437467
|
|
| BLAKE2b-256 |
3ac9246fba353cf7a7467ecf7621319261566b4de7d90fc0d2883bbbcb2e6977
|
Provenance
The following attestation bundles were made for json2capella-0.3.1.tar.gz:
Publisher:
build-test-publish.yml on DSD-DBS/json2capella
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
json2capella-0.3.1.tar.gz -
Subject digest:
ee69f2f191763d46770ba8ff0d3b7069cdfbd0d1ae699f51a0e37089488d70df - Sigstore transparency entry: 195009152
- Sigstore integration time:
-
Permalink:
DSD-DBS/json2capella@0a95114c2822fcaa950f4b81b572caa6be45c0c7 -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/DSD-DBS
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-test-publish.yml@0a95114c2822fcaa950f4b81b572caa6be45c0c7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file json2capella-0.3.1-py3-none-any.whl.
File metadata
- Download URL: json2capella-0.3.1-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6405004a0b26d8b1a014e3b89273d755b42c05a87e54033eb3bf3b6979529de0
|
|
| MD5 |
9b12ebaa4613c24672aa4ae210411462
|
|
| BLAKE2b-256 |
662aab32e782294a5db28a0ecdeecab1dae5fa0ac5a061da5f1fe2ad16a7c7cc
|
Provenance
The following attestation bundles were made for json2capella-0.3.1-py3-none-any.whl:
Publisher:
build-test-publish.yml on DSD-DBS/json2capella
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
json2capella-0.3.1-py3-none-any.whl -
Subject digest:
6405004a0b26d8b1a014e3b89273d755b42c05a87e54033eb3bf3b6979529de0 - Sigstore transparency entry: 195009158
- Sigstore integration time:
-
Permalink:
DSD-DBS/json2capella@0a95114c2822fcaa950f4b81b572caa6be45c0c7 -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/DSD-DBS
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-test-publish.yml@0a95114c2822fcaa950f4b81b572caa6be45c0c7 -
Trigger Event:
push
-
Statement type: