Skip to content

Latest commit

 

History

History
106 lines (75 loc) · 1.86 KB

README.md

File metadata and controls

106 lines (75 loc) · 1.86 KB

Kodiks Ai Lib

Overview

This is a helper library for Kodiks Ai Core 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

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 kodiks-ai-lib
  1. Install from TestPyPI
pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple  kodiks-ai-lib
  1. Publish to PyPI
poetry publish
  1. Install from PyPI
pip install kodiks-ai-lib
  1. Test imported library from CMD
python -m kodiks_ai_lib
  1. Import EventReceiver
from kodiks_ai_lib.events.event_receiver import EventReceiver
  1. Import EventProducer
from kodiks_ai_lib.events.event_producer import EventProducer

Structure

.
├── LICENSE
├── poetry.lock
├── pyproject.toml
├── kodiks_ai_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 2024-2025 Kodiks AI, Copy of the license.