# Async Sight Engine Wrapper
Async Python wrapper for the Sight Engine API.
Currently a work in progress.
## Example Usage
```python
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
Raw data
{
"_id": null,
"home_page": null,
"name": "sightengine-async",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.10",
"maintainer_email": null,
"keywords": "sightengine, async, aiohttp, api",
"author": "Nate Shoffner",
"author_email": "nate.shoffner@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/83/c1/025c2bd548ac1eeb53867510dfe82ea00e221766d689a6a8f513535adf74/sightengine_async-0.1.0.tar.gz",
"platform": null,
"description": "# Async Sight Engine Wrapper\n\nAsync Python wrapper for the Sight Engine API.\n\nCurrently a work in progress.\n\n## Example Usage\n\n```python\nimport asyncio\nimport os\nfrom dotenv import load_dotenv\n\nfrom sightengine.client import SightEngineClient\nfrom sightengine.models import CheckRequest\n\nload_dotenv()\n\n\nasync def main():\n client = SightEngineClient(\n api_user=os.getenv(\"SIGHTENGINE_API_USER\"),\n api_secret=os.getenv(\"SIGHTENGINE_API_SECRET\"),\n )\n\n request = CheckRequest(\n models=[\n \"nudity-2.1\",\n \"weapon\",\n \"alcohol\",\n \"medical\",\n \"gambling\",\n ],\n url=\"https://sightengine.com/assets/img/examples/example5.jpg\",\n )\n\n response = await client.check(request)\n print(response)\n\nif __name__ == \"__main__\":\n asyncio.run(main())\n```\n\n## TODO\n\n[] Feedback endpoint\n[] Genai opt_generators\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Asynchronous Python client for the SightEngine API",
"version": "0.1.0",
"project_urls": {
"Bug Tracker": "https://github.com/NateShoffner/sightengine-python-async/issues",
"Homepage": "https://github.com/NateShoffner/sightengine-python-async"
},
"split_keywords": [
"sightengine",
" async",
" aiohttp",
" api"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b565df08365c83d0b0e5fb7a18c4e614997067fb2f613d8f4b7d0d97d8b9831a",
"md5": "43b1aac4c9bb898069d61f230752e527",
"sha256": "498e45a95f06718b78c6c25a4ff9a7ccdf89bb0eab38f2eb4f5c6975f2ae2858"
},
"downloads": -1,
"filename": "sightengine_async-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "43b1aac4c9bb898069d61f230752e527",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.10",
"size": 7183,
"upload_time": "2025-08-16T18:28:51",
"upload_time_iso_8601": "2025-08-16T18:28:51.892548Z",
"url": "https://files.pythonhosted.org/packages/b5/65/df08365c83d0b0e5fb7a18c4e614997067fb2f613d8f4b7d0d97d8b9831a/sightengine_async-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "83c1025c2bd548ac1eeb53867510dfe82ea00e221766d689a6a8f513535adf74",
"md5": "0e34167f08782516be018c976b79c1ea",
"sha256": "c9d7597abf8cd6110ce46d524546f7e27b296fa43abb172fb326234dd9e0017d"
},
"downloads": -1,
"filename": "sightengine_async-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "0e34167f08782516be018c976b79c1ea",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.10",
"size": 4822,
"upload_time": "2025-08-16T18:28:52",
"upload_time_iso_8601": "2025-08-16T18:28:52.862891Z",
"url": "https://files.pythonhosted.org/packages/83/c1/025c2bd548ac1eeb53867510dfe82ea00e221766d689a6a8f513535adf74/sightengine_async-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-16 18:28:52",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "NateShoffner",
"github_project": "sightengine-python-async",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "sightengine-async"
}