novelai-python 0.7.4__tar.gz → 0.7.5__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.7.4 → novelai_python-0.7.5}/PKG-INFO +7 -6
- {novelai_python-0.7.4 → novelai_python-0.7.5}/README.md +6 -5
- {novelai_python-0.7.4 → novelai_python-0.7.5}/pyproject.toml +1 -1
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/credential/ApiToken.py +1 -1
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/sdk/ai/_enum.py +1 -1
- {novelai_python-0.7.4 → novelai_python-0.7.5}/LICENSE +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/NOTICE.MD +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/__init__.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/_enum.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/_exceptions.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/_response/__init__.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/_response/ai/__init__.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/_response/ai/generate.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/_response/ai/generate_image.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/_response/ai/generate_stream.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/_response/ai/generate_voice.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/_response/ai/upscale.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/_response/schema.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/_response/user/__init__.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/_response/user/information.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/_response/user/login.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/_response/user/subscription.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/credential/JwtToken.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/credential/UserAuth.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/credential/__init__.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/credential/_base.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/sdk/__init__.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/sdk/ai/LICENSE +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/sdk/ai/__init__.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/sdk/ai/_const.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/sdk/ai/_cost.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/sdk/ai/augment_image/__init__.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/sdk/ai/augment_image/_enum.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/sdk/ai/generate/__init__.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/sdk/ai/generate/_const.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/sdk/ai/generate/_enum.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/sdk/ai/generate/_schema.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/sdk/ai/generate/themes.json +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/sdk/ai/generate_image/__init__.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/sdk/ai/generate_image/schema.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/sdk/ai/generate_image/suggest_tags.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/sdk/ai/generate_stream.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/sdk/ai/generate_voice/__init__.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/sdk/ai/generate_voice/_enum.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/sdk/ai/upscale.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/sdk/schema.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/sdk/user/__init__.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/sdk/user/information.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/sdk/user/login.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/sdk/user/subscription.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/server.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/tokenizer/__init__.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/tokenizer/clip_simple_tokenizer.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/tokenizer/nerdstash_v1.model +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/tokenizer/nerdstash_v2.model +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/tokenizer/novelai.model +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/tokenizer/novelai_v2.model +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/tool/__init__.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/tool/image_metadata/__init__.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/tool/image_metadata/bch_utils.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/tool/image_metadata/lsb_extractor.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/tool/image_metadata/lsb_injector.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/tool/paint_mask/__init__.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/tool/random_prompt/__init__.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/tool/random_prompt/generate_scene_composition.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/tool/random_prompt/generate_scene_tags.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/tool/random_prompt/generate_tags.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/utils/__init__.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/utils/encode.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/utils/useful.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/tests/__init__.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/tests/test_generate_voice.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/tests/test_random_prompt.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/tests/test_server.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/tests/test_server_run.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/tests/test_tokenizer.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/tests/test_upscale.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/tests/test_user_information.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/tests/test_user_login.py +0 -0
- {novelai_python-0.7.4 → novelai_python-0.7.5}/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.7.
|
|
3
|
+
Version: 0.7.5
|
|
4
4
|
Summary: NovelAI Python Binding With Pydantic
|
|
5
5
|
Author-Email: sudoskys <coldlando@hotmail.com>
|
|
6
6
|
License: Apache License 2.0
|
|
@@ -81,7 +81,7 @@ load_dotenv()
|
|
|
81
81
|
session = ApiCredential(api_token=SecretStr(os.getenv("NOVELAI_JWT"))) # pst-***
|
|
82
82
|
# For security reasons, storing user credentials in plaintext is strongly discouraged.
|
|
83
83
|
|
|
84
|
-
prompt = "
|
|
84
|
+
prompt = "2girls, fisheye, closeup, from above"
|
|
85
85
|
|
|
86
86
|
|
|
87
87
|
async def main():
|
|
@@ -90,13 +90,14 @@ async def main():
|
|
|
90
90
|
model=Model.NAI_DIFFUSION_4_CURATED_PREVIEW,
|
|
91
91
|
character_prompts=[
|
|
92
92
|
Character(
|
|
93
|
-
prompt="1girl",
|
|
93
|
+
prompt="1girl, head tilt, short hair, black hair, grey eyes, small breasts, looking at viewer",
|
|
94
94
|
uc="red hair",
|
|
95
|
-
center=PositionMap.
|
|
95
|
+
center=PositionMap.B2
|
|
96
96
|
),
|
|
97
97
|
Character(
|
|
98
|
-
prompt="
|
|
99
|
-
|
|
98
|
+
prompt="1girl, fox ears, fox tail, white hair, white tail, white ears",
|
|
99
|
+
uc="black hair",
|
|
100
|
+
center=PositionMap.D2
|
|
100
101
|
)
|
|
101
102
|
],
|
|
102
103
|
sampler=Sampler.K_EULER_ANCESTRAL,
|
|
@@ -43,7 +43,7 @@ load_dotenv()
|
|
|
43
43
|
session = ApiCredential(api_token=SecretStr(os.getenv("NOVELAI_JWT"))) # pst-***
|
|
44
44
|
# For security reasons, storing user credentials in plaintext is strongly discouraged.
|
|
45
45
|
|
|
46
|
-
prompt = "
|
|
46
|
+
prompt = "2girls, fisheye, closeup, from above"
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
async def main():
|
|
@@ -52,13 +52,14 @@ async def main():
|
|
|
52
52
|
model=Model.NAI_DIFFUSION_4_CURATED_PREVIEW,
|
|
53
53
|
character_prompts=[
|
|
54
54
|
Character(
|
|
55
|
-
prompt="1girl",
|
|
55
|
+
prompt="1girl, head tilt, short hair, black hair, grey eyes, small breasts, looking at viewer",
|
|
56
56
|
uc="red hair",
|
|
57
|
-
center=PositionMap.
|
|
57
|
+
center=PositionMap.B2
|
|
58
58
|
),
|
|
59
59
|
Character(
|
|
60
|
-
prompt="
|
|
61
|
-
|
|
60
|
+
prompt="1girl, fox ears, fox tail, white hair, white tail, white ears",
|
|
61
|
+
uc="black hair",
|
|
62
|
+
center=PositionMap.D2
|
|
62
63
|
)
|
|
63
64
|
],
|
|
64
65
|
sampler=Sampler.K_EULER_ANCESTRAL,
|
|
@@ -42,5 +42,5 @@ class ApiCredential(CredentialBase):
|
|
|
42
42
|
@field_validator('api_token')
|
|
43
43
|
def check_api_token(cls, v: SecretStr):
|
|
44
44
|
if not v.get_secret_value().startswith("pst"):
|
|
45
|
-
logger.warning("api token should start with pst
|
|
45
|
+
logger.warning("api token should start with `pst-`")
|
|
46
46
|
return v
|
|
@@ -281,7 +281,7 @@ def get_modifiers(model: Model) -> Modifier:
|
|
|
281
281
|
if model in [Model.CUSTOM, Model.NAI_DIFFUSION_4_CURATED_PREVIEW]:
|
|
282
282
|
return Modifier(
|
|
283
283
|
qualityTags="",
|
|
284
|
-
suffix=", rating:general,
|
|
284
|
+
suffix=", rating:general, best quality, very aesthetic, absurdres"
|
|
285
285
|
)
|
|
286
286
|
if model in [Model.NAI_DIFFUSION_2]:
|
|
287
287
|
return Modifier(
|
|
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.7.4 → novelai_python-0.7.5}/src/novelai_python/_response/ai/generate_image.py
RENAMED
|
File without changes
|
{novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/_response/ai/generate_stream.py
RENAMED
|
File without changes
|
{novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/_response/ai/generate_voice.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/_response/user/information.py
RENAMED
|
File without changes
|
|
File without changes
|
{novelai_python-0.7.4 → novelai_python-0.7.5}/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
|
|
File without changes
|
{novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/sdk/ai/augment_image/__init__.py
RENAMED
|
File without changes
|
{novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/sdk/ai/augment_image/_enum.py
RENAMED
|
File without changes
|
{novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/sdk/ai/generate/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/sdk/ai/generate/themes.json
RENAMED
|
File without changes
|
{novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/sdk/ai/generate_image/__init__.py
RENAMED
|
File without changes
|
{novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/sdk/ai/generate_image/schema.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/sdk/ai/generate_voice/__init__.py
RENAMED
|
File without changes
|
{novelai_python-0.7.4 → novelai_python-0.7.5}/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.7.4 → novelai_python-0.7.5}/src/novelai_python/tokenizer/clip_simple_tokenizer.py
RENAMED
|
File without changes
|
{novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/tokenizer/nerdstash_v1.model
RENAMED
|
File without changes
|
{novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/tokenizer/nerdstash_v2.model
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/tool/image_metadata/__init__.py
RENAMED
|
File without changes
|
{novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/tool/image_metadata/bch_utils.py
RENAMED
|
File without changes
|
|
File without changes
|
{novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/tool/image_metadata/lsb_injector.py
RENAMED
|
File without changes
|
{novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/tool/paint_mask/__init__.py
RENAMED
|
File without changes
|
{novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/tool/random_prompt/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{novelai_python-0.7.4 → novelai_python-0.7.5}/src/novelai_python/tool/random_prompt/generate_tags.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
|
|
File without changes
|