Sd-parsers

Latest version: v0.2.3

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

Scan your dependencies

0.3

> Read below and check the provided examples to get an idea of what has changed.

Changes

* The import statement has changed to: `import sd_parsers`.

* `ParserManager.parse()` now has an option to lazily read the image parameters.

Setting `lazy_read` to `True` will delay the evaluation of parameter values until necessary.

This will speed up the initial metadata retrieval. (into `PromptInfo.parameters`)

Warning: as lazy parsing does delay some metadata checks, false results will happen more often (i.e., JPEG images with a set `UserComment` field).

* `PromptInfo.prompts` changed from a list of tuples of positive and negative to two separate lists: `PromptInfo.prompts` and `PromptInfo.negative_prompts`.

* `PromptInfo.raw_params` was renamed to `PromptInfo.parameters`.

* The value of `PromptInfo.generator` is now an entry of `sd_parsers.Generators`.

* The ability to read instructions from a config file has been removed.

0.3rc2

TL/DR
General library rework, extended ComfyUI & updated InvokeAI parsing.

> [!WARNING]

0.3rc1

TL/DR
General library rework, extend ComfyUI parsing.

> [!WARNING]

0.2.3

* The import statement has changed to: `import sd_parsers`.

* `ParserManager.parse()` now has an option to lazily read the image parameters.

Setting `lazy_read` to `True` will delay the evaluation of parameter values until necessary.

This will speed up the initial metadata retrieval. (into `PromptInfo.parameters`)

Warning: as lazy parsing does delay some metadata checks, false results will happen more often (i.e., JPEG images with a set `UserComment` field).

* `PromptInfo.prompts` changed from a list of tuples of positive and negative to two separate lists: `PromptInfo.prompts` and `PromptInfo.negative_prompts`.

* `PromptInfo.raw_params` was renamed to `PromptInfo.parameters`.

* The value of `PromptInfo.generator` is now an entry of `sd_parsers.Generators`.

* The ability to read instructions from a config file has been removed.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.