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.2.3.tar.gz
(4.9 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.2.3.tar.gz.
File metadata
- Download URL: aioe621-0.2.3.tar.gz
- Upload date:
- Size: 4.9 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 |
9507bc4bc129db1fb73cd864c3ccfdde4153de11ae0045de42c96f7b0fd4dfcd
|
|
| MD5 |
2a06be35c1e2d762a4e1b447f98d88b7
|
|
| BLAKE2b-256 |
347c1f7bfdd2f61dc873ce7c9335eed9dc2e2254ab2762428fa915ea98dc79df
|
File details
Details for the file aioe621-0.2.3-py3-none-any.whl.
File metadata
- Download URL: aioe621-0.2.3-py3-none-any.whl
- Upload date:
- Size: 7.0 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 |
cb5c5f060cf2caaa00f75f2327ef962808910699cbcbac3fc96ac7be21872dd1
|
|
| MD5 |
4939a991ca43876fea5a2a7cff390595
|
|
| BLAKE2b-256 |
9300c0331f4e7d845de9b2c24c45d626931026ec0257f2f0505c94ac67eb7393
|