Skip to main content

BESSER Object Constraint Language Interpreter

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 reqs please run the following commands in virtual environment (recommended)

$ pip install -r requirements.txt

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.3

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.3
File Size Uploaded Provenance Actions
bocl-1.0.3.tar.gz 15.2 kB Without provenance Details for bocl-1.0.3.tar.gz

Built distribution (wheel)

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

Total release size: 27.6 kB

Release files / bocl-1.0.3.tar.gz

Download URL bocl-1.0.3.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
41559573b1e4021ec0a1c33ffb8c68614e16c2c220f5ec2506c2c461d4197928
BLAKE2b-256 checksum
How to use checksums
d5dcb756d54403dec18e35fedb30f23ba68257fdead79fe9efef7237267117e0
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.3-py3-none-any.whl

Download URL bocl-1.0.3-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2d09c6625d3b12b1c994e395ec36f420825646928247bfe0762d4192b2d64a08
BLAKE2b-256 checksum
How to use checksums
3a0e4bc79dcaab45b1078cca84e0c25d492e6a945717beaeb893c0e9457102ca
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.3

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