A simple asynchronous httpx+pydantic wrapper over the E621's API
Project description
aioe621 
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.jsonvia.posts.list -
GET /posts/{id}.jsonvia.posts.get -
GET /posts/random.jsonvia.posts.random -
GET /tags.jsonvia.tags.listandtags.get_by_name -
GET /tags/{id}.jsonvia.tags.get -
GET /pools.jsonvia.pools.list -
GET /pools/{id}.jsonvia.pools.get
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
aioe621-0.5.0-py3-none-any.whl
(11.9 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
978517912051c94a4bb467bb81ae057606c0dbe7408c96a61e8fd26c2de18cf3
|
|
| MD5 |
c32ce276bc22d0ef167b67b68e0da16f
|
|
| BLAKE2b-256 |
5d6042ccd3a8384e14ab50a66d169ce233d0526e5034d0064ed391ca91a8a485
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2722bad77286778d91f8cd7ba96478587d03be5f33432b5185df0b93c13a809c
|
|
| MD5 |
7443fc00fd7ed3f6bf80950547709868
|
|
| BLAKE2b-256 |
9fbd00fe76bd871caa0e7a76414e80363ca4e99510c802e2a3a62c8dbe413339
|