Skip to main content

Asynchronous Python client for the SightEngine API

Project description

Async Sight Engine Wrapper

Python package PyPI - Version

Async Python wrapper for the Sight Engine API.

Currently a work in progress.

Example Usage

import asyncio
import os
from dotenv import load_dotenv

from sightengine.client import SightEngineClient
from sightengine.models import CheckRequest

load_dotenv()


async def main():
    client = SightEngineClient(
        api_user=os.getenv("SIGHTENGINE_API_USER"),
        api_secret=os.getenv("SIGHTENGINE_API_SECRET"),
    )

    request = CheckRequest(
        models=[
            "nudity-2.1",
            "weapon",
            "alcohol",
            "medical",
            "gambling",
        ],
        url="https://sightengine.com/assets/img/examples/example5.jpg",
    )

    response = await client.check(request)
    print(response)

if __name__ == "__main__":
    asyncio.run(main())

TODO

[] Feedback endpoint [] Genai opt_generators

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

sightengine_async-0.2.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sightengine_async-0.2.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file sightengine_async-0.2.0.tar.gz.

File metadata

  • Download URL: sightengine_async-0.2.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.2

File hashes

Hashes for sightengine_async-0.2.0.tar.gz
Algorithm Hash digest
SHA256 31f6484b342affb0e92a9eeede3d421967fe7e1cd9fc2dd2fba0b90001e066d9
MD5 467453081dc49b30107eb65d516668e4
BLAKE2b-256 fa14de636e38aed5c232f33cd838649a4fd4821babc0c783fe2aa40143c38270

See more details on using hashes here.

File details

Details for the file sightengine_async-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sightengine_async-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1458fc74b0612c1942d510080e8323ae6c0da225dd623f6e0bdc3c0f53e70b99
MD5 8389911f29dba5a6eced2075b0fc4286
BLAKE2b-256 983e5890a09a794bf73c278c7700044671529595b6a6d75e84f0d1d59c7b8c7c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page