tumblrbot 1.1.0__py3-none-any.whl → 1.1.1__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/__main__.py +1 -7
- tumblrbot/flow/download.py +12 -17
- tumblrbot/flow/fine_tune.py +2 -2
- tumblrbot/flow/generate.py +5 -2
- tumblrbot/utils/models.py +5 -6
- tumblrbot/utils/settings.py +1 -1
- tumblrbot/utils/tumblr.py +13 -12
- tumblrbot-1.1.1.dist-info/METADATA +15 -0
- tumblrbot-1.1.1.dist-info/RECORD +16 -0
- tumblrbot-1.1.0.dist-info/METADATA +0 -114
- tumblrbot-1.1.0.dist-info/RECORD +0 -17
- tumblrbot-1.1.0.dist-info/licenses/UNLICENSE +0 -24
- {tumblrbot-1.1.0.dist-info → tumblrbot-1.1.1.dist-info}/WHEEL +0 -0
- {tumblrbot-1.1.0.dist-info → tumblrbot-1.1.1.dist-info}/entry_points.txt +0 -0
tumblrbot/__main__.py
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import sys
|
|
2
|
-
|
|
3
1
|
from openai import OpenAI
|
|
4
2
|
from rich.prompt import Confirm
|
|
5
3
|
from rich.traceback import install
|
|
@@ -8,8 +6,8 @@ from tumblrbot.flow.download import PostDownloader
|
|
|
8
6
|
from tumblrbot.flow.examples import ExamplesWriter
|
|
9
7
|
from tumblrbot.flow.fine_tune import FineTuner
|
|
10
8
|
from tumblrbot.flow.generate import DraftGenerator
|
|
9
|
+
from tumblrbot.utils.common import TumblrClient
|
|
11
10
|
from tumblrbot.utils.settings import Tokens
|
|
12
|
-
from tumblrbot.utils.tumblr import TumblrClient
|
|
13
11
|
|
|
14
12
|
|
|
15
13
|
def main() -> None:
|
|
@@ -33,7 +31,3 @@ def main() -> None:
|
|
|
33
31
|
|
|
34
32
|
if Confirm.ask("Generate drafts?", default=False):
|
|
35
33
|
DraftGenerator(openai, tumblr).create_drafts()
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
if __name__ == "__main__":
|
|
39
|
-
sys.exit(main())
|
tumblrbot/flow/download.py
CHANGED
|
@@ -2,19 +2,17 @@ from io import TextIOBase
|
|
|
2
2
|
from json import dump
|
|
3
3
|
from pathlib import Path
|
|
4
4
|
|
|
5
|
-
from more_itertools import last
|
|
6
|
-
|
|
7
5
|
from tumblrbot.utils.common import PreviewLive, UtilClass
|
|
8
6
|
from tumblrbot.utils.models import Post
|
|
9
7
|
|
|
10
8
|
|
|
11
9
|
class PostDownloader(UtilClass):
|
|
12
|
-
def paginate_posts(self,
|
|
13
|
-
task_id = live.progress.add_task(f"Downloading posts from '{
|
|
10
|
+
def paginate_posts(self, blog_identifier: str, offset: int, fp: TextIOBase, live: PreviewLive) -> None:
|
|
11
|
+
task_id = live.progress.add_task(f"Downloading posts from '{blog_identifier}'...", total=None, completed=offset)
|
|
14
12
|
|
|
15
13
|
while True:
|
|
16
|
-
response = self.tumblr.retrieve_published_posts(
|
|
17
|
-
live.progress.update(task_id, total=response["blog"]["posts"])
|
|
14
|
+
response = self.tumblr.retrieve_published_posts(blog_identifier, offset).json()["response"]
|
|
15
|
+
live.progress.update(task_id, total=response["blog"]["posts"], completed=offset)
|
|
18
16
|
|
|
19
17
|
if posts := response["posts"]:
|
|
20
18
|
for post in posts:
|
|
@@ -22,15 +20,14 @@ class PostDownloader(UtilClass):
|
|
|
22
20
|
fp.write("\n")
|
|
23
21
|
|
|
24
22
|
model = Post.model_validate(post)
|
|
25
|
-
before = model.timestamp
|
|
26
|
-
|
|
27
|
-
live.progress.update(task_id, advance=1)
|
|
28
23
|
live.custom_update(model)
|
|
24
|
+
|
|
25
|
+
offset += len(posts)
|
|
29
26
|
else:
|
|
30
27
|
break
|
|
31
28
|
|
|
32
|
-
def get_data_path(self,
|
|
33
|
-
return (self.config.data_directory /
|
|
29
|
+
def get_data_path(self, blog_identifier: str) -> Path:
|
|
30
|
+
return (self.config.data_directory / blog_identifier).with_suffix(".jsonl")
|
|
34
31
|
|
|
35
32
|
def get_data_paths(self) -> list[Path]:
|
|
36
33
|
return list(map(self.get_data_path, self.config.download_blog_identifiers))
|
|
@@ -39,15 +36,13 @@ class PostDownloader(UtilClass):
|
|
|
39
36
|
self.config.data_directory.mkdir(parents=True, exist_ok=True)
|
|
40
37
|
|
|
41
38
|
with PreviewLive() as live:
|
|
42
|
-
for
|
|
43
|
-
data_path = self.get_data_path(
|
|
44
|
-
lines = data_path.read_text("utf_8").splitlines() if data_path.exists() else []
|
|
39
|
+
for blog_identifier in self.config.download_blog_identifiers:
|
|
40
|
+
data_path = self.get_data_path(blog_identifier)
|
|
45
41
|
|
|
46
42
|
with data_path.open("a", encoding="utf_8") as fp:
|
|
47
43
|
self.paginate_posts(
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
len(lines),
|
|
44
|
+
blog_identifier,
|
|
45
|
+
len(data_path.read_text("utf_8").splitlines()) if data_path.exists() else 0,
|
|
51
46
|
fp,
|
|
52
47
|
live,
|
|
53
48
|
)
|
tumblrbot/flow/fine_tune.py
CHANGED
|
@@ -82,7 +82,7 @@ class FineTuner(UtilClass):
|
|
|
82
82
|
|
|
83
83
|
live.progress.update(
|
|
84
84
|
task_id,
|
|
85
|
-
description=f"Fine-tuning: {job.status}...",
|
|
85
|
+
description=f"Fine-tuning: [italic]{job.status.replace('_', ' ').title()}[/]...",
|
|
86
86
|
)
|
|
87
87
|
|
|
88
88
|
sleep(1)
|
|
@@ -101,5 +101,5 @@ class FineTuner(UtilClass):
|
|
|
101
101
|
Total tokens for [bold orange1]{self.config.expected_epochs}[/] epoch(s): {total_tokens:,}
|
|
102
102
|
Expected cost when trained with [bold purple]{self.config.base_model}[/]: {cost_string}
|
|
103
103
|
NOTE: Token values are approximate and may not be 100% accurate, please be aware of this when using the data.
|
|
104
|
-
[italic red]
|
|
104
|
+
[italic red]Amelia, Mutsumi, and Marin are not responsible for any inaccuracies in the token count or estimated price.[/]
|
|
105
105
|
""")
|
tumblrbot/flow/generate.py
CHANGED
|
@@ -30,7 +30,10 @@ class DraftGenerator(UtilClass):
|
|
|
30
30
|
|
|
31
31
|
def generate_post(self) -> Post:
|
|
32
32
|
content = self.generate_content()
|
|
33
|
-
post = Post(
|
|
33
|
+
post = Post(
|
|
34
|
+
content=[content],
|
|
35
|
+
state="draft",
|
|
36
|
+
)
|
|
34
37
|
if tags := self.generate_tags(content):
|
|
35
38
|
post.tags = tags.tags
|
|
36
39
|
return post
|
|
@@ -42,7 +45,7 @@ class DraftGenerator(UtilClass):
|
|
|
42
45
|
for i in live.progress.track(range(self.config.draft_count), description="Generating drafts..."):
|
|
43
46
|
try:
|
|
44
47
|
post = self.generate_post()
|
|
45
|
-
self.tumblr.
|
|
48
|
+
self.tumblr.create_post(self.config.upload_blog_identifier, post)
|
|
46
49
|
live.custom_update(post)
|
|
47
50
|
except BaseException as exc:
|
|
48
51
|
exc.add_note(f"📉 An error occurred! Generated {i} draft(s) before failing. {message}")
|
tumblrbot/utils/models.py
CHANGED
|
@@ -18,16 +18,15 @@ class FullyValidatedModel(BaseModel):
|
|
|
18
18
|
|
|
19
19
|
class Post(FullyValidatedModel):
|
|
20
20
|
class Block(FullyValidatedModel):
|
|
21
|
-
type: str = "
|
|
21
|
+
type: str = ""
|
|
22
22
|
text: str = ""
|
|
23
|
-
blocks:
|
|
23
|
+
blocks: list[int] = [] # noqa: RUF012
|
|
24
24
|
|
|
25
25
|
tags: Annotated[list[str], PlainSerializer(",".join)] = [] # noqa: RUF012
|
|
26
26
|
content: SkipJsonSchema[list[Block]] = [] # noqa: RUF012
|
|
27
27
|
layout: SkipJsonSchema[list[Block]] = [] # noqa: RUF012
|
|
28
28
|
trail: SkipJsonSchema[list[Any]] = [] # noqa: RUF012
|
|
29
|
-
state: SkipJsonSchema[Literal["published", "queued", "draft", "private", "unapproved"]] = "
|
|
30
|
-
timestamp: SkipJsonSchema[int] = 0
|
|
29
|
+
state: SkipJsonSchema[Literal["published", "queued", "draft", "private", "unapproved"]] = "published"
|
|
31
30
|
is_submission: SkipJsonSchema[bool] = False
|
|
32
31
|
|
|
33
32
|
def __rich__(self) -> Panel:
|
|
@@ -45,7 +44,7 @@ class Post(FullyValidatedModel):
|
|
|
45
44
|
indices: set[int] = set()
|
|
46
45
|
for block in self.layout:
|
|
47
46
|
if block.type == "ask":
|
|
48
|
-
indices
|
|
47
|
+
indices.update(block.blocks)
|
|
49
48
|
|
|
50
49
|
self.content = [block for i, block in enumerate(self.content) if i not in indices and block.type == "text"]
|
|
51
50
|
|
|
@@ -55,7 +54,7 @@ class Post(FullyValidatedModel):
|
|
|
55
54
|
|
|
56
55
|
class Example(FullyValidatedModel):
|
|
57
56
|
class Message(FullyValidatedModel):
|
|
58
|
-
role:
|
|
57
|
+
role: Literal["developer", "user", "assistant"]
|
|
59
58
|
content: str
|
|
60
59
|
|
|
61
60
|
messages: list[Message]
|
tumblrbot/utils/settings.py
CHANGED
|
@@ -7,7 +7,7 @@ from openai.types import ChatModel
|
|
|
7
7
|
from pydantic import Field, PositiveFloat, PositiveInt, Secret, model_validator
|
|
8
8
|
from pydantic_settings import BaseSettings, PydanticBaseSettingsSource, SettingsConfigDict, TomlConfigSettingsSource
|
|
9
9
|
from rich.prompt import Prompt
|
|
10
|
-
from tomlkit import comment, document, dumps
|
|
10
|
+
from tomlkit import comment, document, dumps # pyright: ignore[reportUnknownVariableType]
|
|
11
11
|
|
|
12
12
|
if TYPE_CHECKING:
|
|
13
13
|
from _typeshed import StrPath
|
tumblrbot/utils/tumblr.py
CHANGED
|
@@ -16,7 +16,7 @@ class TumblrClient(OAuth2Session):
|
|
|
16
16
|
tokens: Tokens
|
|
17
17
|
|
|
18
18
|
def __post_init__(self) -> None:
|
|
19
|
-
super().__init__(
|
|
19
|
+
super().__init__( # pyright: ignore[reportUnknownMemberType]
|
|
20
20
|
self.tokens.tumblr_client_id.get_secret_value(),
|
|
21
21
|
auto_refresh_url="https://api.tumblr.com/v2/oauth2/token",
|
|
22
22
|
auto_refresh_kwargs={
|
|
@@ -35,14 +35,14 @@ class TumblrClient(OAuth2Session):
|
|
|
35
35
|
super().__enter__()
|
|
36
36
|
|
|
37
37
|
if not self.tokens.tumblr_token.get_secret_value():
|
|
38
|
-
authorization_url, _ = self.authorization_url("https://tumblr.com/oauth2/authorize")
|
|
38
|
+
authorization_url, _ = self.authorization_url("https://tumblr.com/oauth2/authorize") # pyright: ignore[reportUnknownMemberType]
|
|
39
39
|
|
|
40
40
|
rich.print(f"Please go to {authorization_url} and authorize access.")
|
|
41
41
|
authorization_response = Prompt.ask("Enter the full callback URL")
|
|
42
42
|
rich.print("\n")
|
|
43
43
|
|
|
44
44
|
self.token_saver(
|
|
45
|
-
self.fetch_token(
|
|
45
|
+
self.fetch_token( # pyright: ignore[reportUnknownMemberType]
|
|
46
46
|
"https://api.tumblr.com/v2/oauth2/token",
|
|
47
47
|
authorization_response=authorization_response,
|
|
48
48
|
client_secret=self.tokens.tumblr_client_secret.get_secret_value(),
|
|
@@ -68,17 +68,18 @@ class TumblrClient(OAuth2Session):
|
|
|
68
68
|
error.add_note(str(json))
|
|
69
69
|
raise
|
|
70
70
|
|
|
71
|
-
def
|
|
72
|
-
return self.post(
|
|
73
|
-
f"https://api.tumblr.com/v2/blog/{blog_name}/posts",
|
|
74
|
-
json=post.model_dump(mode="json"),
|
|
75
|
-
)
|
|
76
|
-
|
|
77
|
-
def retrieve_published_posts(self, blog_name: str, before: int) -> Response:
|
|
71
|
+
def retrieve_published_posts(self, blog_identifier: str, offset: int) -> Response:
|
|
78
72
|
return self.get(
|
|
79
|
-
f"https://api.tumblr.com/v2/blog/{
|
|
73
|
+
f"https://api.tumblr.com/v2/blog/{blog_identifier}/posts",
|
|
80
74
|
params={
|
|
81
|
-
"
|
|
75
|
+
"offset": offset,
|
|
76
|
+
"sort": "asc",
|
|
82
77
|
"npf": True,
|
|
83
78
|
},
|
|
84
79
|
)
|
|
80
|
+
|
|
81
|
+
def create_post(self, blog_identifier: str, post: Post) -> Response:
|
|
82
|
+
return self.post(
|
|
83
|
+
f"https://api.tumblr.com/v2/blog/{blog_identifier}/posts",
|
|
84
|
+
json=post.model_dump(mode="json"),
|
|
85
|
+
)
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
tumblrbot/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
tumblrbot/__main__.py,sha256=RSvzROxs8hi_0sOyKsnZtV2-S3T-lPeJuDwULGN1-2U,1509
|
|
3
|
+
tumblrbot/flow/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
tumblrbot/flow/download.py,sha256=FsiYJSyinFZi5wHvRL6WQCURmTDzrJ4XgThJkaRFPxw,1911
|
|
5
|
+
tumblrbot/flow/examples.py,sha256=vCJ6KH-kqlmi7zW-jk6fQqSGDkYnXHplTmTmIUC-Xj0,4168
|
|
6
|
+
tumblrbot/flow/fine_tune.py,sha256=AWBxlHfQDDIGku1oZaaMNQtNw3yOaScq6QMgI8sJhd0,3836
|
|
7
|
+
tumblrbot/flow/generate.py,sha256=6b6-Hzqek0AO6i7ceX-mapJfOKLYx6FOqEvHItjg5kU,2088
|
|
8
|
+
tumblrbot/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
+
tumblrbot/utils/common.py,sha256=3PPyutv7yyjvij5anyKQRDRn7lrr8Eu05m8XVhh74Hc,1342
|
|
10
|
+
tumblrbot/utils/models.py,sha256=to4k0b1O0bYNXe_4zx5Vupxtb-739U3nMSGgJLJ3gto,1975
|
|
11
|
+
tumblrbot/utils/settings.py,sha256=yC2srfEw8Kl0z-jDOkc9qWfRkutTzZFfg3uRzfjSGAQ,6507
|
|
12
|
+
tumblrbot/utils/tumblr.py,sha256=tFrGwHY3FsX2kWNiLteettXpnWgqNpzPCQImtEpND2M,3283
|
|
13
|
+
tumblrbot-1.1.1.dist-info/entry_points.txt,sha256=lTiN7PxAbyGY1fpCWApEw6NUIUgobfcOKhvn6cu3IQA,53
|
|
14
|
+
tumblrbot-1.1.1.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
|
15
|
+
tumblrbot-1.1.1.dist-info/METADATA,sha256=CitrYF_L0yiPI_q4tmUPq_ascm2tDG1Uc_YXT8RnC3Q,453
|
|
16
|
+
tumblrbot-1.1.1.dist-info/RECORD,,
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: tumblrbot
|
|
3
|
-
Version: 1.1.0
|
|
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
|
-
License-Expression: Unlicense
|
|
8
|
-
License-File: UNLICENSE
|
|
9
|
-
Requires-Dist: more-itertools
|
|
10
|
-
Requires-Dist: openai
|
|
11
|
-
Requires-Dist: pydantic
|
|
12
|
-
Requires-Dist: pydantic-settings
|
|
13
|
-
Requires-Dist: requests
|
|
14
|
-
Requires-Dist: requests-oauthlib
|
|
15
|
-
Requires-Dist: rich
|
|
16
|
-
Requires-Dist: tiktoken
|
|
17
|
-
Requires-Dist: tomlkit
|
|
18
|
-
Project-URL: Issues, https://github.com/MaidThatPrograms/tumblrbot/issues
|
|
19
|
-
Project-URL: Repository, https://github.com/MaidThatPrograms/tumblrbot
|
|
20
|
-
|
|
21
|
-
[OpenAI]: https://pypi.org/project/openai
|
|
22
|
-
[Python]: https://python.org/download
|
|
23
|
-
[Rich]: https://pypi.org/project/rich
|
|
24
|
-
|
|
25
|
-
[gpt-4.1-nano-2025-04-14]: https://platform.openai.com/docs/models/gpt-4.1-nano
|
|
26
|
-
[Moderation API]: https://platform.openai.com/docs/api-reference/moderations
|
|
27
|
-
[New Post Format]: https://tumblr.com/docs/npf
|
|
28
|
-
[OAuth 2.0]: https://www.tumblr.com/docs/en/api/v2#oauth2-authorization
|
|
29
|
-
[pip]: https://pypi.org
|
|
30
|
-
|
|
31
|
-
[Download]: tumblrbot/flow/download.py
|
|
32
|
-
[Examples]: tumblrbot/flow/examples.py
|
|
33
|
-
[Fine-Tune]: tumblrbot/flow/fine_tune.py
|
|
34
|
-
[Generate]: tumblrbot/flow/generate.py
|
|
35
|
-
[Utils]: tumblrbot/utils/common.py
|
|
36
|
-
[Models]: tumblrbot/utils/models.py
|
|
37
|
-
[Settings]: tumblrbot/utils/settings.py
|
|
38
|
-
[Tumblr]: tumblrbot/utils/tumblr.py
|
|
39
|
-
[Main]: __main__.py
|
|
40
|
-
[README.md]: README.md
|
|
41
|
-
|
|
42
|
-
# tumblrbot
|
|
43
|
-

|
|
44
|
-
|
|
45
|
-
Description of original project:
|
|
46
|
-
> 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.
|
|
47
|
-
|
|
48
|
-
This fork is largely a rewrite of the source code with similarities in its structure and process:
|
|
49
|
-
- Updates:
|
|
50
|
-
- Updated to [OAuth 2.0].
|
|
51
|
-
- Updated to the [New Post Format].
|
|
52
|
-
- Updated to the latest version of [OpenAI].
|
|
53
|
-
- Updated the [base model version][Settings] to [gpt-4.1-nano-2025-04-14].
|
|
54
|
-
- Removed features:
|
|
55
|
-
- [Generation][Generate]:
|
|
56
|
-
- Removed clearing drafts behavior.
|
|
57
|
-
- [Training][Examples]:
|
|
58
|
-
- Removed exports that had HTML or reblogs.
|
|
59
|
-
- Removed special word-replacement behavior.
|
|
60
|
-
- Removed filtering by year.
|
|
61
|
-
- Removed setup and related files.
|
|
62
|
-
- Changed/Added features:
|
|
63
|
-
- [Generation][Generate]:
|
|
64
|
-
- Added a link to the blog's draft page.
|
|
65
|
-
- Added error checking for uploading drafts.
|
|
66
|
-
- [Training][Examples]:
|
|
67
|
-
- Added the option to [Download] the latest posts from the [specified blogs][Settings].
|
|
68
|
-
- Added the option to remove posts flagged by the [Moderation API].
|
|
69
|
-
- Added the option to automatically [Fine-Tune] the examples on the [specified base model][Settings].
|
|
70
|
-
- Changed to now escape examples automatically.
|
|
71
|
-
- Set encoding for reading post data to `UTF-8` to fix decoding errors.
|
|
72
|
-
- Added newlines between paragraphs.
|
|
73
|
-
- Removed "ALT", submission, ask, and poll text from posts.
|
|
74
|
-
- Improved the estimated token counts and costs.
|
|
75
|
-
- Changed to [Rich] for output.
|
|
76
|
-
- Added progress bars.
|
|
77
|
-
- Added post previews.
|
|
78
|
-
- Added color, formatting, and more information to output.
|
|
79
|
-
- Created a [guided utility][Main] for every step of building your bot blog.
|
|
80
|
-
- Maid scripts wait for user input before the console closes.
|
|
81
|
-
- Added comand-line options to override [Settings] options.
|
|
82
|
-
- Added behavior to regenerate the default [config.toml][Settings] and [env.toml][Settings] if missing.
|
|
83
|
-
- Renamed several files.
|
|
84
|
-
- Renamed several [Settings] options.
|
|
85
|
-
- Changed the value of several [Settings] options.
|
|
86
|
-
- Added full type-checking coverage (fully importable from third-party scripts).
|
|
87
|
-
|
|
88
|
-
To-Do:
|
|
89
|
-
- Add documentation.
|
|
90
|
-
- Finish updating [README.md].
|
|
91
|
-
- Look into places more-itertools can help.
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
**Please submit an issue or contact us for features you want to added/reimplemented.**
|
|
95
|
-
|
|
96
|
-
## Installation
|
|
97
|
-
1. Install the latest version of [Python]:
|
|
98
|
-
- Windows: `winget install python3`
|
|
99
|
-
- Linux (apt): `apt install python-pip`
|
|
100
|
-
- Linux (pacman): `pacman install python-pip`
|
|
101
|
-
1. Install the [pip] package: `pip install tumblrbot`
|
|
102
|
-
- On Linux, you will have to make a virtual environment.
|
|
103
|
-
- Alternatively, you can install from this repository: `pip install git+https://github.com/MaidThatPrograms/tumblrbot.git`
|
|
104
|
-
|
|
105
|
-
## Usage
|
|
106
|
-
If you cloned the repo, either:
|
|
107
|
-
- Double-click `__main__.py` in the root directory.
|
|
108
|
-
- Run `python __main__.py` in the root directory.
|
|
109
|
-
|
|
110
|
-
If you installed through [Pip]:
|
|
111
|
-
- Run `tumblrbot` from anywhere.
|
|
112
|
-
|
|
113
|
-
## More Information
|
|
114
|
-
- WIP
|
tumblrbot-1.1.0.dist-info/RECORD
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
tumblrbot/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
tumblrbot/__main__.py,sha256=TYgj7eH1quLfs9m5mT2oPfrRNP5hou_Bk8zzfGCQp9o,1577
|
|
3
|
-
tumblrbot/flow/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
tumblrbot/flow/download.py,sha256=TytuTjductHi_mQ0i84jWdlpXxHC3PwIfd0c0Np63fM,2081
|
|
5
|
-
tumblrbot/flow/examples.py,sha256=vCJ6KH-kqlmi7zW-jk6fQqSGDkYnXHplTmTmIUC-Xj0,4168
|
|
6
|
-
tumblrbot/flow/fine_tune.py,sha256=_bu2Ra5kZAtQqgcNmROIuiTkpCc6YhKngob-42S87l0,3795
|
|
7
|
-
tumblrbot/flow/generate.py,sha256=a_xHj3xh3fPoT1BvX0QNsAOxR3TnANVZ443kxQyyR8k,2041
|
|
8
|
-
tumblrbot/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
-
tumblrbot/utils/common.py,sha256=3PPyutv7yyjvij5anyKQRDRn7lrr8Eu05m8XVhh74Hc,1342
|
|
10
|
-
tumblrbot/utils/models.py,sha256=2M7nLVTcwdmOxQ64tcAoTW5vNfEEa7Z3syD5jfFz1uY,1974
|
|
11
|
-
tumblrbot/utils/settings.py,sha256=h7LfuIdZ8r7ZQL0TevNfoiO6AZINUAwhg5ufkEn3Tp0,6461
|
|
12
|
-
tumblrbot/utils/tumblr.py,sha256=vJVtOU4Z_xOILpjGjZPmJLyan1DD8KamMDvsY65SHUc,3101
|
|
13
|
-
tumblrbot-1.1.0.dist-info/entry_points.txt,sha256=lTiN7PxAbyGY1fpCWApEw6NUIUgobfcOKhvn6cu3IQA,53
|
|
14
|
-
tumblrbot-1.1.0.dist-info/licenses/UNLICENSE,sha256=8Bl77UGlO95Tuu1FjTzqAPr-UU_A11XBQdPct1-E3qE,1236
|
|
15
|
-
tumblrbot-1.1.0.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
|
16
|
-
tumblrbot-1.1.0.dist-info/METADATA,sha256=H8eLKfdX3wjBQSoBpRKsbkbKL7eBB5n67rQXealO8_E,4820
|
|
17
|
-
tumblrbot-1.1.0.dist-info/RECORD,,
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
This is free and unencumbered software released into the public domain.
|
|
2
|
-
|
|
3
|
-
Anyone is free to copy, modify, publish, use, compile, sell, or
|
|
4
|
-
distribute this software, either in source code form or as a compiled
|
|
5
|
-
binary, for any purpose, commercial or non-commercial, and by any
|
|
6
|
-
means.
|
|
7
|
-
|
|
8
|
-
In jurisdictions that recognize copyright laws, the author or authors
|
|
9
|
-
of this software dedicate any and all copyright interest in the
|
|
10
|
-
software to the public domain. We make this dedication for the benefit
|
|
11
|
-
of the public at large and to the detriment of our heirs and
|
|
12
|
-
successors. We intend this dedication to be an overt act of
|
|
13
|
-
relinquishment in perpetuity of all present and future rights to this
|
|
14
|
-
software under copyright law.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
-
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
20
|
-
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
21
|
-
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
22
|
-
OTHER DEALINGS IN THE SOFTWARE.
|
|
23
|
-
|
|
24
|
-
For more information, please refer to <https://unlicense.org/>
|
|
File without changes
|
|
File without changes
|