Skip to main content

SOARCA Fin Library

A Python implementation for the SOARCA FIN, compatible with: SOARCA the TNO orchestrator for Open-C2, CACAO and STIX For more information about the SOARCA, we refer the reader to the website of the SOARCA project. For more in depth documentation, see the documentation page on here.

Quick Use

Usage of this SOARCA Fin Library is described here.

Example

An example is given in this project in the file examples/pong_example.py

Contributing

Want to contribute to this project? Please keep in mind the following rules:

  • This repository uses git rebase strategy
  • For each PR, there should be at least one issue
  • Make sure all tests pass (including lint errors)

Running this repository

Requirements

  • Python3
  • Poetry

Setup

Env File

In order to run the project, create an .env file in the root of the project with the following entries:

MQTT_BROKER = "{INSERT_MQTT_BROKER_URL_HERE}"
MQTT_PORT = "{INSERT_MQTT_PORT_HERE}"
MQTT_USERNAME = "{INSERT_USERNAME_HERE}"
MQTT_PASSWD = "{INSERT_PASSWORD_HERE}"

If no .env file is specified, the following default values will be used:

MQTT_BROKER = "localhost"
MQTT_PORT = "1883"
MQTT_USERNAME = "soarca"
MQTT_PASSWD = "password"
Dependencies

To handle dependencies in this project, the package Poetry is used. To install Poetry execute the following command:

pip3 install poetry

To install the dependencies from the pyproject.toml either enter a poetry shell, create a virtual environment or use poetry run. To enter a poetry shell execute the following command in the root of the project:

poetry shell

To install the dependencies in a poetry shell or create a virtual environment, run:

poetry install

Quick Run

To quick run the project, either run it through poetry run or a poetry shell.

Poetry Run

poetry run python examples/pong_example.py

Poetry Shell

python examples/pong_example.py

Running tests

To run the tests in this repository use:

poetry run python -m unittest

To run python linter, first install pylint and then run pylint with the following arguments:

poetry add pylint &&
poetry run pylint --disable=R,C $(git ls-files '*.py')

To format the code base, first install ruff and then run ruff:

poetry add ruff &&
poetry run ruff format

Metadata

Release files for soarca-fin-library 1.0.0

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

Source distribution (sdist)

Source distribution for soarca-fin-library 1.0.0
File Size Uploaded Provenance
soarca_fin_library-1.0.0.tar.gz 14.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for soarca-fin-library 1.0.0
File Interpreter ABI Platform
soarca_fin_library-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 38.3 kB

Release files / soarca_fin_library-1.0.0.tar.gz

Download URL soarca_fin_library-1.0.0.tar.gz
Size 14.6 kB
Tags Source
SHA-256 checksum
How to use checksums
28df13ff74bff79bf9883a28eed9461a5d568a381e827bbfa90a9d866da2315e
BLAKE2b-256 checksum
How to use checksums
d7f6cc3927fb8d649e1508d29d58d91681489efc2f36de2e1649476f6369c2dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / soarca_fin_library-1.0.0-py3-none-any.whl

Download URL soarca_fin_library-1.0.0-py3-none-any.whl
Size 23.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a54bd4c4c57a2d8629fde3513dc379f63a2a4d61cbf333fa1c1caedae80ace2b
BLAKE2b-256 checksum
How to use checksums
90df6434a81e4fe4dd99984e530f54284199ad12c72d2ee3cf2117957ec676fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Security for soarca-fin-library 1.0.0

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