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, Auth
from aioe621.schemas.posts import Post
import asyncio

# authentication is only needed for some endpoints
auth = Auth(
    username="hexerade",
    api_key="1nHrmzmsvJf26EhU1F7CjnjC",
)

# all other Client parameters are also optional
client = Client(
    auth=auth,
    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.0.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.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aioe621-0.4.0.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.0.tar.gz
Algorithm Hash digest
SHA256 b6b5cf4b38d554faa497e7a86c199897d21856ee4d7ca9dd01979d334aa0dad7
MD5 6df18a046078ef4f64eac795cbeb8baa
BLAKE2b-256 e8720a3228155a812fbdaadc12d418642cb3a4fa3289eb58f07a44d6c8e115c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aioe621-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 10.5 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9867b4d6c5181206291b98a64dc23e96c9319ea79995e6bc92a30be214a54272
MD5 207106da1de57a9cb2398bcb408fc1b4
BLAKE2b-256 74234f65b9ef588d3ad9ed5f590c9403155fb5d03d4a1e22fb583281d8f8549d

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