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.listand.tags.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.4.2.tar.gz
(6.8 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.4.2-py3-none-any.whl
(10.4 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
deb99916ec574f56ebc5a3a61883f2124fe8a9dde3edf438eab12769269e505c
|
|
| MD5 |
c0f9919af3bba82108a80267bef12747
|
|
| BLAKE2b-256 |
367ca12a365945162a6477afe569404166aae62a8b8fb9eddcdb899339ad319c
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
145522b718a895b6706a99fb5058afb815bdc02f63769e74c25ea4c5b9456f42
|
|
| MD5 |
3e984f408721d895d71366c33d43250e
|
|
| BLAKE2b-256 |
fd9c476779be9540ea11484c11f458c7eb63245618dbce47376bb65b72bbf4cb
|