novelai-python 0.5.2__tar.gz → 0.5.3__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.
- {novelai_python-0.5.2 → novelai_python-0.5.3}/PKG-INFO +2 -1
- {novelai_python-0.5.2 → novelai_python-0.5.3}/pyproject.toml +2 -1
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/credential/ApiToken.py +2 -3
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/credential/JwtToken.py +2 -2
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/credential/UserAuth.py +2 -2
- {novelai_python-0.5.2 → novelai_python-0.5.3}/LICENSE +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/NOTICE.MD +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/README.md +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/__init__.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/_enum.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/_exceptions.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/_response/__init__.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/_response/ai/__init__.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/_response/ai/generate.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/_response/ai/generate_image.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/_response/ai/generate_stream.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/_response/ai/generate_voice.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/_response/ai/upscale.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/_response/schema.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/_response/user/__init__.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/_response/user/information.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/_response/user/login.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/_response/user/subscription.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/credential/__init__.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/credential/_base.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/sdk/__init__.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/sdk/ai/LICENSE +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/sdk/ai/__init__.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/sdk/ai/_const.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/sdk/ai/_cost.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/sdk/ai/_enum.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/sdk/ai/augment_image/__init__.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/sdk/ai/augment_image/_enum.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/sdk/ai/generate/__init__.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/sdk/ai/generate/_const.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/sdk/ai/generate/_enum.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/sdk/ai/generate/_schema.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/sdk/ai/generate/themes.json +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/sdk/ai/generate_image/__init__.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/sdk/ai/generate_image/suggest_tags.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/sdk/ai/generate_stream.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/sdk/ai/generate_voice/__init__.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/sdk/ai/generate_voice/_enum.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/sdk/ai/upscale.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/sdk/schema.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/sdk/user/__init__.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/sdk/user/information.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/sdk/user/login.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/sdk/user/subscription.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/server.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/tokenizer/__init__.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/tokenizer/clip_simple_tokenizer.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/tokenizer/nerdstash_v1.model +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/tokenizer/nerdstash_v2.model +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/tokenizer/novelai.model +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/tokenizer/novelai_v2.model +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/tool/__init__.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/tool/image_metadata/__init__.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/tool/image_metadata/_type.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/tool/image_metadata/bch_utils.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/tool/image_metadata/lsb_extractor.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/tool/image_metadata/lsb_injector.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/tool/paint_mask/__init__.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/tool/random_prompt/__init__.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/tool/random_prompt/tag.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/tool/random_prompt/tag_character.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/tool/random_prompt/tag_nsfw.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/utils/__init__.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/utils/encode.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/utils/useful.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/tests/__init__.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/tests/test_generate_voice.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/tests/test_random_prompt.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/tests/test_server.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/tests/test_server_run.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/tests/test_upscale.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/tests/test_user_information.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/tests/test_user_login.py +0 -0
- {novelai_python-0.5.2 → novelai_python-0.5.3}/tests/test_user_subscription.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: novelai-python
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.3
|
|
4
4
|
Summary: NovelAI Python Binding With Pydantic
|
|
5
5
|
Author-Email: sudoskys <coldlando@hotmail.com>
|
|
6
6
|
License: Apache License 2.0
|
|
@@ -30,6 +30,7 @@ Requires-Dist: tokenizers>=0.15.2
|
|
|
30
30
|
Requires-Dist: json-repair>=0.29.4
|
|
31
31
|
Requires-Dist: robust-downloader>=0.0.2
|
|
32
32
|
Requires-Dist: bchlib>=2.1.3
|
|
33
|
+
Requires-Dist: arrow>=1.3.0
|
|
33
34
|
Provides-Extra: testing
|
|
34
35
|
Requires-Dist: pytest>=7.4.4; extra == "testing"
|
|
35
36
|
Requires-Dist: pytest-asyncio>=0.23.4; extra == "testing"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "novelai-python"
|
|
3
|
-
version = "0.5.
|
|
3
|
+
version = "0.5.3"
|
|
4
4
|
description = "NovelAI Python Binding With Pydantic"
|
|
5
5
|
authors = [
|
|
6
6
|
{ name = "sudoskys", email = "coldlando@hotmail.com" },
|
|
@@ -29,6 +29,7 @@ dependencies = [
|
|
|
29
29
|
"json-repair>=0.29.4",
|
|
30
30
|
"robust-downloader>=0.0.2",
|
|
31
31
|
"bchlib>=2.1.3",
|
|
32
|
+
"arrow>=1.3.0",
|
|
32
33
|
]
|
|
33
34
|
requires-python = ">=3.9"
|
|
34
35
|
readme = "README.md"
|
|
@@ -4,8 +4,7 @@
|
|
|
4
4
|
# @File : ApiToken.py
|
|
5
5
|
# @Software: PyCharm
|
|
6
6
|
|
|
7
|
-
import
|
|
8
|
-
|
|
7
|
+
import arrow
|
|
9
8
|
import shortuuid
|
|
10
9
|
from curl_cffi.requests import AsyncSession
|
|
11
10
|
from loguru import logger
|
|
@@ -31,7 +30,7 @@ class ApiCredential(CredentialBase):
|
|
|
31
30
|
"Origin": "https://novelai.net",
|
|
32
31
|
"Referer": "https://novelai.net/",
|
|
33
32
|
"x-correlation-id": self._x_correlation_id,
|
|
34
|
-
"x-initiated-at": f"{
|
|
33
|
+
"x-initiated-at": f"{arrow.utcnow().isoformat()}Z",
|
|
35
34
|
}
|
|
36
35
|
|
|
37
36
|
if update_headers:
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
# @Author : sudoskys
|
|
4
4
|
# @File : JwtToken.py
|
|
5
5
|
# @Software: PyCharm
|
|
6
|
-
import datetime
|
|
7
6
|
|
|
7
|
+
import arrow
|
|
8
8
|
import shortuuid
|
|
9
9
|
from curl_cffi.requests import AsyncSession
|
|
10
10
|
from loguru import logger
|
|
@@ -30,7 +30,7 @@ class JwtCredential(CredentialBase):
|
|
|
30
30
|
"Origin": "https://novelai.net",
|
|
31
31
|
"Referer": "https://novelai.net/",
|
|
32
32
|
"x-correlation-id": self._x_correlation_id,
|
|
33
|
-
"x-initiated-at": f"{
|
|
33
|
+
"x-initiated-at": f"{arrow.utcnow().isoformat()}Z",
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
if update_headers:
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
# @Time : 2024/2/7 下午12:14
|
|
3
3
|
# @Author : sudoskys
|
|
4
4
|
# @File : UserAuth.py
|
|
5
|
-
import datetime
|
|
6
5
|
import time
|
|
7
6
|
from typing import Optional
|
|
8
7
|
|
|
8
|
+
import arrow
|
|
9
9
|
import shortuuid
|
|
10
10
|
from curl_cffi.requests import AsyncSession
|
|
11
11
|
from pydantic import SecretStr, Field
|
|
@@ -33,7 +33,7 @@ class LoginCredential(CredentialBase):
|
|
|
33
33
|
"Origin": "https://novelai.net",
|
|
34
34
|
"Referer": "https://novelai.net/",
|
|
35
35
|
"x-correlation-id": self._x_correlation_id,
|
|
36
|
-
"x-initiated-at": f"{
|
|
36
|
+
"x-initiated-at": f"{arrow.utcnow().isoformat()}Z",
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
# 30 天有效期
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/_response/ai/generate_image.py
RENAMED
|
File without changes
|
{novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/_response/ai/generate_stream.py
RENAMED
|
File without changes
|
{novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/_response/ai/generate_voice.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/_response/user/information.py
RENAMED
|
File without changes
|
|
File without changes
|
{novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/_response/user/subscription.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/sdk/ai/augment_image/__init__.py
RENAMED
|
File without changes
|
{novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/sdk/ai/augment_image/_enum.py
RENAMED
|
File without changes
|
{novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/sdk/ai/generate/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/sdk/ai/generate/themes.json
RENAMED
|
File without changes
|
{novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/sdk/ai/generate_image/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/sdk/ai/generate_voice/__init__.py
RENAMED
|
File without changes
|
{novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/sdk/ai/generate_voice/_enum.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/tokenizer/clip_simple_tokenizer.py
RENAMED
|
File without changes
|
{novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/tokenizer/nerdstash_v1.model
RENAMED
|
File without changes
|
{novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/tokenizer/nerdstash_v2.model
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/tool/image_metadata/__init__.py
RENAMED
|
File without changes
|
{novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/tool/image_metadata/_type.py
RENAMED
|
File without changes
|
{novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/tool/image_metadata/bch_utils.py
RENAMED
|
File without changes
|
|
File without changes
|
{novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/tool/image_metadata/lsb_injector.py
RENAMED
|
File without changes
|
{novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/tool/paint_mask/__init__.py
RENAMED
|
File without changes
|
{novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/tool/random_prompt/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/tool/random_prompt/tag_character.py
RENAMED
|
File without changes
|
{novelai_python-0.5.2 → novelai_python-0.5.3}/src/novelai_python/tool/random_prompt/tag_nsfw.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|