Simple and flexible AI/ML workflow engine by Picaso - FaceID
Project description
picaso-engine ML faceid workflow
Overview
This is a helper library for picaso-engine ML faceid 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
- Rate-limiting strategies
Author
picaso-engine ML (https://pypi.org/project/faceid-lib/), Dani Gunawan
Instructions
Version number should be updated in init.py and pyproject.toml
- Install Poetry
pip install poetry
- Add pika and requests libraries
poetry add pika
poetry add requests
- Build
poetry install
poetry build
- Publish to TestPyPI
poetry publish -r testpypi
- Install from TestPyPI
pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple faceid-lib
- Publish to PyPI
poetry publish
- Install from PyPI
pip install faceid-lib
- Test imported library from CMD
python -m faceid_lib
- Import EventReceiver
from faceid_lib.events.event_receiver import EventReceiver
- Import EventProducer
from faceid_lib.events.event_producer import EventProducer
- Import FastAPILimiter, RateLimiter
from faceid_lib.ratelimiter import FastAPILimiter
from faceid_lib.ratelimiter.depends import RateLimiter
Structure
.
├── LICENSE
├── poetry.lock
├── pyproject.toml
├── faceid_lib
│ ├── __init__.py
│ ├── __main__.py
│ ├── events
│ ├── __init__.py
│ ├── event_producer.py
│ └── event_receiver.py
│ ├── ratelimiter
│ ├── __init__.py
│ └── depends.py
│ ├── logger
│ ├── __init__.py
│ └── logger_helper.py
│ ├── workflow
│ ├── __init__.py
│ └── workflow_helper.py
└── README.md
Changelogs 1.0.5 (2021-10-24)
- downgrade pika version to 1.1.0
Changelogs 1.0.4 (2021-10-24)
- enhancment rate limiting
License
Licensed under the Apache License, Version 2.0. Copyright 2020-2021 picaso-engine ML, Dani Gunawan.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
faceid-lib-1.0.6.tar.gz
(6.6 kB
view hashes)
Built Distribution
Close
Hashes for faceid_lib-1.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23c41640a0dd7615a5b04f1fdce924b15a9dd310d6a95f84c1a6e534b365155c |
|
MD5 | 7e4b8a30ca0643ee88c8ebd30b9bbf98 |
|
BLAKE2b-256 | c0e42d64117bc67ab5683f95840a2c56e048bd2c58f2c0c02a8093d093213bae |