# pyqt-dreamstudio
Using DreamStudio API in Python desktop application
You can make a bunch of image without installing heavy resources like CUDA, torch, etc. But it's not free.
This is separated from <a href="https://github.com/yjg30737/pyqt-openai">pyqt-openai</a> package to people who only wants to use stable diffusion api
and who wants to fork this to make their app.
## Prerequisite
You have to get the DreamStudio api key from <a href="https://platform.stability.ai/docs/getting-started/authentication">here</a>.
Using DreamStudio or the API requires credits. Take a look at <a href="https://platform.stability.ai/docs/getting-started/credits-and-billing#sdxl-pricing-table">pricing</a> about this.
Make your image in <a href="https://beta.dreamstudio.ai/generate">here</a> before doing with this app.
## How to Install
### By Cloninig
1. git clone ~
2. cd pyqt-dreamstudio
3. pip install -r requirements.txt
4. python setup.py install
5. cd pyqt_dreamstudio
6. python main.py
### By pip
1. pip install pyqt_dreamstudio
2.
```python
from PyQt5.QtWidgets import QApplication
# can use PySide6 as well
from pyqt_dreamstudio.main import ImageGeneratingToolWidget
if __name__ == "__main__":
import sys
app = QApplication(sys.argv)
window = ImageGeneratingToolWidget()
window.show()
sys.exit(app.exec_())
```
## How to Use
There is the options tab at the right side of the window.
Input your API key, choose parameters you want to set, write propmt, submit it, and you can see the result at the left side (which looks like file explorer) soon enough.
See the <a href="https://platform.stability.ai/docs/features/api-parameters">whole explanation</a> about every options to make better image.
After images got generated, you can copy or download any images when you put the mouse cursor over them.
## Result

## Note
As far as i know, Using Stable Diffusion with API doesn't support disable safety filter. Shame!!
So if you type any words which is considered as NSFW, toast containing error message will show up
## License
MIT
Raw data
{
"_id": null,
"home_page": "https://github.com/yjg30737/pyqt-dreamstudio.git",
"name": "pyqt-dreamstudio",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Jung Gyu Yoon",
"author_email": "yjg30737@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/8a/b9/6317a3ab18d54d535417eff543f9a76d0b6e7a4585babef62b8d8d399600/pyqt-dreamstudio-0.0.12.tar.gz",
"platform": null,
"description": "\r\n# pyqt-dreamstudio\r\n\r\nUsing DreamStudio API in Python desktop application\r\n\r\n\r\n\r\nYou can make a bunch of image without installing heavy resources like CUDA, torch, etc. But it's not free.\r\n\r\n\r\n\r\nThis is separated from <a href=\"https://github.com/yjg30737/pyqt-openai\">pyqt-openai</a> package to people who only wants to use stable diffusion api\r\n\r\n\r\n\r\nand who wants to fork this to make their app.\r\n\r\n\r\n\r\n## Prerequisite \r\n\r\nYou have to get the DreamStudio api key from <a href=\"https://platform.stability.ai/docs/getting-started/authentication\">here</a>.\r\n\r\n\r\n\r\nUsing DreamStudio or the API requires credits. Take a look at <a href=\"https://platform.stability.ai/docs/getting-started/credits-and-billing#sdxl-pricing-table\">pricing</a> about this.\r\n\r\n\r\n\r\nMake your image in <a href=\"https://beta.dreamstudio.ai/generate\">here</a> before doing with this app.\r\n\r\n\r\n\r\n## How to Install\r\n\r\n### By Cloninig\r\n\r\n1. git clone ~\r\n\r\n2. cd pyqt-dreamstudio\r\n\r\n3. pip install -r requirements.txt\r\n\r\n4. python setup.py install\r\n\r\n5. cd pyqt_dreamstudio\r\n\r\n6. python main.py\r\n\r\n### By pip\r\n\r\n1. pip install pyqt_dreamstudio\r\n\r\n2. \r\n\r\n```python\r\n\r\nfrom PyQt5.QtWidgets import QApplication\r\n\r\n# can use PySide6 as well\r\n\r\nfrom pyqt_dreamstudio.main import ImageGeneratingToolWidget\r\n\r\n\r\n\r\n\r\n\r\nif __name__ == \"__main__\":\r\n\r\n import sys\r\n\r\n\r\n\r\n app = QApplication(sys.argv)\r\n\r\n window = ImageGeneratingToolWidget()\r\n\r\n window.show()\r\n\r\n sys.exit(app.exec_())\r\n\r\n```\r\n\r\n\r\n\r\n## How to Use\r\n\r\nThere is the options tab at the right side of the window. \r\n\r\n\r\n\r\nInput your API key, choose parameters you want to set, write propmt, submit it, and you can see the result at the left side (which looks like file explorer) soon enough.\r\n\r\n\r\n\r\nSee the <a href=\"https://platform.stability.ai/docs/features/api-parameters\">whole explanation</a> about every options to make better image.\r\n\r\n\r\n\r\nAfter images got generated, you can copy or download any images when you put the mouse cursor over them. \r\n\r\n\r\n\r\n## Result\r\n\r\n\r\n\r\n\r\n\r\n## Note\r\n\r\nAs far as i know, Using Stable Diffusion with API doesn't support disable safety filter. Shame!!\r\n\r\n\r\n\r\nSo if you type any words which is considered as NSFW, toast containing error message will show up\r\n\r\n\r\n\r\n## License\r\n\r\nMIT\r\n\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Using DreamStudio API in Python desktop application",
"version": "0.0.12",
"project_urls": {
"Homepage": "https://github.com/yjg30737/pyqt-dreamstudio.git"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e08479aa225352c7b0565b8ef796b4ead8232c474b14fa3f45e6f8fcd17a394c",
"md5": "d0e74392d8cf1741655e588b1508f072",
"sha256": "19913ff333f709bde658bef8cf61dd6334ebf43eecb4495d09c07fc058ec9873"
},
"downloads": -1,
"filename": "pyqt_dreamstudio-0.0.12-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d0e74392d8cf1741655e588b1508f072",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 259339,
"upload_time": "2023-05-29T08:48:59",
"upload_time_iso_8601": "2023-05-29T08:48:59.133769Z",
"url": "https://files.pythonhosted.org/packages/e0/84/79aa225352c7b0565b8ef796b4ead8232c474b14fa3f45e6f8fcd17a394c/pyqt_dreamstudio-0.0.12-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8ab96317a3ab18d54d535417eff543f9a76d0b6e7a4585babef62b8d8d399600",
"md5": "a413b29f6affb2a5416edbdf1258d0ae",
"sha256": "5363f58fe4df2790f3c4ffb92fff1256e316e9e4c1f80634c111186e58e0e650"
},
"downloads": -1,
"filename": "pyqt-dreamstudio-0.0.12.tar.gz",
"has_sig": false,
"md5_digest": "a413b29f6affb2a5416edbdf1258d0ae",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 256355,
"upload_time": "2023-05-29T08:49:01",
"upload_time_iso_8601": "2023-05-29T08:49:01.662351Z",
"url": "https://files.pythonhosted.org/packages/8a/b9/6317a3ab18d54d535417eff543f9a76d0b6e7a4585babef62b8d8d399600/pyqt-dreamstudio-0.0.12.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-05-29 08:49:01",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "yjg30737",
"github_project": "pyqt-dreamstudio",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "pyqt-dreamstudio"
}