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.
Files changed (62) hide show
  1. {novelai_python-0.4.4 → novelai_python-0.4.6}/PKG-INFO +3 -3
  2. {novelai_python-0.4.4 → novelai_python-0.4.6}/README.md +2 -2
  3. {novelai_python-0.4.4 → novelai_python-0.4.6}/pyproject.toml +1 -1
  4. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/__init__.py +4 -0
  5. novelai_python-0.4.6/src/novelai_python/_response/ai/generate_voice.py +7 -0
  6. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/sdk/__init__.py +1 -0
  7. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/sdk/ai/generate_image/__init__.py +312 -236
  8. novelai_python-0.4.6/src/novelai_python/sdk/ai/generate_voice/__init__.py +196 -0
  9. novelai_python-0.4.6/src/novelai_python/sdk/ai/generate_voice/_enum.py +54 -0
  10. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/server.py +35 -4
  11. novelai_python-0.4.6/tests/test_generate_voice.py +34 -0
  12. {novelai_python-0.4.4 → novelai_python-0.4.6}/LICENSE +0 -0
  13. {novelai_python-0.4.4 → novelai_python-0.4.6}/NOTICE.MD +0 -0
  14. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/_exceptions.py +0 -0
  15. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/_response/__init__.py +0 -0
  16. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/_response/ai/__init__.py +0 -0
  17. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/_response/ai/generate_image.py +0 -0
  18. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/_response/ai/upscale.py +0 -0
  19. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/_response/schema.py +0 -0
  20. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/_response/user/__init__.py +0 -0
  21. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/_response/user/information.py +0 -0
  22. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/_response/user/login.py +0 -0
  23. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/_response/user/subscription.py +0 -0
  24. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/credential/ApiToken.py +0 -0
  25. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/credential/JwtToken.py +0 -0
  26. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/credential/UserAuth.py +0 -0
  27. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/credential/__init__.py +0 -0
  28. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/credential/_base.py +0 -0
  29. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/sdk/ai/LICENSE +0 -0
  30. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/sdk/ai/__init__.py +0 -0
  31. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/sdk/ai/generate_image/_const.py +0 -0
  32. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/sdk/ai/generate_image/_enum.py +0 -0
  33. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/sdk/ai/generate_image/suggest_tags.py +0 -0
  34. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/sdk/ai/upscale.py +0 -0
  35. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/sdk/schema.py +0 -0
  36. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/sdk/user/__init__.py +0 -0
  37. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/sdk/user/information.py +0 -0
  38. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/sdk/user/login.py +0 -0
  39. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/sdk/user/subscription.py +0 -0
  40. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/tokenizer/__init__.py +0 -0
  41. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/tokenizer/novelai.model +0 -0
  42. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/tokenizer/novelai_v2.model +0 -0
  43. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/tool/__init__.py +0 -0
  44. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/tool/image_metadata/__init__.py +0 -0
  45. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/tool/image_metadata/lsb_extractor.py +0 -0
  46. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/tool/image_metadata/lsb_injector.py +0 -0
  47. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/tool/paint_mask/__init__.py +0 -0
  48. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/tool/random_prompt/__init__.py +0 -0
  49. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/tool/random_prompt/tag.py +0 -0
  50. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/tool/random_prompt/tag_character.py +0 -0
  51. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/tool/random_prompt/tag_nsfw.py +0 -0
  52. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/utils/__init__.py +0 -0
  53. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/utils/encode.py +0 -0
  54. {novelai_python-0.4.4 → novelai_python-0.4.6}/src/novelai_python/utils/useful.py +0 -0
  55. {novelai_python-0.4.4 → novelai_python-0.4.6}/tests/__init__.py +0 -0
  56. {novelai_python-0.4.4 → novelai_python-0.4.6}/tests/test_random_prompt.py +0 -0
  57. {novelai_python-0.4.4 → novelai_python-0.4.6}/tests/test_server.py +0 -0
  58. {novelai_python-0.4.4 → novelai_python-0.4.6}/tests/test_server_run.py +0 -0
  59. {novelai_python-0.4.4 → novelai_python-0.4.6}/tests/test_upscale.py +0 -0
  60. {novelai_python-0.4.4 → novelai_python-0.4.6}/tests/test_user_information.py +0 -0
  61. {novelai_python-0.4.4 → novelai_python-0.4.6}/tests/test_user_login.py +0 -0
  62. {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.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 '0.0.0.0' -p 7888
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 '0.0.0.0' -p 7888
101
+ python3 -m novelai_python.server -h '127.0.0.1' -p 7888
102
102
  ```
103
103
 
104
104
  ## Acknowledgements 🙏
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "novelai-python"
3
- version = "0.4.4"
3
+ version = "0.4.6"
4
4
  description = "NovelAI Python Binding With Pydantic"
5
5
  authors = [
6
6
  { name = "sudoskys", email = "coldlando@hotmail.com" },
@@ -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
 
@@ -0,0 +1,7 @@
1
+ from pydantic import BaseModel, ConfigDict
2
+
3
+
4
+ class VoiceResponse(BaseModel):
5
+ meta: dict
6
+ audio: bytes
7
+ model_config = ConfigDict(extra="ignore", arbitrary_types_allowed=True)
@@ -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