pip install youscan-ir-client
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())
- 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
- 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