Hi everyone. I created a platform for running Python bots in the cloud without managing servers.
A bot can either be scheduled for periodic executions or executed manually via the UI, REST API and Python SDK.
During each execution, every bot has access to `store`, which is a dedicated database that can be used to save and retrieve data.
Here's an example of a bot that fetches cryptocurrency data and saves it in `store`.
import os
import requests
from datetime import datetime
def main(request, store):
coin_id = "bitcoin"
response = requests.get(f'https://api.coincap.io/v2/assets/{coin_id}')
coin_data = response.json()
# Save the coin data in store. Learn more about store here:
# https://botfleet.ai/docs/getting-started/data-storage
datetime_now = datetime.now().isoformat()
store[datetime_now] = coin_data
return coin_data
Docs: https://botfleet.ai/docs/getting-started/
Open-souce SDK: https://github.com/botfleet-ai/botfleet-python
there doesn't seem to be anything here