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.4.tar.gz (12.7 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.4-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file rakel_api-1.0.4.tar.gz.

File metadata

  • Download URL: rakel_api-1.0.4.tar.gz
  • Upload date:
  • Size: 12.7 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.4.tar.gz
Algorithm Hash digest
SHA256 a1282e0a975e4ebec22f731dc41a89147cc09693c6db252bf248b0f9cf491e1a
MD5 a31327081e8a98731a8a1d2bc1c36d0a
BLAKE2b-256 f0df6ed0f127c512387f82504588c5f93824ae60acd0e1bf1dd710eb96de2f39

See more details on using hashes here.

Provenance

The following attestation bundles were made for rakel_api-1.0.4.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.4-py3-none-any.whl.

File metadata

  • Download URL: rakel_api-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 16.3 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 34704364924c19ab8c642bfd7bb60408a3622b605a36f5b0db2a38ff8c1c23b3
MD5 18603614938d4a9d6ff71d59a0f21851
BLAKE2b-256 da15f1ddb2af3b6a8483e367c7631837c1b4dd7960856f7bd289613378cfbce6

See more details on using hashes here.

Provenance

The following attestation bundles were made for rakel_api-1.0.4-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