Skip to main content

Importing JSON into Capella Data package

Project description

JSON2Capella

image image

Command-line tool for importing package definitions from JSON files into a Capella model's data package.

Showcase

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

json2capella-0.3.1.tar.gz (37.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

json2capella-0.3.1-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

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

Hashes for json2capella-0.3.1.tar.gz
Algorithm Hash digest
SHA256 ee69f2f191763d46770ba8ff0d3b7069cdfbd0d1ae699f51a0e37089488d70df
MD5 fa679323e6fe9c35d12ba7686a437467
BLAKE2b-256 3ac9246fba353cf7a7467ecf7621319261566b4de7d90fc0d2883bbbcb2e6977

See more details on using hashes here.

Provenance

The following attestation bundles were made for json2capella-0.3.1.tar.gz:

Publisher: build-test-publish.yml on DSD-DBS/json2capella

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for json2capella-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6405004a0b26d8b1a014e3b89273d755b42c05a87e54033eb3bf3b6979529de0
MD5 9b12ebaa4613c24672aa4ae210411462
BLAKE2b-256 662aab32e782294a5db28a0ecdeecab1dae5fa0ac5a061da5f1fe2ad16a7c7cc

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page