BotFleet
Cloud Functions with Python
Using Python Scripts to Create and Deploy Cloud Bots
With BotFleet, you can create bots using your Python scripts and deploy them in the cloud.
Access to Data Storage
Each bot has access to a dedicated database called store
, where data can be saved and retrieved during execution.
Example Bot
Hereβs an example of a bot that fetches cryptocurrency data and saves it in store
.
Features and Functionalities
Deployment of Python Bots in the Cloud
Users can create bots using their Python scripts and deploy them in the cloud without managing a separate database, thanks to BotFleetβs built-in data storage support.
Data Storage
The store
database is a free key-value database that provides persistent and dedicated storage for each bot, allowing for efficient data storage and retrieval during execution.
Execution Flexibility
Bots can be scheduled for execution at specific times or executed manually using BotFleetβs user interface, REST API, or Python SDK.
REST API and Python SDK Integration
BotFleet offers a REST API and Python SDK, enabling users to create and execute bots programmatically.
Bot Components
Creating a bot on BotFleet involves three key components: the script, requirements, and environment variables, which can be easily input through the platformβs user interface.
User Interface
BotFleet provides a user-friendly interface for creating bots directly from the UI or via the REST API and Python SDK.
Script Execution
Users write their Python script, which must include a def main
function that serves as the entry point for bot execution.
Requirements and Environment Variables
Users can specify Python package requirements and environment variables that their script depends on, enhancing the botβs functionality and customization.
Scheduled and Manual Execution
Bots can be executed according to a schedule using cron expressions or manually through the platformβs interface or programmatically via the SDK.
Logging and Return Values
BotFleet supports logging using the print
function or the logging
module. The return value of the main
function must be JSON-serializable and can be viewed from the UI or retrieved via the REST API and Python SDK.
BotFleet simplifies the process of automating tasks using Python scripts. Users can deploy a demo bot for free to experience the platformβs capabilities.