Name | pollinations-ai JSON |
Version |
0.2.3
JSON |
| download |
home_page | https://pollinations.ai/ |
Summary | pollinations.ai | Image Generation |
upload_time | 2023-11-25 04:43:03 |
maintainer | |
docs_url | None |
author | git.pollinations.ai |
requires_python | >=3.7 |
license | MIT License Copyright (c) 2023 toolkitr Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
pollinations
pollinations.ai
pollinations-ai
pollinations_ai
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
<div id="header">
<img src="https://i.ibb.co/p049Y5S/86964862.png" width="50"/> <img src="https://i.ibb.co/r6JZ336/sketch1700556567238.png" width="250">
</div>
# [pollinations.ai - Image Generation](https://pypi.org/project/pollinations.ai)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/toolkitr/tkr/blob/main/LICENSE)
[![Python Versions](https://img.shields.io/badge/python-3.7%20|%203.8%20|%203.9%20|%203.10%20|%203.11%20|%203.12%20-blue)](https://www.python.org/downloads/)
```
pollinations.ai: (https://pollinations.ai/)
This is a WRAPPER designed for easy text-image generation.
```
## Installing
```shell
# Linux/macOS
python3 -m pip install -U pollinations.ai
# Windows
py -3 -m pip install -U pollinations.ai
```
# Simple Examples
```python
import pollinations.ai as ai
prompt: str = 'A cat with a top hat and a mustache.'
prompt_sample: str = ai.sample()
image_generator: ai.Image = ai.Image(save_file='pollinations.ai.jpg') # OPTIONAL: takes save_file parameter
image = image_generator.generate(prompt)
image.save() # OPTIONAL: takes save_file parameter
```
Chatting with text generative ai model:
```python
import pollinations.ai as ai
model: ai.Text = ai.Text()
response: str = model.chat(prompt='What is the meaning of life?')
```
Setting model filter:
```python
import pollinations.ai as ai
image_generator: ai.Image = ai.Image()
image_generator.set_filter(ai.BANNED_WORDS)
# If any word from a prompt is in the filter it will return an exception.
```
Batch sample and generation:
```python
import pollinations.ai as ai
batch: list = ai.sample_batch(size=5)
image_generator: ai.Image = ai.Image()
image_generator.generate_batch(prompts=batch, save=True) # OPTIONAL: path # OPTIONAL: naming = 'counter' | naming = 'prompt'
# image_generator.generate_batch(prompts=batch, save=True, path='somefolder', naming='prompt')
```
# Links
- [Pollinations.ai](https://pollinations.ai/)
- [Discord](https://discord.gg/8HqSRhJVxn)
- [Github](https://github.com/pollinations)
- [Youtube](https://www.youtube.com/channel/UCk4yKnLnYfyUmCCbDzOZOug)
- [Instagram](https://instagram.com/pollinations_ai)
- [Twitter (X)](https://twitter.com/pollinations_ai)
Raw data
{
"_id": null,
"home_page": "https://pollinations.ai/",
"name": "pollinations-ai",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "pollinations,pollinations.ai,pollinations-ai,pollinations_ai",
"author": "git.pollinations.ai",
"author_email": "\"pollinations.ai\" <hello@pollinations.ai>, \"dev.pollinations.ai\" <git.pollinations.ai@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/3c/48/29909565ffdc21b073adb48debc407e2e28fccf329e15bc6d0b297df3773/pollinations.ai-0.2.3.tar.gz",
"platform": null,
"description": "<div id=\"header\">\n <img src=\"https://i.ibb.co/p049Y5S/86964862.png\" width=\"50\"/> <img src=\"https://i.ibb.co/r6JZ336/sketch1700556567238.png\" width=\"250\">\n</div>\n\n# [pollinations.ai - Image Generation](https://pypi.org/project/pollinations.ai)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/toolkitr/tkr/blob/main/LICENSE)\n[![Python Versions](https://img.shields.io/badge/python-3.7%20|%203.8%20|%203.9%20|%203.10%20|%203.11%20|%203.12%20-blue)](https://www.python.org/downloads/)\n\n```\npollinations.ai: (https://pollinations.ai/)\n\nThis is a WRAPPER designed for easy text-image generation.\n```\n\n## Installing\n```shell\n# Linux/macOS\npython3 -m pip install -U pollinations.ai\n\n# Windows\npy -3 -m pip install -U pollinations.ai\n```\n\n# Simple Examples\n```python\nimport pollinations.ai as ai\n\nprompt: str = 'A cat with a top hat and a mustache.'\nprompt_sample: str = ai.sample()\n\nimage_generator: ai.Image = ai.Image(save_file='pollinations.ai.jpg') # OPTIONAL: takes save_file parameter\nimage = image_generator.generate(prompt)\nimage.save() # OPTIONAL: takes save_file parameter\n```\nChatting with text generative ai model:\n```python\nimport pollinations.ai as ai\n\nmodel: ai.Text = ai.Text()\n\nresponse: str = model.chat(prompt='What is the meaning of life?')\n```\n\nSetting model filter:\n```python\nimport pollinations.ai as ai\n\nimage_generator: ai.Image = ai.Image()\nimage_generator.set_filter(ai.BANNED_WORDS)\n\n# If any word from a prompt is in the filter it will return an exception.\n```\nBatch sample and generation:\n```python\nimport pollinations.ai as ai\n\nbatch: list = ai.sample_batch(size=5)\nimage_generator: ai.Image = ai.Image()\nimage_generator.generate_batch(prompts=batch, save=True) # OPTIONAL: path # OPTIONAL: naming = 'counter' | naming = 'prompt'\n\n# image_generator.generate_batch(prompts=batch, save=True, path='somefolder', naming='prompt')\n```\n\n# Links\n- [Pollinations.ai](https://pollinations.ai/)\n- [Discord](https://discord.gg/8HqSRhJVxn)\n- [Github](https://github.com/pollinations)\n- [Youtube](https://www.youtube.com/channel/UCk4yKnLnYfyUmCCbDzOZOug)\n- [Instagram](https://instagram.com/pollinations_ai)\n- [Twitter (X)](https://twitter.com/pollinations_ai)\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2023 toolkitr Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
"summary": "pollinations.ai | Image Generation",
"version": "0.2.3",
"project_urls": {
"Discord": "https://discord.gg/8HqSRhJVxn",
"Github": "https://github.com/pollinations",
"Homepage": "https://pollinations.ai/",
"Instagram": "https://instagram.com/pollinations_ai",
"Twitter": "https://twitter.com/pollinations_ai",
"Website": "https://pollinations.ai/",
"YouTube": "https://www.youtube.com/channel/UCk4yKnLnYfyUmCCbDzOZOug"
},
"split_keywords": [
"pollinations",
"pollinations.ai",
"pollinations-ai",
"pollinations_ai"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "80167ada46f5fe41868909c9fc39a389eb81907c258bca4f0dd2a10ea5633b51",
"md5": "f8eea2eeb4768a2b3f31da32ce73de5b",
"sha256": "511457b263a630a03ef6141ac0682c00a37d429ce8b2faf6be1af06afcd10e2e"
},
"downloads": -1,
"filename": "pollinations_ai-0.2.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f8eea2eeb4768a2b3f31da32ce73de5b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 20308,
"upload_time": "2023-11-25T04:45:54",
"upload_time_iso_8601": "2023-11-25T04:45:54.956585Z",
"url": "https://files.pythonhosted.org/packages/80/16/7ada46f5fe41868909c9fc39a389eb81907c258bca4f0dd2a10ea5633b51/pollinations_ai-0.2.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "db24f5b3adbac7d61f9df41094cb05c1ef5f9558f831e971fcc9d208ec7342ec",
"md5": "cb9192d4bc88fe4a8e631696ab9abb8b",
"sha256": "13c5f9009b8c7fdebfe80b4a63a98905cbede8f96479547ef3dcf6cde75fb46d"
},
"downloads": -1,
"filename": "pollinations.ai-0.2.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "cb9192d4bc88fe4a8e631696ab9abb8b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 20308,
"upload_time": "2023-11-25T04:43:01",
"upload_time_iso_8601": "2023-11-25T04:43:01.208353Z",
"url": "https://files.pythonhosted.org/packages/db/24/f5b3adbac7d61f9df41094cb05c1ef5f9558f831e971fcc9d208ec7342ec/pollinations.ai-0.2.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3c4829909565ffdc21b073adb48debc407e2e28fccf329e15bc6d0b297df3773",
"md5": "e2c078cff13bd78508a0f64258762ae1",
"sha256": "3af6be83d877162eda74b880d97c6eff4156f66e4fd0026e265d2109cee65d5f"
},
"downloads": -1,
"filename": "pollinations.ai-0.2.3.tar.gz",
"has_sig": false,
"md5_digest": "e2c078cff13bd78508a0f64258762ae1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 19203,
"upload_time": "2023-11-25T04:43:03",
"upload_time_iso_8601": "2023-11-25T04:43:03.085441Z",
"url": "https://files.pythonhosted.org/packages/3c/48/29909565ffdc21b073adb48debc407e2e28fccf329e15bc6d0b297df3773/pollinations.ai-0.2.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-25 04:43:03",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "pollinations-ai"
}