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.2.tar.gz (12.3 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.2-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rakel_api-1.0.2.tar.gz
  • Upload date:
  • Size: 12.3 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.2.tar.gz
Algorithm Hash digest
SHA256 af697d070100fa3b07fbc9de9c19e4a64134f996e10c124b36f4051f5d9854af
MD5 c1f05d1441257f4773434172667fac9e
BLAKE2b-256 bf24d195e48ed9dee1c5f1172541cc8245544ef83be2452979f505b5d16311cf

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: rakel_api-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 15.5 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bd6bb9d0a7a3f949421780a2aabc28e9ba4f9d4f2df9d14327d993c3b86f9b5a
MD5 b350f79794ebf9e90c57ea8b4e008698
BLAKE2b-256 a503bc2687bc4d840d2efabb8e1cf25c4f155796e48c90c058f7c16de0f0bac7

See more details on using hashes here.

Provenance

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