Logo v1.0.0
  • GitHub
  • Katana ML
Logo v1.0.0
  • Documentation
  • Introduction
  • Skipper
  • Getting Started
  • API
  • Workflow
  • Services
  • RabbitMQ
  • Skipper Lib
  • Logger

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
  • 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

Instructions

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

  1. Install Poetry
  2. pip install poetry
  3. Add pika and requests libraries
  4. poetry add pika
    poetry add requests
  5. Build
  6. poetry build
  7. Publish to TestPyPI
  8. poetry publish -r testpypi
  9. Install from TestPyPI
  10. pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple skipper-lib
  11. Publish to PyPI
  12. poetry publish
  13. Install from PyPI
  14. pip install skipper-lib
  15. Test imported library from CMD
  16. python -m skipper_lib
  17. Import EventReceiver
  18. from skipper_lib.events.event_receiver import EventReceiver
  19. Import EventProducer
  20. 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.