tumblrbot 1.1.1__tar.gz → 1.1.2__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.
@@ -0,0 +1,108 @@
1
+ Metadata-Version: 2.4
2
+ Name: tumblrbot
3
+ Version: 1.1.2
4
+ Summary: An updated bot that posts to Tumblr, based on your very own blog!
5
+ Requires-Python: >= 3.13
6
+ Description-Content-Type: text/markdown
7
+ Requires-Dist: more-itertools
8
+ Requires-Dist: openai
9
+ Requires-Dist: pydantic
10
+ Requires-Dist: pydantic-settings
11
+ Requires-Dist: requests
12
+ Requires-Dist: requests-oauthlib
13
+ Requires-Dist: rich
14
+ Requires-Dist: tiktoken
15
+ Requires-Dist: tomlkit
16
+ Project-URL: Source, https://github.com/MaidThatPrograms/tumblrbot
17
+
18
+ [OpenAI]: https://pypi.org/project/openai
19
+ [Python]: https://python.org/download
20
+ [Rich]: https://pypi.org/project/rich
21
+
22
+ [gpt-4.1-nano-2025-04-14]: https://platform.openai.com/docs/models/gpt-4.1-nano
23
+ [Moderation API]: https://platform.openai.com/docs/api-reference/moderations
24
+ [New Post Format]: https://tumblr.com/docs/npf
25
+ [OAuth 2.0]: https://www.tumblr.com/docs/en/api/v2#oauth2-authorization
26
+ [pip]: https://pypi.org
27
+
28
+ [Download]: tumblrbot/flow/download.py
29
+ [Examples]: tumblrbot/flow/examples.py
30
+ [Fine-Tune]: tumblrbot/flow/fine_tune.py
31
+ [Generate]: tumblrbot/flow/generate.py
32
+ [Settings]: tumblrbot/utils/settings.py
33
+ [Main]: __main__.py
34
+ [README.md]: README.md
35
+
36
+ # tumblrbot
37
+ [![PyPI - Version](https://img.shields.io/pypi/v/tumblrbot)](https://python.org/pypi/tumblrbot)
38
+
39
+ Description of original project:
40
+ > 4tv-tumblrbot was a collaborative project I embarked on with my close friend Dima, who goes by @smoqueen on Tumblr. The aim of this endeavor was straightforward yet silly: to develop a Tumblr bot powered by a machine-learning model. This bot would be specifically trained on the content from a particular Tumblr blog or a selected set of blogs, allowing it to mimic the style, tone, and thematic essence of the original posts.
41
+
42
+ This fork is largely a rewrite of the source code with similarities in its structure and process:
43
+ - Updates:
44
+ - Updated to [OAuth 2.0].
45
+ - Updated to the [New Post Format].
46
+ - Updated to the latest version of [OpenAI].
47
+ - Updated the [base model version][Settings] to [gpt-4.1-nano-2025-04-14].
48
+ - Removed features:
49
+ - [Generation][Generate]:
50
+ - Removed clearing drafts behavior.
51
+ - [Training][Examples]:
52
+ - Removed exports that had HTML or reblogs.
53
+ - Removed special word-replacement behavior.
54
+ - Removed filtering by year.
55
+ - Removed setup and related files.
56
+ - Changed/Added features:
57
+ - [Generation][Generate]:
58
+ - Added a link to the blog's draft page.
59
+ - Added error checking for uploading drafts.
60
+ - [Training][Examples]:
61
+ - Added the option to [Download] the latest posts from the [specified blogs][Settings].
62
+ - Added the option to remove posts flagged by the [Moderation API].
63
+ - Added the option to automatically [Fine-Tune] the examples on the [specified base model][Settings].
64
+ - Changed to now escape examples automatically.
65
+ - Set encoding for reading post data to `UTF-8` to fix decoding errors.
66
+ - Added newlines between paragraphs.
67
+ - Removed "ALT", submission, ask, and poll text from posts.
68
+ - Improved the estimated token counts and costs.
69
+ - Changed to [Rich] for output.
70
+ - Added progress bars.
71
+ - Added post previews.
72
+ - Added color, formatting, and more information to output.
73
+ - Created a [guided utility][Main] for every step of building your bot blog.
74
+ - Maid scripts wait for user input before the console closes.
75
+ - Added comand-line options to override [Settings] options.
76
+ - Added behavior to regenerate the default [config.toml][Settings] and [env.toml][Settings] if missing.
77
+ - Renamed several files.
78
+ - Renamed several [Settings] options.
79
+ - Changed the value of several [Settings] options.
80
+ - Added full type-checking coverage (fully importable from third-party scripts).
81
+
82
+ To-Do:
83
+ - Add documentation.
84
+ - Finish updating [README.md].
85
+ - Look into places more-itertools can help.
86
+ - Change the differences list to instead just be a list of features.
87
+
88
+
89
+ **Please submit an issue or contact us for features you want to added/reimplemented.**
90
+
91
+ ## Installation
92
+ 1. Install the latest version of [Python]:
93
+ - Windows: `winget install python3`
94
+ - Linux (apt): `apt install python-pip`
95
+ - Linux (pacman): `pacman install python-pip`
96
+ 1. Install the [pip] package: `pip install tumblrbot`
97
+ - Alternatively, you can install from this repository: `pip install git+https://github.com/MaidThatPrograms/tumblrbot.git`
98
+ - On Linux, you will have to make a virtual environment.
99
+
100
+ ## Usage
101
+ Run `tumblrbot` from anywhere. Run `tumblrbot --help` for command-line options.
102
+
103
+ ## Obtaining Tokens
104
+ > WIP
105
+
106
+ ## Configuration
107
+ > WIP
108
+
@@ -1,7 +1,8 @@
1
1
  [project]
2
2
  name = "tumblrbot"
3
- version = "1.1.1"
3
+ version = "1.1.2"
4
4
  description = "An updated bot that posts to Tumblr, based on your very own blog!"
5
+ readme = "README.md"
5
6
  requires-python = ">= 3.13"
6
7
  dependencies = [
7
8
  "more-itertools",
tumblrbot-1.1.1/PKG-INFO DELETED
@@ -1,15 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: tumblrbot
3
- Version: 1.1.1
4
- Summary: An updated bot that posts to Tumblr, based on your very own blog!
5
- Requires-Python: >= 3.13
6
- Requires-Dist: more-itertools
7
- Requires-Dist: openai
8
- Requires-Dist: pydantic
9
- Requires-Dist: pydantic-settings
10
- Requires-Dist: requests
11
- Requires-Dist: requests-oauthlib
12
- Requires-Dist: rich
13
- Requires-Dist: tiktoken
14
- Requires-Dist: tomlkit
15
- Project-URL: Source, https://github.com/MaidThatPrograms/tumblrbot
File without changes
File without changes
File without changes