tumblrbot 1.1.3__py3-none-any.whl → 1.1.5__py3-none-any.whl

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.
tumblrbot/utils/models.py CHANGED
@@ -1,7 +1,7 @@
1
- from typing import Any, Literal, override
1
+ from typing import Annotated, Any, Literal, override
2
2
 
3
3
  from openai import BaseModel
4
- from pydantic import ConfigDict
4
+ from pydantic import ConfigDict, PlainSerializer
5
5
  from pydantic.json_schema import SkipJsonSchema
6
6
  from rich.panel import Panel
7
7
 
@@ -23,7 +23,7 @@ class Post(FullyValidatedModel):
23
23
  blocks: list[int] = [] # noqa: RUF012
24
24
 
25
25
  timestamp: SkipJsonSchema[int] = 0
26
- tags: list[str] = [] # noqa: RUF012
26
+ tags: Annotated[SkipJsonSchema[list[str]], PlainSerializer(",".join)] = [] # noqa: RUF012
27
27
  state: SkipJsonSchema[Literal["published", "queued", "draft", "private", "unapproved"]] = "published"
28
28
 
29
29
  content: SkipJsonSchema[list[Block]] = [] # noqa: RUF012
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tumblrbot
3
- Version: 1.1.3
3
+ Version: 1.1.5
4
4
  Summary: An updated bot that posts to Tumblr, based on your very own blog!
5
5
  Requires-Python: >= 3.13
6
6
  Description-Content-Type: text/markdown
@@ -7,10 +7,10 @@ tumblrbot/flow/fine_tune.py,sha256=AWBxlHfQDDIGku1oZaaMNQtNw3yOaScq6QMgI8sJhd0,3
7
7
  tumblrbot/flow/generate.py,sha256=6b6-Hzqek0AO6i7ceX-mapJfOKLYx6FOqEvHItjg5kU,2088
8
8
  tumblrbot/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  tumblrbot/utils/common.py,sha256=3PPyutv7yyjvij5anyKQRDRn7lrr8Eu05m8XVhh74Hc,1342
10
- tumblrbot/utils/models.py,sha256=pYDE0jtUGjz-q0Ku1OJEeTu-ltnn1mQ6GW5e8XH_Qkk,1953
10
+ tumblrbot/utils/models.py,sha256=OpPSIsSYx1wsLyK7Aj2R6RMf83YRtPhxvuUnYYUSRcQ,2035
11
11
  tumblrbot/utils/settings.py,sha256=yC2srfEw8Kl0z-jDOkc9qWfRkutTzZFfg3uRzfjSGAQ,6507
12
12
  tumblrbot/utils/tumblr.py,sha256=IJPFoiJuQ6Tv-CHjXTyvKu5fk5REkdvlhoMxRueprHY,2872
13
- tumblrbot-1.1.3.dist-info/entry_points.txt,sha256=lTiN7PxAbyGY1fpCWApEw6NUIUgobfcOKhvn6cu3IQA,53
14
- tumblrbot-1.1.3.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
15
- tumblrbot-1.1.3.dist-info/METADATA,sha256=d8NtfHAD-z-g7vk1G9wD5UU_M3zRUiOV2HDMBT-MKQU,4589
16
- tumblrbot-1.1.3.dist-info/RECORD,,
13
+ tumblrbot-1.1.5.dist-info/entry_points.txt,sha256=lTiN7PxAbyGY1fpCWApEw6NUIUgobfcOKhvn6cu3IQA,53
14
+ tumblrbot-1.1.5.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
15
+ tumblrbot-1.1.5.dist-info/METADATA,sha256=s-H3J498T7z_m615yKDUKMmpwaPVwL9qm1ijDkA_5Is,4589
16
+ tumblrbot-1.1.5.dist-info/RECORD,,