Skip to main content

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

rakel_api-1.0.3.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rakel_api-1.0.3-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

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

Hashes for rakel_api-1.0.3.tar.gz
Algorithm Hash digest
SHA256 d3722fb54622031d4d536ed07152e101c147a83e8bf83219692894dd347c6216
MD5 3026ed58028f377985d7a4ec871b3232
BLAKE2b-256 e64a928cc6617c5752902380a908ce85f880ae1201c94aa37844b37155cf44d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for rakel_api-1.0.3.tar.gz:

Publisher: publish-pypi.yml on Delima-Source/rakel-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for rakel_api-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 58b89e298c38d0d08b7e5863196c9f83f3b33bf1cc4fee39ebb18aa0e89100c5
MD5 20bbe1b923f012a5506e412f47d30249
BLAKE2b-256 054b5b0d52fe6ebd12671c91944790f942fc2eeb61cd3cba3aca0d8bde6fe4f0

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page