novelai-python 0.7.7__tar.gz → 0.7.9__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.7 → novelai_python-0.7.9}/PKG-INFO +2 -2
- {novelai_python-0.7.7 → novelai_python-0.7.9}/pyproject.toml +2 -2
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/sdk/ai/_enum.py +28 -2
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/sdk/ai/generate_image/__init__.py +158 -447
- novelai_python-0.7.9/src/novelai_python/sdk/ai/generate_image/params.py +527 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/sdk/ai/generate_image/schema.py +6 -2
- {novelai_python-0.7.7 → novelai_python-0.7.9}/LICENSE +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/NOTICE.MD +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/README.md +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/__init__.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/_enum.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/_exceptions.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/_response/__init__.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/_response/ai/__init__.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/_response/ai/generate.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/_response/ai/generate_image.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/_response/ai/generate_stream.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/_response/ai/generate_voice.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/_response/ai/upscale.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/_response/schema.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/_response/user/__init__.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/_response/user/information.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/_response/user/login.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/_response/user/subscription.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/credential/ApiToken.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/credential/JwtToken.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/credential/UserAuth.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/credential/__init__.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/credential/_base.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/sdk/__init__.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/sdk/ai/LICENSE +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/sdk/ai/__init__.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/sdk/ai/_const.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/sdk/ai/_cost.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/sdk/ai/augment_image/__init__.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/sdk/ai/augment_image/_enum.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/sdk/ai/generate/__init__.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/sdk/ai/generate/_const.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/sdk/ai/generate/_enum.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/sdk/ai/generate/_schema.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/sdk/ai/generate/themes.json +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/sdk/ai/generate_image/suggest_tags.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/sdk/ai/generate_image/tokenizer.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/sdk/ai/generate_stream.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/sdk/ai/generate_voice/__init__.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/sdk/ai/generate_voice/_enum.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/sdk/ai/upscale.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/sdk/schema.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/sdk/user/__init__.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/sdk/user/information.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/sdk/user/login.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/sdk/user/subscription.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/server.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/tokenizer/__init__.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/tokenizer/clip_simple_tokenizer.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/tokenizer/nerdstash_v1.model +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/tokenizer/nerdstash_v2.model +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/tokenizer/novelai.model +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/tokenizer/novelai_v2.model +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/tool/__init__.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/tool/image_metadata/__init__.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/tool/image_metadata/bch_utils.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/tool/image_metadata/lsb_extractor.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/tool/image_metadata/lsb_injector.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/tool/paint_mask/__init__.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/tool/random_prompt/__init__.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/tool/random_prompt/generate_scene_composition.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/tool/random_prompt/generate_scene_tags.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/tool/random_prompt/generate_tags.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/utils/__init__.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/utils/encode.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/src/novelai_python/utils/useful.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/tests/__init__.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/tests/test_generate_voice.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/tests/test_random_prompt.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/tests/test_server.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/tests/test_server_run.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/tests/test_tokenizer.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/tests/test_upscale.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/tests/test_user_information.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/tests/test_user_login.py +0 -0
- {novelai_python-0.7.7 → novelai_python-0.7.9}/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.9
|
|
4
4
|
Summary: NovelAI Python Binding With Pydantic
|
|
5
5
|
Author-Email: sudoskys <coldlando@hotmail.com>
|
|
6
6
|
License: Apache License 2.0
|
|
@@ -14,7 +14,7 @@ Requires-Dist: pydantic>=2.9.0
|
|
|
14
14
|
Requires-Dist: httpx>=0.26.0
|
|
15
15
|
Requires-Dist: shortuuid>=1.0.11
|
|
16
16
|
Requires-Dist: Pillow>=10.2.0
|
|
17
|
-
Requires-Dist: curl-cffi>=0.
|
|
17
|
+
Requires-Dist: curl-cffi>=0.9.0
|
|
18
18
|
Requires-Dist: fastapi>=0.109.0
|
|
19
19
|
Requires-Dist: uvicorn[standard]>=0.27.0.post1
|
|
20
20
|
Requires-Dist: numpy>=1.24.4
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "novelai-python"
|
|
3
|
-
version = "0.7.
|
|
3
|
+
version = "0.7.9"
|
|
4
4
|
description = "NovelAI Python Binding With Pydantic"
|
|
5
5
|
authors = [
|
|
6
6
|
{ name = "sudoskys", email = "coldlando@hotmail.com" },
|
|
@@ -13,7 +13,7 @@ dependencies = [
|
|
|
13
13
|
"httpx>=0.26.0",
|
|
14
14
|
"shortuuid>=1.0.11",
|
|
15
15
|
"Pillow>=10.2.0",
|
|
16
|
-
"curl-cffi>=0.
|
|
16
|
+
"curl-cffi>=0.9.0",
|
|
17
17
|
"fastapi>=0.109.0",
|
|
18
18
|
"uvicorn[standard]>=0.27.0.post1",
|
|
19
19
|
"numpy>=1.24.4",
|
|
@@ -419,7 +419,7 @@ def get_modifiers(model: Model) -> Modifier:
|
|
|
419
419
|
]:
|
|
420
420
|
return Modifier(
|
|
421
421
|
qualityTags="",
|
|
422
|
-
suffix=", location, masterpiece, no text, -0.8::feet::, rating:general"
|
|
422
|
+
suffix=", very aesthetic, location, masterpiece, no text, -0.8::feet::, rating:general"
|
|
423
423
|
)
|
|
424
424
|
if model in [
|
|
425
425
|
Model.NAI_DIFFUSION_4_FULL,
|
|
@@ -721,7 +721,6 @@ def get_uc_preset(model: ModelTypeAlias) -> List[UcPrompt]:
|
|
|
721
721
|
),
|
|
722
722
|
]
|
|
723
723
|
elif model in [
|
|
724
|
-
Model.CUSTOM,
|
|
725
724
|
Model.NAI_DIFFUSION_4_FULL,
|
|
726
725
|
Model.NAI_DIFFUSION_4_FULL_INPAINTING,
|
|
727
726
|
]:
|
|
@@ -742,6 +741,33 @@ def get_uc_preset(model: ModelTypeAlias) -> List[UcPrompt]:
|
|
|
742
741
|
text=""
|
|
743
742
|
),
|
|
744
743
|
]
|
|
744
|
+
elif model in [
|
|
745
|
+
Model.CUSTOM,
|
|
746
|
+
Model.NAI_DIFFUSION_4_5_CURATED,
|
|
747
|
+
Model.NAI_DIFFUSION_4_5_CURATED_INPAINTING,
|
|
748
|
+
]:
|
|
749
|
+
prompts = [
|
|
750
|
+
UcPrompt(
|
|
751
|
+
category="heavy",
|
|
752
|
+
name="heavy",
|
|
753
|
+
text="blurry, lowres, upscaled, artistic error, film grain, scan artifacts, worst quality, bad quality, jpeg artifacts, very displeasing, chromatic aberration, halftone, multiple views, logo, too many watermarks, negative space, blank page"
|
|
754
|
+
),
|
|
755
|
+
UcPrompt(
|
|
756
|
+
category="light",
|
|
757
|
+
name="light",
|
|
758
|
+
text="blurry, lowres, upscaled, artistic error, scan artifacts, jpeg artifacts, logo, too many watermarks, negative space, blank page"
|
|
759
|
+
),
|
|
760
|
+
UcPrompt(
|
|
761
|
+
category="human",
|
|
762
|
+
name="humanFocus",
|
|
763
|
+
text="blurry, lowres, upscaled, artistic error, film grain, scan artifacts, bad anatomy, bad hands, worst quality, bad quality, jpeg artifacts, very displeasing, chromatic aberration, halftone, multiple views, logo, too many watermarks, @_@, mismatched pupils, glowing eyes, negative space, blank page"
|
|
764
|
+
),
|
|
765
|
+
UcPrompt(
|
|
766
|
+
category="none",
|
|
767
|
+
name="none",
|
|
768
|
+
text=""
|
|
769
|
+
),
|
|
770
|
+
]
|
|
745
771
|
return prompts
|
|
746
772
|
|
|
747
773
|
|