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

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.1.tar.gz (6.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.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rakel_api-1.0.1.tar.gz
  • Upload date:
  • Size: 6.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.1.tar.gz
Algorithm Hash digest
SHA256 6beec31d765cdc892877ee79eb88a74498f14955963f870019da1c6d0dc3a036
MD5 aa1eb2c806df61522a567379d288c312
BLAKE2b-256 1db8273221db1648463a5610ed32e5973fb9a988cb66101252fd9a0560182496

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: rakel_api-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 82ac0ea58df1482c4a7ebecd5f6b26005aa69dab71ffbe702afce15c58883749
MD5 543c9c26512224bf1bc7ae8f425b9d8d
BLAKE2b-256 f817e9fa7a06dd8d48b279f777263ac2ed559f9dfde76e6dda477237984c7d9c

See more details on using hashes here.

Provenance

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