https://github.com/compas-dev/compas_eve

COMPAS Event Extensions: adds event-based communication infrastructure to the COMPAS framework.

https://github.com/compas-dev/compas_eve

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.4%) to scientific vocabulary

Keywords

architecture compas event-bus events mqtt
Last synced: 5 months ago · JSON representation

Repository

COMPAS Event Extensions: adds event-based communication infrastructure to the COMPAS framework.

Basic Info
Statistics
  • Stars: 3
  • Watchers: 11
  • Forks: 2
  • Open Issues: 7
  • Releases: 13
Topics
architecture compas event-bus events mqtt
Created over 2 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog Contributing License Code of conduct Authors

README.md

COMPAS EVE

Event-based communication for the COMPAS framework.

```python

import compaseve as eve pub = eve.Publisher("/helloworld") sub = eve.EchoSubscriber("/hello_world") sub.subscribe() for i in range(10): ... pub.publish(dict(text=f"Hello World {i}")) ```

It is extremely easy to send messages around. COMPAS EVE supports different transport mechanisms to send messages between different threads, processes, computers, etc.

Installation

Install using pip:

```bash

pip install compas_eve

```

Or using conda:

```bash

conda install compas_eve

```

Supported features

  • Publisher/subscriber communication model (N-to-N communication)
  • In-process events
  • MQTT support
  • CPython & IronPython support

Examples

In-process events

The simplest option is to use in-process events. This works for simple applications and allows to communicate between threads.

```python import compas_eve as eve

pub = eve.Publisher("/helloworld") sub = eve.EchoSubscriber("/helloworld") sub.subscribe()

for i in range(10): pub.publish(dict(text=f"Hello World {i}")) ```

MQTT

MQTT is a protocol that allows to send messages between different systems/computers. Using MQTT is very simple as well:

```python import compaseve as eve from compaseve.mqtt import MqttTransport

tx = MqttTransport("broker.hivemq.com") eve.setdefaulttransport(tx)

pub = eve.Publisher("/helloworld") sub = eve.EchoSubscriber("/helloworld") sub.subscribe()

for i in range(10): pub.publish(dict(text=f"Hello World {i}")) ```

This example shows how to send and receive from a single script, but running publishers and subscribers on different scripts, different processes, or even different computers will work the exact same way.

Usage from Rhinoceros 3D

It is possible to use the same code from within Rhino/Grasshopper.

Make sure you have installed it to Rhino using the COMPAS installation mechanism:

bash python -m compas_rhino.install -v 7.0

Owner

  • Name: compas-dev
  • Login: compas-dev
  • Kind: organization

COMPAS - an open source computational framework for research and collaboration in AEC

GitHub Events

Total
  • Issues event: 3
  • Delete event: 2
  • Issue comment event: 11
  • Push event: 17
  • Pull request review event: 15
  • Pull request review comment event: 21
  • Pull request event: 4
Last Year
  • Issues event: 3
  • Delete event: 2
  • Issue comment event: 11
  • Push event: 17
  • Pull request review event: 15
  • Pull request review comment event: 21
  • Pull request event: 4

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 3
  • Total pull requests: 13
  • Average time to close issues: 4 days
  • Average time to close pull requests: 9 days
  • Total issue authors: 3
  • Total pull request authors: 2
  • Average comments per issue: 0.67
  • Average comments per pull request: 0.46
  • Merged pull requests: 12
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 2.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • gonzalocasas (1)
  • funkchaser (1)
  • jckenny59 (1)
  • KIKI007 (1)
Pull Request Authors
  • gonzalocasas (18)
  • Copilot (3)
  • elenialex (2)
Top Labels
Issue Labels
Pull Request Labels
no changelog (1)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 35 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 10
  • Total maintainers: 1
pypi.org: compas-eve

COMPAS Event Extensions: adds event-based communication infrastructure to the COMPAS framework.

  • Versions: 10
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 35 Last month
Rankings
Dependent packages count: 7.5%
Average: 47.9%
Downloads: 66.5%
Dependent repos count: 69.7%
Maintainers (1)
Last synced: 6 months ago