Katana ML Skipper Library
This is a helper library for Katana ML Skipper workflow product. The idea of this library is to wrap all reusable code to simplify and improve workflow implementation.
Supported functionality:
- API to communicate with RabbitMQ for event receiver/producer
- Workflow call helper
- Logger call helper
File Structure
.
- LICENSE
- poetry.lock
- pyproject.toml
- __init__.py
- __main__.py
- __init__.py
- exchange_producer.py
- exchange_receiver.py
- event_producer.py
- event_receiver.py
- __init__.py
- logger_helper.py
- __init__.py
- workflow_helper.py
- README.md
skipper_lib
events
logger
workflow
Instructions
Version number should be updated in init.py and pyproject.toml
- Install Poetry
- Add pika and requests libraries
- Build
- Publish to TestPyPI
- Install from TestPyPI
- Publish to PyPI
- Install from PyPI
- Test imported library from CMD
- Import EventReceiver
- Import EventProducer
pip install poetry
poetry add pika
poetry add requests
poetry build
poetry publish -r testpypi
pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple skipper-lib
poetry publish
pip install skipper-lib
python -m skipper_lib
from skipper_lib.events.event_receiver import EventReceiver
from skipper_lib.events.event_producer import EventProducer
License
Licensed under the Apache License, Version 2.0. Copyright 2020-2021 Katana ML, Andrej Baranovskij. Copy of the license.