Intent Bus provides a straightforward solution for automating tasks across devices. With its SQLite-backed architecture, it offers reliable job coordination without the complexity of traditional message queues. Ideal for developers looking to streamline script execution and enhance automation without heavy infrastructure.
Intent Bus is a straightforward and effective distributed job bus designed specifically for automation enthusiasts who need a reliable solution for task execution across various scripts and devices. Unlike traditional automation tools that force a compromise between simplicity and complexity, Intent Bus provides a perfect balance. \n\nBuilt on a lightweight Flask application and utilizing SQLite for data management, it enables seamless coordination of jobs without the cumbersome overhead typically associated with full message queues like Redis or Firebase.\n\n### Key Features \n- Atomic Locking: Prevents race conditions through SQLite updates that check row counts. \n- Topic Routing: Workers can claim only the jobs that match their goals via query parameters. \n- Auto-Requeue: Ensures jobs automatically return to the queue if not fulfilled within 60 seconds, accommodating for any crashes. \n- Ephemeral Store: Provides lightweight clipboard-style state sharing through /set and /get endpoints. \n- Authentication: Secures all endpoints with an X-API-Key header, enhancing data protection.\n\n### Example Use Cases \n- Execute a scraper and receive notifications to your phone upon completion. \n- Manage multiple scripts efficiently by reducing hardcoded dependencies. \n- Streamline cron job pipelines with loosely coupled workers for greater flexibility. \n- Perform cross-device automation without relying on heavier solutions like Firebase. \n\n### Integration and Workflow \nUsers can easily integrate their scripts by posting intents to the Intent Bus using a simple POST request. For example:
curl -X POST https://dsecurity.pythonanywhere.com/intent \n -H "Content-Type: application/json" \n -H "X-API-Key: your_key_here" \n -d '{"goal":"send_notification","payload":{"message":"Hello from the cloud"}}'
``` \nOnce a job is posted, it can be claimed and executed by worker scripts that poll for tasks that match their specified goals. The entire process is designed to be intuitive and efficient, requiring minimal setup and maintenance. \n\n### Community Contributions \nFuture developments for the Intent Bus include community-generated scripts for additional functionalities such as SMS alerts, email notifications, and monitoring services. Contributions are highly encouraged, making this a collaborative tool for developers seeking to maximize automation capabilities.\n\nFor a real-world example of Intent Bus in action and further insights into its implementation, interested users can check out the full writeup on [Dev.to](https://dev.to/d_security/how-i-control-my-android-phone-from-a-cloud-server-using-100-lines-of-flask-2fl6). \n\n**Get started with Intent Bus today for enhanced job coordination and efficient automation across your devices.
No comments yet.
Sign in to be the first to comment.