Skip to main content

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
  • Computing vector similarity helper (ex. Face Similarity Search)

Author

picaso-engine ML (https://pypi.org/project/faceid-lib/), Dani Gunawan

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 lock --no-update
poetry install
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  faceid-lib
  1. Publish to PyPI
poetry publish
  1. Install from PyPI
pip install faceid-lib
  1. Test imported library from CMD
python -m faceid_lib
  1. Import EventReceiver
from faceid_lib.events.event_receiver import EventReceiver
  1. Import EventProducer
from faceid_lib.events.event_producer import EventProducer
  1. 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
│   ├── vector_similarity
│       ├── __init__.py
│       ├── v1
│           ├── __init__.py
│           └── power.py
└── README.md

Changelogs 2.0.0 - 2.0.1 (2023-05-02)

  • compute similarity helper

Changelogs 1.0.9 (2022-06-14)

  • modify response & handler

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


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-3.0.0.tar.gz (1.3 MB view hashes)

Uploaded Source

Built Distribution

faceid_lib-3.0.0-cp38-cp38-manylinux_2_31_x86_64.whl (1.4 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.31+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page