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
- Install Poetry
pip install poetry
- Add pika and requests libraries
poetry add pika
poetry add requests
- Build
poetry lock --no-update
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
│ ├── 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.
Metadata
Release files for faceid-lib 3.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| faceid-lib-3.0.0.tar.gz | 1.3 MB | Without provenance | Details for faceid-lib-3.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| faceid_lib-3.0.0-cp38-cp38-manylinux_2_31_x86_64.whl | CPython 3.8 | CPython 3.8 | Linux glibc 2.31+ x86-64 | Details for faceid_lib-3.0.0-cp38-cp38-manylinux_2_31_x86_64.whl |
Total release size: 2.7 MB
Release files / faceid-lib-3.0.0.tar.gz
| Download URL | faceid-lib-3.0.0.tar.gz |
|---|---|
| Size | 1.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
318c34a070aae36e15c3119d09fc8e4774a65c43ad8d2c8873dcbc15cb84491d
|
|
BLAKE2b-256 checksum How to use checksums |
9bc922dfd851adc33c24b55df4532254dc443562523dda814a6f0a72db907941
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.8.0 Linux/5.11.0-41-generic
|
Release files / faceid_lib-3.0.0-cp38-cp38-manylinux_2_31_x86_64.whl
| Download URL | faceid_lib-3.0.0-cp38-cp38-manylinux_2_31_x86_64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.8 Linux glibc 2.31+ x86-64 |
|
SHA-256 checksum How to use checksums |
cef2a301f052805a6a2ce784db76050b469a05e76512548f458888af2c22ed56
|
|
BLAKE2b-256 checksum How to use checksums |
68d53aa343dffe47771b390ba3871081614947353887b81cef1b76d95065cfda
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.8.0 Linux/5.11.0-41-generic
|
Security for faceid-lib 3.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.