Skip to main content

A simple asynchronous httpx+pydantic wrapper over the E621's API

Project description

aioe621 GitHub Tag

uv PyPI Python Version

GitHub License GitHub Actions Workflow Status

A simple asynchronous httpx+pydantic wrapper over the E621's API

The API is considered unstable for minor version increments until 1.0.0

Quickstart

from aioe621 import Client
from aioe621.schemas.posts import Post
import asyncio

# a user agent is required
client = Client(user_agent="MyProject/1.0 (by username on e621)")


async def main() -> None:
    post: Post = await client.posts.get(5937863)
    print(f"i love {post.tags.artist[0]}!!!")


asyncio.run(main())

Currently implemented

  • GET /posts.json via .posts.list
  • GET /posts/{id}.json via .posts.get
  • GET /posts/random.json via .posts.random
  • GET /tags.json via .tags.list and tags.get_by_name
  • GET /tags/{id}.json via .tags.get
  • GET /pools.json via .pools.list
  • GET /pools/{id}.json via .pools.get

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

aioe621-0.5.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

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

aioe621-0.5.0-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file aioe621-0.5.0.tar.gz.

File metadata

  • Download URL: aioe621-0.5.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for aioe621-0.5.0.tar.gz
Algorithm Hash digest
SHA256 978517912051c94a4bb467bb81ae057606c0dbe7408c96a61e8fd26c2de18cf3
MD5 c32ce276bc22d0ef167b67b68e0da16f
BLAKE2b-256 5d6042ccd3a8384e14ab50a66d169ce233d0526e5034d0064ed391ca91a8a485

See more details on using hashes here.

File details

Details for the file aioe621-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: aioe621-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for aioe621-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2722bad77286778d91f8cd7ba96478587d03be5f33432b5185df0b93c13a809c
MD5 7443fc00fd7ed3f6bf80950547709868
BLAKE2b-256 9fbd00fe76bd871caa0e7a76414e80363ca4e99510c802e2a3a62c8dbe413339

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