aioe621 0.2.0__tar.gz → 0.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: aioe621
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: A simple asynchronous httpx+pydantic wrapper over the E621's API
5
5
  Keywords: async,httpx,e621
6
6
  Author: penggrin12
@@ -40,3 +40,46 @@ Requires-Dist: httpx>=0.28.1
40
40
  Requires-Dist: pydantic>=2.13.4
41
41
  Requires-Python: >=3.10
42
42
  Project-URL: Homepage, https://github.com/penggrin12/aioe621
43
+ Description-Content-Type: text/markdown
44
+
45
+ # aioe621 ![uv](https://img.shields.io/badge/uv-261230.svg?logo=uv&logoColor=#de5fe9)
46
+
47
+ ![PyPI Python Version](https://img.shields.io/pypi/pyversions/aioe621)
48
+
49
+ ![GitHub License](https://img.shields.io/github/license/penggrin12/aioe621)
50
+ ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/penggrin12/aioe621/release.yml)
51
+
52
+ A simple asynchronous httpx+pydantic wrapper over the E621's API
53
+
54
+ ## Quickstart
55
+
56
+ ```python
57
+ from aioe621 import Client, Auth
58
+ from aioe621.schemas import Post
59
+ import asyncio
60
+
61
+ auth = Auth(
62
+ username="hexerade",
63
+ api_key="1nHrmzmsvJf26EhU1F7CjnjC",
64
+ )
65
+
66
+ # all parameters are optional
67
+ client = Client(
68
+ auth=auth,
69
+ user_agent="MyProject/1.0 (by username on e621)"
70
+ )
71
+
72
+
73
+ async def main() -> None:
74
+ post: Post = await client.posts.get(id=5937863)
75
+ print(f"i love {post.tags.artist[0]}!!!")
76
+
77
+
78
+ asyncio.run(main())
79
+ ```
80
+
81
+ ## Currently implemented
82
+
83
+ - [x] `GET /posts.json` via `.posts.list`
84
+ - [x] `GET /posts/{id}.json` via `.posts.get`
85
+ - [x] `GET /posts/random.json` via `.posts.random`
@@ -0,0 +1,41 @@
1
+ # aioe621 ![uv](https://img.shields.io/badge/uv-261230.svg?logo=uv&logoColor=#de5fe9)
2
+
3
+ ![PyPI Python Version](https://img.shields.io/pypi/pyversions/aioe621)
4
+
5
+ ![GitHub License](https://img.shields.io/github/license/penggrin12/aioe621)
6
+ ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/penggrin12/aioe621/release.yml)
7
+
8
+ A simple asynchronous httpx+pydantic wrapper over the E621's API
9
+
10
+ ## Quickstart
11
+
12
+ ```python
13
+ from aioe621 import Client, Auth
14
+ from aioe621.schemas import Post
15
+ import asyncio
16
+
17
+ auth = Auth(
18
+ username="hexerade",
19
+ api_key="1nHrmzmsvJf26EhU1F7CjnjC",
20
+ )
21
+
22
+ # all parameters are optional
23
+ client = Client(
24
+ auth=auth,
25
+ user_agent="MyProject/1.0 (by username on e621)"
26
+ )
27
+
28
+
29
+ async def main() -> None:
30
+ post: Post = await client.posts.get(id=5937863)
31
+ print(f"i love {post.tags.artist[0]}!!!")
32
+
33
+
34
+ asyncio.run(main())
35
+ ```
36
+
37
+ ## Currently implemented
38
+
39
+ - [x] `GET /posts.json` via `.posts.list`
40
+ - [x] `GET /posts/{id}.json` via `.posts.get`
41
+ - [x] `GET /posts/random.json` via `.posts.random`
@@ -1,8 +1,9 @@
1
1
  [project]
2
2
  name = "aioe621"
3
- version = "0.2.0"
3
+ version = "0.2.1"
4
4
  description = "A simple asynchronous httpx+pydantic wrapper over the E621's API"
5
5
  license = { file = "LICENSE" }
6
+ readme = "README.md"
6
7
  keywords = ["async", "httpx", "e621"]
7
8
  authors = [
8
9
  { name = "penggrin12", email = "miner.sidor@gmail.com" }
File without changes
File without changes
File without changes
File without changes
File without changes