Skip to main content

BESSER Object Constraint Language Interpreter

⭐ Part of BESSER, the open-source low-code platform that turns models into working apps. If this project is useful to you, please star the main repo too.

B-OCL is a tool designed to parse and evaluate the OCL constraints designed on BESSER models. It is a python based implementation, that utilises parser and listener generated with the ANTLR4 grammer.

BESSER is a low-modeling low-code open-source platform built on top of our Python-based personal interpretation of a "Universal Modeling Language"

Basic Installation

We have tested B-OCL with python 3.9+. We recommend creating a virtual environment using venv <https://docs.python.org/3/tutorial/venv.html>, or conda <https://docs.conda.io/en/latest/>).

Dependencies


B-OCL depends on BESSER for parsing the OCL constraints and providing a concrete syntax tree (CST) to evaluate. The latest stable version of BESSER is available in the Python Package Index (PyPi) and can be installed using

$ pip install besser

B-OCL Installation

Stable version of B-OCL interpreter can be installed via

$ pip install bocl

Building From Source

To obtain the full code, including examples and tests, you can clone the git repository.

$ git clone https://github.com/BESSER-PEARL/b-ocl-Interpreter
$ cd b-ocl-Interpreter

To install the package with its test dependencies, run the following in a virtual environment (recommended)

$ pip install -e ".[test]"

Contributing

We encourage contributions from the community and any comment is welcome!

If you are interested in contributing to this project, please read the CONTRIBUTING.md file.

Code of Conduct

At BESSER, our commitment is centered on establishing and maintaining development environments that are welcoming, inclusive, safe and free from all forms of harassment. All participants are expected to voluntarily respect and support our Code of Conduct.

Governance

The development of this project follows the governance rules described in the GOVERNANCE.md document.

Contact

You can reach us at: info@besser-pearl.org

Website: https://besser-pearl.github.io/website/

Documentation

More details about B-OCL can be found here https://b-ocl-interpreter.readthedocs.io/en/latest/

License

This project is licensed under the MIT license.

Metadata

Release files for bocl 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bocl 1.0.4
File Size Uploaded Provenance Actions
bocl-1.0.4.tar.gz 15.2 kB Without provenance Details for bocl-1.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bocl 1.0.4
File Interpreter ABI Platform Actions
bocl-1.0.4-py3-none-any.whl Python 3 none any Details for bocl-1.0.4-py3-none-any.whl

Total release size: 27.5 kB

Release files / bocl-1.0.4.tar.gz

Download URL bocl-1.0.4.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9da40c5736f82d7af87591478933fe92eeea6d3cd9a0f348523090be6d083098
BLAKE2b-256 checksum
How to use checksums
6dcb7a989f50bf6bfc4ce8b24c029cbc6aa0cbc5485347080d450a61c12bde4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / bocl-1.0.4-py3-none-any.whl

Download URL bocl-1.0.4-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0956769d4e8990b45a511cbc7da1043c0e13fc068f1e0d87c34087bef1f6808c
BLAKE2b-256 checksum
How to use checksums
206a31f9197f3cfbacd7a6dbbd32760b5e8509e19499aa80230520c758316721
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for bocl 1.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page