Skip to main content

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

  1. Install pyenv curl https://pyenv.run | bash (or manually install pyenv and it's virtualenv plugin)
  2. Install required python version pyenv install
  3. Create virtual environment pyenv virtualenv <env-name>
  4. Activate virtual environment pyenv activate <env-name>
  5. Install dependencies via make setup

Release

  1. Add new tag to the desired commit in form vYY.MM.NN , where NN 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 tag v23.1.0 , tenth - v23.1.10.
    • git tag v23.1.0
  2. 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-24.11.0.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

youscan_ir_client-24.11.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file youscan_ir_client-24.11.0.tar.gz.

File metadata

  • Download URL: youscan_ir_client-24.11.0.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for youscan_ir_client-24.11.0.tar.gz
Algorithm Hash digest
SHA256 f2c99eb7e2323939dda240a7e482567d4b7e71257f9a31ed9beb163a70a973e0
MD5 91cf162803f910cdfca9bc3edeb62f35
BLAKE2b-256 d54a603bc7a6cf62cdb14480f3c6d53af65f21facb5c87d4655c558d9ab8f425

See more details on using hashes here.

File details

Details for the file youscan_ir_client-24.11.0-py3-none-any.whl.

File metadata

File hashes

Hashes for youscan_ir_client-24.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df226cefd0fd0da0b27b9cd3d2b6c7c9926ce9128ba988dc6c7d5d9888b210f5
MD5 9369d99a2323da202ad28089e36f9793
BLAKE2b-256 2f9e4d9f37a9da585d1511e4bb6732527d4412b45a8bbc618527704f21d03e2c

See more details on using hashes here.

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