{
  "name": "darth-d",
  "display_name": "darth-d",
  "visibility": "public",
  "icon": "",
  "categories": [],
  "schema_version": "0.2.1",
  "on_activate": null,
  "on_deactivate": null,
  "contributions": {
    "commands": [
      {
        "id": "darth-d.napari_experimental_provide_function",
        "title": "create_gui",
        "python_name": "darth_d._napari_plugin:napari_experimental_provide_function",
        "short_title": null,
        "category": null,
        "icon": null,
        "enablement": null
      },
      {
        "id": "darth-d.napari_experimental_provide_function",
        "title": "vary_gui",
        "python_name": "darth_d._napari_plugin:napari_experimental_provide_function",
        "short_title": null,
        "category": null,
        "icon": null,
        "enablement": null
      },
      {
        "id": "darth-d.napari_experimental_provide_function",
        "title": "replace_gui",
        "python_name": "darth_d._napari_plugin:napari_experimental_provide_function",
        "short_title": null,
        "category": null,
        "icon": null,
        "enablement": null
      }
    ],
    "readers": null,
    "writers": null,
    "widgets": [
      {
        "command": "darth-d.napari_experimental_provide_function",
        "display_name": "create_gui",
        "autogenerate": true
      },
      {
        "command": "darth-d.napari_experimental_provide_function",
        "display_name": "vary_gui",
        "autogenerate": true
      },
      {
        "command": "darth-d.napari_experimental_provide_function",
        "display_name": "replace_gui",
        "autogenerate": true
      }
    ],
    "sample_data": null,
    "themes": null,
    "menus": {},
    "submenus": null,
    "keybindings": null,
    "configuration": []
  },
  "package_metadata": {
    "metadata_version": "2.1",
    "name": "darth-d",
    "version": "0.4.0",
    "dynamic": null,
    "platform": null,
    "supported_platform": null,
    "summary": "A simple to use image generator based on OpenAIs DALL-E",
    "description": "# Darth-D\n[![License](https://img.shields.io/pypi/l/darth-d.svg?color=green)](https://github.com/haesleinhuepf/darth-d/raw/main/LICENSE)\n[![PyPI](https://img.shields.io/pypi/v/darth-d.svg?color=green)](https://pypi.org/project/darth-d)\n[![Python Version](https://img.shields.io/pypi/pyversions/darth-d.svg?color=green)](https://python.org)\n[![tests](https://github.com/haesleinhuepf/darth-d/workflows/tests/badge.svg)](https://github.com/haesleinhuepf/darth-d/actions)\n[![codecov](https://codecov.io/gh/haesleinhuepf/darth-d/branch/master/graph/badge.svg)](https://codecov.io/gh/haesleinhuepf/darth-d)\n[![Development Status](https://img.shields.io/pypi/status/darth-d.svg)](https://en.wikipedia.org/wiki/Software_release_life_cycle#Alpha)\n[![napari hub](https://img.shields.io/endpoint?url=https://api.napari-hub.org/shields/darth-d)](https://napari-hub.org/plugins/darth-d)\n\nA simple to use image generator based on [OpenAIs DALL-E 2/3](https://openai.com/dall-e-2).\nIt comes as [napari](https://napari.org/) plugin and has a Python interface. \nYou need an [OpenAI API KEY](https://openai.com/blog/openai-api/) to use it.\n\nUsing some of the functions on scientific images could be seen as scientific misconduct. Handle these functions with care.\n\n![](https://github.com/haesleinhuepf/darth-d/raw/main/docs/images/replace_screencast.gif)\n\n## Usage\n\n### From Python\n\nYou can generate images from text prompts in Python like this ([see this notebool](https://github.com/haesleinhuepf/darth-d/blob/main/demo/demo_darth-d.ipynb)).\n\n```\nfrom darth_d import create\n```\n\n```\nimage = create(\"an image of a cat\")\n\nimage\n```\n\n![](https://github.com/haesleinhuepf/darth-d/raw/main/docs/images/jupyter_screenshot.png)\n\nYou can also vary images ([see this notebook](https://github.com/haesleinhuepf/darth-d/blob/main/demo/demo_vary.ipynb)):\n```\nfrom darth_d import vary\n\noutput_image = vary(input_image)\n```\n\n![](https://github.com/haesleinhuepf/darth-d/raw/main/docs/images/vary_screenshot.png)\n\nReplacing regions in images is also possible. Note: Using this function on scientific images could be seen as scientific misconduct. Handle this function with care.\n\n### In Napari\n\nTo generate images in Napari, click the `Tools > Generate > Image` menu. You can for example enter the prompt\n\"a professional comic with white background showing a cat having an idea. the idea is visualized using a light bulb.\n\n![](https://github.com/haesleinhuepf/darth-d/raw/main/docs/images/napari_screenshot.png)\n\n\n## Installation\n\n```\npip install darth-d\n```\n\nIf you want to use it from napari, please also install napari and the [tools menu](https://github.com/haesleinhuepf/napari-tools-menu):\n\n```\nmamba install napari pyqt napari-tools-menu -c conda-forge\n```\n\n## Similar tools and plugins\n\n* https://github.com/kephale/napari-stable-diffusion\n* https://github.com/seankmartin/napari-stable-diffusion\n\n## Feedback welcome!\n\nThe `darth-d` is developed in the open because we believe in the open source community. Feel free to drop feedback as [github issue](https://github.com/haesleinhuepf/darth-d) or via [image.sc](https://image.sc)\n\n## Contributing\n\nContributions are very welcome. \n\n## License\n\nDistributed under the terms of the [BSD-3] license,\n\"darth-d\" is free and open source software\n\n[BSD-3]: http://opensource.org/licenses/BSD-3-Clause\n\n",
    "description_content_type": "text/markdown",
    "keywords": null,
    "home_page": "https://github.com/haesleinhuepf/darth-d/",
    "download_url": null,
    "author": "Robert Haase",
    "author_email": "robert.haase@uni-leipzig.de",
    "maintainer": null,
    "maintainer_email": null,
    "license": "BSD-3-Clause",
    "classifier": [
      "Framework :: napari",
      "License :: OSI Approved :: BSD License",
      "Topic :: Scientific/Engineering :: Image Processing",
      "Topic :: Scientific/Engineering :: Information Analysis",
      "Programming Language :: Python",
      "Programming Language :: Python :: 3",
      "Programming Language :: Python :: 3.7",
      "Programming Language :: Python :: 3.8",
      "Programming Language :: Python :: 3.9",
      "Operating System :: OS Independent"
    ],
    "requires_dist": [
      "openai >=1.2.0",
      "Pillow",
      "numpy",
      "stackview >=0.7.1"
    ],
    "requires_python": ">=3.8",
    "requires_external": null,
    "project_url": [
      "Bug Tracker, https://github.com/haesleinhuepf/darth-d/issues",
      "Documentation, https://github.com/haesleinhuepf/darth-d/",
      "Source Code, https://github.com/haesleinhuepf/darth-d",
      "User Support, https://forum.image.sc/"
    ],
    "provides_extra": null,
    "provides_dist": null,
    "obsoletes_dist": null
  },
  "npe1_shim": true
}