Skip to content

Latest commit

 

History

History
 
 

skipper-lib

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Katana ML Skipper

Overview

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

Author

Katana ML, Andrej Baranovskij

Instructions

Version number should be updated in init.py and pyproject.toml

  1. Install Poetry
pip install poetry
  1. Add pika and requests libraries
poetry add pika
poetry add requests
  1. Build
poetry build
  1. Publish to TestPyPI
poetry publish -r testpypi
  1. Install from TestPyPI
pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple  skipper-lib
  1. Publish to PyPI
poetry publish
  1. Install from PyPI
pip install skipper-lib
  1. Test imported library from CMD
python -m skipper_lib
  1. Import EventReceiver
from skipper_lib.events.event_receiver import EventReceiver
  1. Import EventProducer
from skipper_lib.events.event_producer import EventProducer

Structure

.
├── LICENSE
├── poetry.lock
├── pyproject.toml
├── skipper_lib
│   ├── __init__.py
│   ├── __main__.py
│   ├── events
│       ├── __init__.py
│       ├── exchange_producer.py
│       ├── exchange_receiver.py
│       ├── event_producer.py
│       └── event_receiver.py
│   ├── logger
│       ├── __init__.py
│       └── logger_helper.py
│   ├── workflow
│       ├── __init__.py
│       └── workflow_helper.py
└── README.md

License

Licensed under the Apache License, Version 2.0. Copyright 2020-2021 Katana ML, Andrej Baranovskij. Copy of the license.