novelai-python 0.4.4__tar.gz → 0.4.6__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.4.4 → novelai_python-0.4.6}/PKG-INFO +3 -3
- {novelai_python-0.4.4 → novelai_python-0.4.6}/README.md +2 -2
- {novelai_python-0.4.4 → novelai_python-0.4.6}/pyproject.toml +1 -1
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/__init__.py +4 -0
- novelai_python-0.4.6/src/novelai_python/_response/ai/generate_voice.py +7 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/sdk/__init__.py +1 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/sdk/ai/generate_image/__init__.py +312 -236
- novelai_python-0.4.6/src/novelai_python/sdk/ai/generate_voice/__init__.py +196 -0
- novelai_python-0.4.6/src/novelai_python/sdk/ai/generate_voice/_enum.py +54 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/server.py +35 -4
- novelai_python-0.4.6/tests/test_generate_voice.py +34 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/LICENSE +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/NOTICE.MD +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/_exceptions.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/_response/__init__.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/_response/ai/__init__.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/_response/ai/generate_image.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/_response/ai/upscale.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/_response/schema.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/_response/user/__init__.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/_response/user/information.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/_response/user/login.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/_response/user/subscription.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/credential/ApiToken.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/credential/JwtToken.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/credential/UserAuth.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/credential/__init__.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/credential/_base.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/sdk/ai/LICENSE +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/sdk/ai/__init__.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/sdk/ai/generate_image/_const.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/sdk/ai/generate_image/_enum.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/sdk/ai/generate_image/suggest_tags.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/sdk/ai/upscale.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/sdk/schema.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/sdk/user/__init__.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/sdk/user/information.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/sdk/user/login.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/sdk/user/subscription.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/tokenizer/__init__.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/tokenizer/novelai.model +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/tokenizer/novelai_v2.model +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/tool/__init__.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/tool/image_metadata/__init__.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/tool/image_metadata/lsb_extractor.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/tool/image_metadata/lsb_injector.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/tool/paint_mask/__init__.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/tool/random_prompt/__init__.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/tool/random_prompt/tag.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/tool/random_prompt/tag_character.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/tool/random_prompt/tag_nsfw.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/utils/__init__.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/utils/encode.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/utils/useful.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/tests/__init__.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/tests/test_random_prompt.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/tests/test_server.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/tests/test_server_run.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/tests/test_upscale.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/tests/test_user_information.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/tests/test_user_login.py +0 -0
- {novelai_python-0.4.4 → novelai_python-0.4.6}/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.4.
|
|
3
|
+
Version: 0.4.6
|
|
4
4
|
Summary: NovelAI Python Binding With Pydantic
|
|
5
5
|
Author-Email: sudoskys <coldlando@hotmail.com>
|
|
6
6
|
License: Apache License 2.0
|
|
@@ -51,11 +51,11 @@ The goal of this repository is to use Pydantic to build legitimate requests to a
|
|
|
51
51
|
- [x] /user/information
|
|
52
52
|
- [x] /ai/upscale
|
|
53
53
|
- [x] /ai/generate-image/suggest-tags
|
|
54
|
+
- [x] /ai/generate-voice
|
|
54
55
|
- [ ] /ai/annotate-image
|
|
55
56
|
- [ ] /ai/classify
|
|
56
57
|
- [ ] /ai/generate-prompt
|
|
57
58
|
- [ ] /ai/generate
|
|
58
|
-
- [ ] /ai/generate-voice
|
|
59
59
|
|
|
60
60
|
> GenerateImageInfer.calculate_cost is correct in most cases, but please request account information to get accurate
|
|
61
61
|
> consumption information.
|
|
@@ -129,7 +129,7 @@ print(s)
|
|
|
129
129
|
|
|
130
130
|
```shell
|
|
131
131
|
pip install novelai_python
|
|
132
|
-
python3 -m novelai_python.server -h '
|
|
132
|
+
python3 -m novelai_python.server -h '127.0.0.1' -p 7888
|
|
133
133
|
```
|
|
134
134
|
|
|
135
135
|
## Acknowledgements 🙏
|
|
@@ -20,11 +20,11 @@ The goal of this repository is to use Pydantic to build legitimate requests to a
|
|
|
20
20
|
- [x] /user/information
|
|
21
21
|
- [x] /ai/upscale
|
|
22
22
|
- [x] /ai/generate-image/suggest-tags
|
|
23
|
+
- [x] /ai/generate-voice
|
|
23
24
|
- [ ] /ai/annotate-image
|
|
24
25
|
- [ ] /ai/classify
|
|
25
26
|
- [ ] /ai/generate-prompt
|
|
26
27
|
- [ ] /ai/generate
|
|
27
|
-
- [ ] /ai/generate-voice
|
|
28
28
|
|
|
29
29
|
> GenerateImageInfer.calculate_cost is correct in most cases, but please request account information to get accurate
|
|
30
30
|
> consumption information.
|
|
@@ -98,7 +98,7 @@ print(s)
|
|
|
98
98
|
|
|
99
99
|
```shell
|
|
100
100
|
pip install novelai_python
|
|
101
|
-
python3 -m novelai_python.server -h '
|
|
101
|
+
python3 -m novelai_python.server -h '127.0.0.1' -p 7888
|
|
102
102
|
```
|
|
103
103
|
|
|
104
104
|
## Acknowledgements 🙏
|
|
@@ -12,6 +12,7 @@ from ._exceptions import (
|
|
|
12
12
|
)
|
|
13
13
|
from .credential import JwtCredential, LoginCredential, ApiCredential
|
|
14
14
|
from .sdk import GenerateImageInfer, ImageGenerateResp
|
|
15
|
+
from .sdk import VoiceGenerate, VoiceResponse
|
|
15
16
|
from .sdk import SuggestTags, SuggestTagsResp
|
|
16
17
|
from .sdk import Information, InformationResp
|
|
17
18
|
from .sdk import Login, LoginResp
|
|
@@ -22,6 +23,9 @@ __all__ = [
|
|
|
22
23
|
"GenerateImageInfer",
|
|
23
24
|
"ImageGenerateResp",
|
|
24
25
|
|
|
26
|
+
"VoiceGenerate",
|
|
27
|
+
"VoiceResponse",
|
|
28
|
+
|
|
25
29
|
"Upscale",
|
|
26
30
|
"UpscaleResp",
|
|
27
31
|
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
from .ai.generate_image import GenerateImageInfer, ImageGenerateResp # noqa 401
|
|
8
8
|
from .ai.generate_image.suggest_tags import SuggestTags, SuggestTagsResp # noqa 401
|
|
9
|
+
from .ai.generate_voice import VoiceGenerate, VoiceResponse # noqa 401
|
|
9
10
|
from .ai.upscale import Upscale, UpscaleResp # noqa 401
|
|
10
11
|
from .user.information import Information, InformationResp # noqa 401
|
|
11
12
|
from .user.login import Login, LoginResp # noqa 401
|