The official Falu Python library, supporting Python 3.7+.
pip install --upgrade falu
python setup.py install
- Python 3.7+
For a comprehensive list of examples, check out the API documentation.
This library requires your workspace's secret key which is located in Falu's Dashboard.
import os
import falu
falu.api_key = os.environ.get('YOUR_FALU_SECRET_KEY', "fskt_test_...")
# list of messages
messages, error = falu.Messages.get_messages()
print(messages[0].id)
# retrieve a single message
message, error = falu.Messages.get_message(message_id='msg_2mONJ2DZEVRy6jrfP8HUhemd8PJ')
print(message.id)
import falu
# list messages
messages, error = falu.Messages.get_messages(api_key="fskt_test_...", workspace="wksp_...", live=False)
# retrieve a single message
message, error = falu.Messages.get_messages(message_id='msg_2mONJ2DZEVRy6jrfP8HUhemd8PJ', api_key="fskt_test_...",
workspace="wksp_...", live=False)
For any requests, bug or comments, please open an issue or submit a pull request.
The Library is licensed under the MIT license. Refer to the LICENSE file for more information.