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

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.4.2.tar.gz (6.8 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.4.2-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aioe621-0.4.2.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","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.4.2.tar.gz
Algorithm Hash digest
SHA256 deb99916ec574f56ebc5a3a61883f2124fe8a9dde3edf438eab12769269e505c
MD5 c0f9919af3bba82108a80267bef12747
BLAKE2b-256 367ca12a365945162a6477afe569404166aae62a8b8fb9eddcdb899339ad319c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aioe621-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","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.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 145522b718a895b6706a99fb5058afb815bdc02f63769e74c25ea4c5b9456f42
MD5 3e984f408721d895d71366c33d43250e
BLAKE2b-256 fd9c476779be9540ea11484c11f458c7eb63245618dbce47376bb65b72bbf4cb

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