drawthings-py 0.2.0__tar.gz → 0.2.1__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 (57) hide show
  1. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/PKG-INFO +1 -1
  2. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/pyproject.toml +1 -1
  3. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/configs/gen_config.py +44 -0
  4. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/LICENSE +0 -0
  5. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/README.md +0 -0
  6. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/__init__.py +0 -0
  7. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/_dt_service.py +0 -0
  8. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/_errors.py +0 -0
  9. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/_metadata.py +0 -0
  10. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/_png_writer.py +0 -0
  11. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/_preview_decoders.py +0 -0
  12. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/_util.py +0 -0
  13. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/cli_service.py +0 -0
  14. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/configs/__init__.py +0 -0
  15. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/configs/config_dict.py +0 -0
  16. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/configs/config_prop.py +0 -0
  17. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/configs/configs.py +0 -0
  18. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/configs/enums.py +0 -0
  19. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/configs/presets.py +0 -0
  20. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/configs/prop_schema.py +0 -0
  21. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/configs/types.py +0 -0
  22. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/drawthings.py +0 -0
  23. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/filename_pattern.py +0 -0
  24. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/generated/dt_grpc/__init__.py +0 -0
  25. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/generated/dt_grpc/config_generated.py +0 -0
  26. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/generated/dt_grpc/config_generated.pyi +0 -0
  27. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/generated/dt_grpc/image_service/__init__.py +0 -0
  28. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/grpc_service.py +0 -0
  29. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/image_buffer.py +0 -0
  30. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/py.typed +0 -0
  31. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/request_builder.py +0 -0
  32. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/config_props.yaml +0 -0
  33. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/anima_preview_3.json +0 -0
  34. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/chroma_hd.json +0 -0
  35. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/default.json +0 -0
  36. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/ernie_image_base.json +0 -0
  37. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/ernie_image_turbo.json +0 -0
  38. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/flux_1_dev.json +0 -0
  39. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/flux_1_fill_dev.json +0 -0
  40. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/flux_1_schnell.json +0 -0
  41. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/flux_2_dev_with_turbo.json +0 -0
  42. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/flux_2_klein_4b.json +0 -0
  43. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/flux_2_klein_4b_base.json +0 -0
  44. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/flux_2_klein_9b.json +0 -0
  45. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/flux_2_klein_9b_base.json +0 -0
  46. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/flux_2_klein_9b_kv.json +0 -0
  47. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/qwen_image_2512.json +0 -0
  48. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/qwen_image_2512_lightning.json +0 -0
  49. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/qwen_image_edit_2511.json +0 -0
  50. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/qwen_image_edit_2511_lightning.json +0 -0
  51. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/sdxl.json +0 -0
  52. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/stable_diffusion.json +0 -0
  53. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/z_image_base.json +0 -0
  54. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/configs/z_image_turbo.json +0 -0
  55. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/enums.yaml +0 -0
  56. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/resources/root_ca.crt +0 -0
  57. {drawthings_py-0.2.0 → drawthings_py-0.2.1}/src/drawthings_py/seed_provider.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: drawthings-py
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Python SDK for automating Draw Things image generation over gRPC.
5
5
  License-Expression: GPL-3.0-only
6
6
  License-File: LICENSE
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "drawthings-py"
3
- version = "0.2.0"
3
+ version = "0.2.1"
4
4
  description = "Python SDK for automating Draw Things image generation over gRPC."
5
5
  authors = [{ name = "Kelly Jerrell", email = "kcjerrell@gmail.com" }]
6
6
  readme = "README.md"
@@ -233,6 +233,50 @@ class GenConfig(MutableMapping[ConfigKey, ConfigValue]):
233
233
  "Invalid arguments for set_hires_fix. Either provide no arguments to disable, or width, height, and optionally strength to enable."
234
234
  )
235
235
 
236
+ @overload
237
+ def set_tiled_diffusion(self, value: None, /) -> None: ...
238
+ @overload
239
+ def set_tiled_diffusion(self, width: int, height: int, overlap: int, /) -> None: ...
240
+ def set_tiled_diffusion(
241
+ self,
242
+ arg1: None | int = None,
243
+ height: int | None = None,
244
+ overlap: int | None = None,
245
+ /,
246
+ ) -> None:
247
+ if arg1 is None:
248
+ self["tiled_diffusion"] = False
249
+ del self["diffusion_tile_width"]
250
+ del self["diffusion_tile_height"]
251
+ del self["diffusion_tile_overlap"]
252
+ elif height is not None and overlap is not None:
253
+ self["tiled_diffusion"] = True
254
+ self["diffusion_tile_width"] = arg1
255
+ self["diffusion_tile_height"] = height
256
+ self["diffusion_tile_overlap"] = overlap
257
+
258
+ @overload
259
+ def set_tiled_decoding(self, value: None, /) -> None: ...
260
+ @overload
261
+ def set_tiled_decoding(self, width: int, height: int, overlap: int, /) -> None: ...
262
+ def set_tiled_decoding(
263
+ self,
264
+ arg1: None | int = None,
265
+ height: int | None = None,
266
+ overlap: int | None = None,
267
+ /,
268
+ ) -> None:
269
+ if arg1 is None:
270
+ self["tiled_decoding"] = False
271
+ del self["decoding_tile_width"]
272
+ del self["decoding_tile_height"]
273
+ del self["decoding_tile_overlap"]
274
+ elif height is not None and overlap is not None:
275
+ self["tiled_decoding"] = True
276
+ self["decoding_tile_width"] = arg1
277
+ self["decoding_tile_height"] = height
278
+ self["decoding_tile_overlap"] = overlap
279
+
236
280
  def add_lora(self, file: str, weight: float = 1.0, mode: LoraMode = "All"):
237
281
  """Add a LoRA to the configuration."""
238
282
  # checking for existence is not necessaary - __getitem__ assigns the default
File without changes
File without changes