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.1.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.1-py3-none-any.whl
(10.4 kB
view details)
File details
Details for the file aioe621-0.4.1.tar.gz.
File metadata
- Download URL: aioe621-0.4.1.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 |
0581dcebd30523fcaa017ed68e3e4aa7ded4d0c3dd3ee30e066e155672037186
|
|
| MD5 |
32259902314b6addb85bb2c126849219
|
|
| BLAKE2b-256 |
410de961264ad6e56bddb2a61ddce26f5af8a74a0f8b2e2a188a51f1bd24af8b
|
File details
Details for the file aioe621-0.4.1-py3-none-any.whl.
File metadata
- Download URL: aioe621-0.4.1-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 |
33022c4dfb73990cc8497e11a7becd5c988611b179c9d49b2f1b4488254fac69
|
|
| MD5 |
aa34c6400154f038f91c5a3188439fe2
|
|
| BLAKE2b-256 |
2c7bac26eeacf8ef9c723433e3e478fa0fad915c5e86527ea9503e811c9566e2
|