Skip to main content

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

Metadata

Release files for sightengine-async 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sightengine-async 0.2.0
File Size Uploaded Provenance
sightengine_async-0.2.0.tar.gz 5.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for sightengine-async 0.2.0
File Interpreter ABI Platform
sightengine_async-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.6 kB

Release files / sightengine_async-0.2.0.tar.gz

Download URL sightengine_async-0.2.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
31f6484b342affb0e92a9eeede3d421967fe7e1cd9fc2dd2fba0b90001e066d9
BLAKE2b-256 checksum
How to use checksums
fa14de636e38aed5c232f33cd838649a4fd4821babc0c783fe2aa40143c38270
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.2

Release files / sightengine_async-0.2.0-py3-none-any.whl

Download URL sightengine_async-0.2.0-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1458fc74b0612c1942d510080e8323ae6c0da225dd623f6e0bdc3c0f53e70b99
BLAKE2b-256 checksum
How to use checksums
983e5890a09a794bf73c278c7700044671529595b6a6d75e84f0d1d59c7b8c7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.2

Security for sightengine-async 0.2.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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page