No project description provided
Project description
YouScan image recognition API client on Python
Usage
from youscan_ir_client.client import YouScanIRClient
from youscan_ir_client.entities import *
CLIENT_ID = "<your-client-id"
CLIENT_SECRET = "<your-client-secret>"
async def example():
req = ImageDetectReqParams(
images=[
Image(url="<url>"),
Image(b64_content="<content-bytes>"),
],
analyse_attributes=[
AnalysisAttributes.PEOPLE,
AnalysisAttributes.OBJECTS,
],
)
async with YouScanIRClient(CLIENT_ID, CLIENT_SECRET) as cl:
return await cl.analyse(req)
results = asyncio.run(example())
Development
Local dev environment
- Install pyenv
curl https://pyenv.run | bash
(or manually install pyenv and it's virtualenv plugin) - Install required python version
pyenv install
- Create virtual environment
pyenv virtualenv <env-name>
- Activate virtual environment
pyenv activate <env-name>
- Install dependencies via
make setup
Release
- Add new tag to the desired commit in form
vYY.MM.NN
, whereNN
is the sequential number of release made in this month starting from 0. Leading zeroes in each number should be ommited. For instance, the first release in Feb 2023 will have tagv23.1.0
, tenth -v23.1.10
.git tag v23.1.0
- Push new tag, CI will do the rest.
git push --tags
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
youscan-ir-client-23.2.0.tar.gz
(13.3 kB
view details)
Built Distribution
File details
Details for the file youscan-ir-client-23.2.0.tar.gz
.
File metadata
- Download URL: youscan-ir-client-23.2.0.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad993405acaf5d5b5d4f25c237a52730f50b99baaefe56b0177e21e69a05c320 |
|
MD5 | f644019110b13eaa875c2d69477a4e16 |
|
BLAKE2b-256 | 46569d5250fa719096d796f530e8d047e18fc203e36d3a0484be265e09d3951f |
File details
Details for the file youscan_ir_client-23.2.0-py3-none-any.whl
.
File metadata
- Download URL: youscan_ir_client-23.2.0-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81d0df02eb376a4637333cb12c2c0879a813c2150b540f44531f2ef6c0e3d1f5 |
|
MD5 | 42210a0d27c1da43ec7317b5e042b293 |
|
BLAKE2b-256 | 1f2a4706d71057a3c24d0c49ad61c1389fb2332431a037f4845349dc6e103ee6 |