semvec/pypi-packages huggingface dataset:
whatsapp-framework 0.5.0
Whatsapp framework simplifies building and deploying whatsapp based application
Requires Python: >=3.9
Keywords: whatsapp, chatbot

# Whatsapp Framework

**Whatsapp Framework** simplifies building and deploying whatsapp based applications.

## Installation

```bash
pip install whatsapp-framework
```

## Example Usage

Here's a basic example of how to use Whatsapp Framework:

```python
from whatsapp.events import Message
from whatsapp.chat import ChatHandler
from whatsapp.reply_message import Message as ReplyMessage, Text


class SimpleChatHandler(ChatHandler):
    token = "<whatsapp_access_token>"
    whatsapp_number = "<whatsapp_phone_number>"

    def on_message(self, message: Message):
        message_type = message.type
        file = message.message.file
        name = message.contacts[0].profile.name

        req = ReplyMessage(
            type="text",
            to=message.to,
            text=Text(
                preview_url=False,
                body=f"""
Hello, {name}!

I received a {message_type} from you.
I've saved it as {file}.
"""
            ),
        )
        self.send(req)


def main():
    chat_handler = SimpleChatHandler(debug=True, start_proxy=False)
    chat_handler.start()


if __name__ == "__main__":
    main()
```

## License

Whatsapp Framework is licensed under the [MIT License](LICENSE). See the [LICENSE](LICENSE) file for details.

## Contact

If you have any questions or need support, please open an issue on [GitHub Issues](https://github.com/raven-consult/whatsapp_framework/issues) or contact us at [support@ravenconsulting.site](mailto:support@ravenconsulting.site).
pyroll-cli 3.0.0
PyRoll rolling simulation framework - command line interface (CLI).
Requires Python: >=3.9

# PyRoll CLI

This is a command line interface (CLI) for the rollig simulation framework PyRolL.
See the [core repository](https://github.com/pyroll-project/pyroll-core) for further information.

## Documentation

See the [documentation](https://pyroll.readthedocs.io/en/latest/basic/cli.html) to learn about basic concepts and
usage.

## License

The project is licensed under the [BSD 3-Clause license](LICENSE).