Metadata-Version: 2.1
Name: shacl2code
Version: 0.0.3
Summary: Convert SHACL model file to code bindings
Project-URL: Homepage, https://github.com/JPEWdev/shacl2code
Project-URL: Repository, https://github.com/JPEWdev/shacl2code.git
Project-URL: Issues, https://github.com/JPEWdev/shacl2code/issues
Author-email: Joshua Watt <JPEWhacker@gmail.com>
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Build Tools
Requires-Dist: jinja2>=3.1.2
Requires-Dist: pyld>=2.0.3
Provides-Extra: dev
Requires-Dist: pytest-server-fixtures>=1.7; extra == 'dev'
Requires-Dist: pytest>=7.4; extra == 'dev'
Description-Content-Type: text/markdown

# Convert SHACL Model to code bindings

This tool can be used to convert a JSONLD SHACL model into various code
bindings

## Installation

`shacl2code` can be installed using pip:

```shell
python3 -m pip install shacl2code
```

## Usage

`shacl2code` can generate bindings from either a local file:
```shell
shacl2code generate -i model.jsonld python -o out.py
```
Or from a URL:
```shell
shacl2code generate -i https://spdx.github.io/spdx-3-model/model.jsonld python -o out.py
```
Or from stdin:
```shell
cat model.jsonld | shacl2code generate -i - python -o - > out.py
```

For more information, run:
```shell
shacl2code --help
```
