ScriptsEditor is a powerful and versatile script writing and editing platform built with Python, tailored for developers, scriptwriters, and coding enthusiasts. Designed to streamline your workflow, it offers advanced script execution capabilities, seamless Git integration, and an intelligent AI assistant for enhanced productivity. Whether you're managing cron jobs, editing scripts, or generating creative assets, ScriptsEditor provides a scalable, user-friendly environment to boost efficiency and manage complex projects effortlessly. Perfect for those seeking a dynamic tool that adapts to both code and creative needs.
- Save, open, and edit scripts with an intuitive editor
- Script execution from within ScriptsEditor - Run immediately, Timeout, Entry Arguments...
- Advanced script execution with
at
,crontab
, or Windows Scheduled Tasks - Shell integration: Run custom system commands and manage tasks
- Basic Kanban application for project management
- System information display and program installation using Winget
- Git Console: Manage Git repositories from within the Git Console Window, including commits and branches (work in progress)
- AI Assistant: Multi-agent selection for local LLMs or external APIs (ChatGPT, Claude, etc.) (work in progress)
- Integration with Stable Diffusion and Stable Audio for image and audio generation (work in progress)
- Built-in calculator window (work in progress)
- Open PowerShell.
- Install Python:
winget install -e --id Python.Python.3.9
- Follow the installer instructions.
- Ensure Python is accessible:
python --version
- Open terminal.
- Install Python:
sudo apt-get update -y sudo apt-get install -y python3
- Check Python installation:
python3 --version
- Open PowerShell.
- Install Git:
winget install -e --id Git.Git
- Verify Git installation:
git --version
- Open terminal.
- Install Git:
sudo apt-get update -y sudo apt-get install -y git
- Verify Git installation:
git --version
-
Clone the repository:
git clone https://github.com/Axlfc/ScriptsEditor
-
Navigate to the project directory:
cd ScriptsEditor
-
Create a virtual environment:
- On Windows:
python -m venv .venv
- On macOS and Linux:
python3 -m venv .venv
- On Windows:
-
Activate the virtual environment:
- On Windows:
.\.venv\Scripts\activate
- On macOS and Linux:
source .venv/bin/activate
- On Windows:
-
Install the required packages:
-
On Windows:
.\venv\Scripts\pip install -r requirements.txt .\venv\Scripts\pip install -r src/models/requirements.txt .\venv\Scripts\pip install torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html
-
On macOS and Linux:
venv/bin/pip install -r requirements.txt venv/bin/pip install -r src/models/requirements.txt venv/bin/pip install torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html
-
-
Install models:
To use the stable-audio-open-1.0
model for audio generation in ScriptsEditor, follow these steps:
-
Create a Hugging Face Account:
- If you haven't already, create an account on Hugging Face. You can sign up here.
-
Request Access to the Model:
- Visit the stable-audio-open-1.0 model page.
- Click on the "Request Access" button to request access to the model. This step may require accepting terms and conditions specific to the model's license.
-
Generate an API Token:
- After your access request is approved, go to your Hugging Face profile settings.
- Navigate to the API Tokens section and generate a new token. This token will be used to authenticate your access to the model from ScriptsEditor.
-
Use the API Token in ScriptsEditor:
- Once you have your API token, you can use it in your ScriptsEditor setup to authenticate requests to the Hugging Face model.
- Ensure that your token is securely stored and used according to best practices.
- Get to download the model files
- Create a new folder in this repository in
src/models
namedmodel
mkdir src/models/model
- Create a new folder in this repository in
src/models/model
namedtext
mkdir src/models/model/text
- Put the .gguf file in src/models/model/text directory.
- Save Stable Diffusion model in src/models/model/image
- Save Stable Audio model in src/models/model/audio
We finished setting up ScriptsEditor.
Before running ScriptsEditor, you need to set up the AI assistant server. Follow these steps:
-
Place a valid
.gguf
file into the foldersrc/models/model
. In this example, the file used isllama-2-7b-chat.Q4_K_M.gguf
. -
Start the AI assistant server using the following command:
.\.venv\Scripts\python.exe -m llama_cpp.server --port 8004 --model .\src\models\model\llama-2-7b-chat.Q4_K_M.gguf
After setting up and starting the AI assistant server, you can run ScriptsEditor by executing the main.py
script.
- On Windows:
.\.venv\Scripts\python main.py
- On macOS and Linux:
.venv/bin/python main.py
We welcome contributions! If you'd like to contribute to ScriptsEditor, please check our contribution guidelines.
ScriptsEditor is open-source and licensed under the GPL-2.0.
- [] Implement whisper.cpp to be able to talk to ScriptsEditor
- [] Implement TTS (Accessibility)