Novelai-python

Latest version: v0.4.11

Safety actively analyzes 638264 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.4.1

- Update enum with new model NAI_DIFFUSION_2

- Change Func Name
diff
- ImageMetadata.write_out
+ ImageMetadata.apply_to_image


- Get model name from code
diff
+ ImageMetadata.used_model


> [!CAUTION]

0.4.0

- [x] Remove `NovelAIMetadata` from utils, move to `from novelai_python.tool.image_metadata`

- [x] random prompt
diff
- utils.random_prompt
+ tool.random_prompt


- [x] Remove param in `API.generate(**kwarg)`
diff
:param override_headers:
:param session: session
- :param remove_sign: 移除追踪信息


- [x] Move `create_mask_from_sketch` to tool
diff
- from novelai_python.utils.useful import create_mask_from_sketch
+ from novelai_python.tool.paint_mask import create_mask_from_sketch


- [x] Add `tokenizer`
diff
+ from novelai_python.tokenizer import TokenizerUtil


- [x] Add `verify`
diff
+ from novelai_python.tool.image_metadata import ImageMetadata
+ verify = ImageMetadata.verify_image_is_novelai(Image.open(image))


Solve 37 36

What's Changed
* ✨ feat: add apply_lsb script, update enum with new model, and fix lsb… by sudoskys in https://github.com/LlmKira/novelai-python/pull/39


**Full Changelog**: https://github.com/LlmKira/novelai-python/compare/pypi_0.4.0...pypi_0.4.1

pypi_0.4.0
> [!CAUTION]
> Break Change

- [x] Remove `NovelAIMetadata` from utils, move to `from novelai_python.tool.image_metadata`

- [x] random prompt
diff
- utils.random_prompt
+ tool.random_prompt


- [x] Remove param in `API.generate(**kwarg)`
diff
:param override_headers:
:param session: session
- :param remove_sign: 移除追踪信息


- [x] Move `create_mask_from_sketch` to tool
diff
- from novelai_python.utils.useful import create_mask_from_sketch
+ from novelai_python.tool.paint_mask import create_mask_from_sketch


- [x] Add `tokenizer`
diff
+ from novelai_python.tokenizer import TokenizerUtil


- [x] Add `verify`
diff
+ from novelai_python.tool.image_metadata import ImageMetadata
+ verify = ImageMetadata.verify_image_is_novelai(Image.open(image))


Solve 37 36

pypi_0.3.8


pypi_0.3.7
- [x] Fix logic errors to make vibe consistent with web effects

pypi_0.3.6
- The backend has been converted from `api.novelai.net` to `image.novelai.net`, please refer to issue 32. This backend will compete with the web page for threads.

What's Changed
* Vibe inpaint Support & better playground by sudoskys in https://github.com/LlmKira/novelai-python/pull/31

**Full Changelog**: https://github.com/LlmKira/novelai-python/compare/pypi_0.3.5...pypi_0.3.6

pypi_0.3.5
python
gen = GenerateImageInfer.build(
prompt=f"1girl, spring, jacket, sfw, angel, flower,{enhance}",
action=Action.GENERATE,
image=encoded,
add_original_image=True,
strength=0.6,
reference_mode=True, IMPORTANT
width=1088,
height=896
)

when reference_mode is True, strength -> reference_strength

What's Changed
* Vibe Transfer by sudoskys in https://github.com/LlmKira/novelai-python/pull/29
* fix(sdk): Add reference_image reference_strength etc. by sudoskys in https://github.com/LlmKira/novelai-python/pull/30


**Full Changelog**: https://github.com/LlmKira/novelai-python/compare/pypi_0.3.4...pypi_0.3.5

pypi_0.3.4


pypi_0.3.3


pypi_0.3.2
/ai/generate-image/suggest-tags

pypi_0.3.1


pypi_0.3.0
FOR INPAINT

pypi_0.2.9
✨ feat: add /ai/upscale endpoint to API

The /ai/upscale endpoint has been added to the API.

- [x] Fix error when using AsyncSession as input

pypi_0.2.8


pypi_0.2.7

0.2.7

pypi_0.2.6


pypi_0.2.5
Break Change:
- GenerateImageInfer.generate -> GenerateImageInfer.request

pypi_0.2.4
1

pypi_0.2.3
Better On Building

pypi_0.2.2


pypi_0.2.1
1

pypi_0.2.0
-

pypi_0.1.9
-

pypi_0.1.8
- [x] /user/subscription

pypi_0.1.7
111

pypi_0.1.6
- [x] Server
- [x] Img2img

pypi_0.1.5
pypi_0.1.5

pypi_0.1.4
1

pypi_0.1.3
- [x] random prompt

pypi_0.1.2
- [x] raise some fix

pypi_0.1.1
- [x] image gen

pypi_0.1.0
1

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.