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
Quickstart
from aioe621 import Client, Auth
from aioe621.schemas 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(id=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
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.3.0.tar.gz
(5.1 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
File details
Details for the file aioe621-0.3.0.tar.gz.
File metadata
- Download URL: aioe621-0.3.0.tar.gz
- Upload date:
- Size: 5.1 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 |
cacaa3e4bed548781f3aa537e739b2125fa48b6654be8337b51376c0a0d5108b
|
|
| MD5 |
2b488c8c667e784f8851479ad47e13d7
|
|
| BLAKE2b-256 |
b3a55a0a7533b8c6b7d155db1e40a0adc5ea9b49643f472b5a3c65e8b5ade5cc
|
File details
Details for the file aioe621-0.3.0-py3-none-any.whl.
File metadata
- Download URL: aioe621-0.3.0-py3-none-any.whl
- Upload date:
- Size: 7.2 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 |
d5aa418edee24068c6f473635179954107e8be449c7205bfe9ea7f369788e007
|
|
| MD5 |
3753366a4cc77373aa8a5f42f7449c1c
|
|
| BLAKE2b-256 |
295a5865d72bb9981a8de2748bb05da0bcd9fc9045239dc698834164b85b8615
|