https://github.com/782e616c6d/batchy
This project allows scripts to be executed remotely via a web interface.
https://github.com/782e616c6d/batchy
automation flask html javascript python script web
Last synced: 7 months ago
JSON representation
This project allows scripts to be executed remotely via a web interface.
- Host: GitHub
- URL: https://github.com/782e616c6d/batchy
- Owner: 782e616c6d
- License: gpl-3.0
- Created: 2024-09-13T01:57:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-13T11:05:09.000Z (over 1 year ago)
- Last Synced: 2025-04-05T12:42:51.788Z (10 months ago)
- Topics: automation, flask, html, javascript, python, script, web
- Language: Python
- Homepage:
- Size: 36.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This project allows scripts to be executed remotely via a web interface.
### Technologies Used
* Flask (Python): Web framework for server development.
* HTML: Web page structure.
* JavaScript: Interactive client functionality.
### How it works
1. The user accesses the web page.
2. By clicking on one of the “Run Script” buttons, the path of the corresponding script is sent to the server.
3. The Flask server receives the request and executes the script provided.
4. The result of the execution (success or error) is sent back to the web page.
5. The result message is displayed to the user.
### Requirements
* Python 3.x
* Flask
### Installation
1. Clone this repository.
2. Install the dependencies:
```bash
pip install flask
```
### Running the Project
1. Navigate to the project folder.
2. Run the following command:
```bash
python app.py
```
3. Access `http://127.0.0.1:5000/` in your web browser.
### Usage
* Change the paths of the scripts defined in the `bottom1`, `bottom2`, and `bottom3` variables in the `script.js` file.
* Click on one of the “Run Script” buttons to execute the corresponding script.
### Security Considerations
* Running arbitrary scripts on the server can be a security risk. Make sure you limit the scripts that can be run and implement appropriate authentication and authorization mechanisms.
* Scripts must be located in a secure directory and accessible only by the application.