A WhatsApp Web API library infinitely superior for Python developers.
Project description
Rakel Python SDK 🐍🍡
Uma biblioteca de WhatsApp infinitamente superior para desenvolvedores Python.
Instalação
pip install rakel-api
Nota: A Rakel é uma biblioteca híbrida. Você precisa ter o Node.js instalado no seu sistema para que o motor da API funcione.
Como usar
from rakel import RakelClient, MochiFlow
import asyncio
async def main():
client = RakelClient()
# Define um fluxo de conversa
pizza_flow = MochiFlow("pizza") \
.start("greeting", "Olá! Qual seu nome?") \
.ask("name", next_step="sabor") \
.ask("sabor", "Prazer {name}! Qual sabor você quer?") \
.end("end", "Pedido de {sabor} anotado!")
@client.on("message")
async def handle_message(msg):
print(f"Mensagem de {msg['from']}: {msg['text']}")
await client.connect()
# Mantém o loop rodando
while True:
await asyncio.sleep(1)
if __name__ == "__main__":
asyncio.run(main())
Paradigma MochiMochi
Este SDK segue o paradigma MochiMochi, focado em minimalismo afetivo e código limpo.
- Fácil: API intuitiva e direta.
- Rápido: Baseado em
asyncio. - Estético: Estrutura organizada e logs bonitos com
loguru.
Licença
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rakel_api-1.0.3.tar.gz.
File metadata
- Download URL: rakel_api-1.0.3.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3722fb54622031d4d536ed07152e101c147a83e8bf83219692894dd347c6216
|
|
| MD5 |
3026ed58028f377985d7a4ec871b3232
|
|
| BLAKE2b-256 |
e64a928cc6617c5752902380a908ce85f880ae1201c94aa37844b37155cf44d2
|
Provenance
The following attestation bundles were made for rakel_api-1.0.3.tar.gz:
Publisher:
publish-pypi.yml on Delima-Source/rakel-api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rakel_api-1.0.3.tar.gz -
Subject digest:
d3722fb54622031d4d536ed07152e101c147a83e8bf83219692894dd347c6216 - Sigstore transparency entry: 848568940
- Sigstore integration time:
-
Permalink:
Delima-Source/rakel-api@6fab13c72935cf6ce2a10251c931afbe38ecff67 -
Branch / Tag:
refs/tags/1.0.4 - Owner: https://github.com/Delima-Source
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@6fab13c72935cf6ce2a10251c931afbe38ecff67 -
Trigger Event:
release
-
Statement type:
File details
Details for the file rakel_api-1.0.3-py3-none-any.whl.
File metadata
- Download URL: rakel_api-1.0.3-py3-none-any.whl
- Upload date:
- Size: 16.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58b89e298c38d0d08b7e5863196c9f83f3b33bf1cc4fee39ebb18aa0e89100c5
|
|
| MD5 |
20bbe1b923f012a5506e412f47d30249
|
|
| BLAKE2b-256 |
054b5b0d52fe6ebd12671c91944790f942fc2eeb61cd3cba3aca0d8bde6fe4f0
|
Provenance
The following attestation bundles were made for rakel_api-1.0.3-py3-none-any.whl:
Publisher:
publish-pypi.yml on Delima-Source/rakel-api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rakel_api-1.0.3-py3-none-any.whl -
Subject digest:
58b89e298c38d0d08b7e5863196c9f83f3b33bf1cc4fee39ebb18aa0e89100c5 - Sigstore transparency entry: 848568970
- Sigstore integration time:
-
Permalink:
Delima-Source/rakel-api@6fab13c72935cf6ce2a10251c931afbe38ecff67 -
Branch / Tag:
refs/tags/1.0.4 - Owner: https://github.com/Delima-Source
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@6fab13c72935cf6ce2a10251c931afbe38ecff67 -
Trigger Event:
release
-
Statement type: