Skip to main content

🌸 About

Anipics wraps several anime image services behind a small sync and async API. It is designed for bots, small apps, scripts, and experiments where you just want a clean url or typed metadata without hand-writing HTTP calls for every provider.

📦 Installation

uv add anipics
pip install anipics

🚀 Quick Start

from anipics import NekosAPI, NekosBest

waifu = NekosBest().get(NekosBest.Types.waifu)
print(waifu.url)

image = NekosAPI().get_random_image(tags=[NekosAPI.Types.girl])
print(image.id, image.url)

Async usage uses a separate client with the same method names:

import asyncio

from anipics import AsyncNekosia


async def main() -> None:
    image = await AsyncNekosia().get(AsyncNekosia.Types.catgirl)
    print(image.url)


asyncio.run(main())

More examples live in examples/. ✨

🧩 Services

Service Best for Extras
NekosAPI 🖼️ Random images and browsable metadata Typed image metadata models
NekosBest 🎬 Reactions, GIFs, waifu/neko/kitsune images Endpoint discovery
Nekosia 🏷️ Tag/category based anime images Documented main categories and tag lookup
NekosLife 🌙 Classic neko/waifu/avatar style endpoints Simple URL result API
PurrBot ⚡ SFW and NSFW gif/image endpoints v2 API paths
WaifuBest 🎀 Waifu images with include/exclude filters Tag lookup and SFW/NSFW selection

✨ Typed Metadata

Most simple calls return Models.Result with a url field:

from anipics import PurrBot

result = PurrBot().get(PurrBot.Types.SFW.GIF.neko)
print(result.url)

NekosAPI metadata calls return typed Pydantic models:

from anipics import NekosAPI

image = NekosAPI().get_random_image(
    tags=[NekosAPI.Types.catgirl], rating=NekosAPI.Ratings.safe
)

print(image.id)
print(image.url)
print(image.rating)
print(image.tags)

🛠️ Development

uv sync
uv run scripts/format.py
uv run scripts/test.py

Live tests call external services and are kept separate from the default test command:

uv run scripts/live_test.py

Build the package with:

uv build

📜 License

Anipics is distributed under the AGPL-3.0 license.

Metadata

Release files for anipics 2.1.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 anipics 2.1.0
File Size Uploaded Provenance Actions
anipics-2.1.0.tar.gz 1.8 MB With provenance Details for anipics-2.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for anipics 2.1.0
File Interpreter ABI Platform Actions
anipics-2.1.0-py3-none-any.whl Python 3 none any Details for anipics-2.1.0-py3-none-any.whl

Total release size: 1.9 MB

Release files / anipics-2.1.0.tar.gz

Download URL anipics-2.1.0.tar.gz
Size 1.8 MB
Tags Source
SHA-256 checksum
How to use checksums
82a400c2b33b60f84cfa4f399dd0c70af6132531f81c74066fbf03eb919bd366
BLAKE2b-256 checksum
How to use checksums
a403b5786883afe4d3f201a49817a249a25acba66b3dd0e36a1f8313d04de7ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Release files / anipics-2.1.0-py3-none-any.whl

Download URL anipics-2.1.0-py3-none-any.whl
Size 47.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f5fec51e1aaacc17836f2b3fcfc1d138cc320b5a6ebcf94487d3a44f7606fd0
BLAKE2b-256 checksum
How to use checksums
7d261a6bb443c72b9863d787b1f633aaf77e4bdac1d9c4ea7639c272e1339839
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Security for anipics 2.1.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for anipics-2.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

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.

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