pollinationsai
Uma biblioteca Python leve e sarcástica para interagir com a API da Pollinations AI. Gerencie memória localmente, gere imagens e converse com a IA de forma simples.
Instalação
pip install pollinationsai
Como Usar
Aqui está um resumo de como utilizar as principais funcionalidades:
import pollinationsai as ai
# 1. Obter resposta da IA
resposta = ai.getaianswer("Qual a capital da França?")
print(resposta)
# 2. Definir persona (Ex: 'sarcástico')
print(ai.aipersona('sarcástico'))
# 3. Memorizar informações localmente (memory.json)
ai.aimemorize("Bugs são apenas funcionalidades não documentadas.")
print(ai.aihistory())
# 4. Gerar links de imagens via IA
link = ai.aiimagine("Um robô programando em Python")
print(f"Sua imagem: {link}")
# 5. Esquecer algo da memória
ai.aiforget("1")
Funcionalidades
getaianswer(prompt): Conecta com a IA e retorna texto puro.
aimemorize(data): Salva dados em um memory.json.
aiimagine(prompt): Retorna o link da imagem gerada pela Pollinations.
aistatus(): Verifica se o serviço está Online.
aipersona(estilo): Define o tom da conversa.
Licença
MIT
Metadata
Release files for Python-Pollinations-AI 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python_pollinations_ai-0.1.0.tar.gz | 2.6 kB | Without provenance | Details for python_pollinations_ai-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_pollinations_ai-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for python_pollinations_ai-0.1.0-py3-none-any.whl |
Total release size: 5.6 kB
Release files / python_pollinations_ai-0.1.0.tar.gz
| Download URL | python_pollinations_ai-0.1.0.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
90b813605aac80629f40a1f56c27a3b8ad81d027a684204d773a317385e9cb10
|
|
BLAKE2b-256 checksum How to use checksums |
0e081b12d33181066f156a4bdea288b30e7dec4c3e516551ceeeffb96af358ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Release files / python_pollinations_ai-0.1.0-py3-none-any.whl
| Download URL | python_pollinations_ai-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d1660aee4ff96a7799d9b5974c13b25b0253510f640f6a9ad4138ce85d12e26e
|
|
BLAKE2b-256 checksum How to use checksums |
2e6ff5795dca289a95f58948960e17e00d12a18002b270a886c12c5019fac9d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Security for Python-Pollinations-AI 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.