Metadata-Version: 2.1
Name: datahub-py
Version: 0.0.11
Summary: Datahub core
Home-page: https://github.com/26medias/Datahub-py
Author: Julien L
Author-email: Julien L <julien@leap-forward.ca>
Project-URL: Homepage, https://github.com/26medias/Datahub-py
Project-URL: Bug Tracker, https://github.com/26medias/Datahub-py/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

# Datahub-py

Pip version of Datahub core

Emitter focused for now, with buffered queue if RabbitMQ isn't running on the local network, rabbitMQ auto-connect, buffer delivery on connection.

Service auto-discovery on the entire wifi network via /specs endpoint


## Project Integration

```
from datahub_py import Project
import config

project = Project(config)
project.beacon.emit("my_queue", { "hello": "world" })

project.beacon.helper.get_local_ip_address()
project.beacon.helper.find_emitters_and_consumers()
project.beacon.helper.find_on_ip("192.168.0.3")
project.beacon.helper.get_available_port()
project.beacon.helper.get_rabbitmq_local_ip()
project.beacon.callService(address, port, endpoint, params)
```


## Build & deploy from source

```
  pip install -e .
  python setup.py sdist
  twine upload dist/datahub_py-0.0.11.tar.gz
  twine upload dist/datahub_py-{version}.tar.gz

  pip uninstall datahub_py && pip install datahub_py
```
