Youverse BiometricInThings API: Python SDK & Sample
This repository contains the Python Module of the Youverse BiT API, an offering within Youverse Services
Getting started
Installing from the source code:
python setup.py install
Use it:
Make sure you have added the environment key-values (YK_BIT_BASE_URL and YK_BIT_X_API_KEY). Machine restart could be required.
from os import getenv
import yk_bit as YKB
# BiometricInThings API Environment Variables
EV_BASE_URL = getenv('YK_BIT_BASE_URL')
EV_API_KEY = getenv('YK_BIT_X_API_KEY')
YKB.BaseUrl.set(EV_BASE_URL)
YKB.Key.set(EV_API_KEY)
# Verifies the camera availability status
if YKB.bit.status() == YKB.BiTStatus.Available:
captured = YKB.capture(capture_timeout=10, anti_spoofing=True, live_quality_analysis=True)
print(captured)
verified = YKB.verify(reference_image=captured.image, capture_time_out=10, matching_score_threshold=0.8)
print(verified)
verified_images = YKB.verify_images(probe_image=verified.verified_image, reference_image=captured.image, matching_score_threshold=0.8)
print(verified_images)
If you're interested in using Youverse BiometricInThings API for identification purposes, please contact us.
Running the sample
A sample python script is also provided in 'sample' folder.
Run:
python run_bit_sample.py
Youverse BiT API Details
For a complete specification of our BiT API please check the swagger file.
Contact & Support
For more information and trial licenses please contact us or join us at our discord community.
Metadata
Release files for yk-bit 2.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 |
|---|---|---|---|---|
| yk_bit-2.0.0.tar.gz | 4.3 kB | Without provenance | Details for yk_bit-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yk_bit-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for yk_bit-2.0.0-py3-none-any.whl |
Total release size: 9.4 kB
Release files / yk_bit-2.0.0.tar.gz
| Download URL | yk_bit-2.0.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
13f9b4e22e22ecf2f5fe0aadf6fd05981e5217d06f6570edd3987d7965b3351b
|
|
BLAKE2b-256 checksum How to use checksums |
395f74d8b0797b69efa16abf2fc1218866e5d539c2d35f87b505881e1be47af7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / yk_bit-2.0.0-py3-none-any.whl
| Download URL | yk_bit-2.0.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1026d81f9b3275e8d2632eb2574b3c4bc499e16db50ad16e60f9e4b60ea3fb11
|
|
BLAKE2b-256 checksum How to use checksums |
245cf61b3c9f54cff1dc5955fc7b1058a0aa9e156d6dbd27ecba81e4fdf3bf4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for yk-bit 2.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.