PyBridge - Bridge to the other side, is a Python-based Event-Driven Script PyBridge (ESB) designed to facilitate the execution of scripts based on various triggers such as timers, schedules, or API calls. This project, based on Flask, is currently a work in progress.
- API Triggers: Trigger script execution through API calls
- Tokens: Control execution rights
Ensure you have the following installed on your machine:
- Python 3.x
- Install the required dependencies with the method listed below
- Clone the repository
git clone https://github.com/thatsleepyman/PyBridge.git
- Navigate to the project directory
cd PyBridge
- Install the required dependencies in 'PyBridge/.venv'
pip install -r requirements.txt
- MASTER_TOKEN: Acts like a license key, granting the requestor the right to send requests to PyBridge
- PYROCESS_TOKEN: Allows the requestor to send data to and trigger PyRocesses
- Every PyRocess in every environment
(main/ dev/ test)
has their own separate PyRocess token
- Every PyRocess in every environment
- DEVELOPER_TOKEN: Used by 'Developers' to trigger PyRocesses through the
{ip}:{port}/PyBridge/dev/{PyRocess}
routing - USER_TOKEN: Used by 'Users' to trigger PyRocesses through the
{ip}:{port}/PyBridge/main/{PyRocess}
routing - TESTER_TOKEN: Used by 'Testers' to trigger PyRocesses through the
{ip}:{port}/PyBridge/test/{PyRocess}
routing
PyBridge assumes that there is a '.venv' directory in the root directory of the project ('PyBridge/.venv'). Please create one and install the Python modules there. If you prefer to not use a '.venv', then you'll have to slightly tweak the code.
This project is licensed under the MIT License - Feel free to use it as you wish.