install_local - Drazzilb08/daps GitHub Wiki

Local Installation

Clone Repository

If you've already clone the repo to your local system you can skip this step. If not, you can clone the repo by running the following command in your terminal:

cd /path/to/your/scripts/folder
git clone https://github.com/Drazzilb08/daps.git

For optimal setup it would be best to create a virtual environment for the scripts to run in. This will help to keep the dependencies for the scripts separate from the rest of your system. To create a virtual environment run the following command in your terminal:

cd /path/to/your/scripts/folder/daps
python3 -m venv .venv

Next you'll need to install the requirements

cd /path/to/your/scripts/folder/daps/
source .venv/bin/activate
cd /path/to/your/scripts/folder/daps/
pip install -r requirements.txt

Usage

Note: Scripts can be ran individually using main.py <script_name> if ran just as main.py the internal scheduler will take effect. This is recommended if the script will be ran in the background.

To run any of the scripts you'll need to activate the virtual environment you created earlier. To do this run the following command in your terminal:

cd /path/to/your/scripts/folder/daps
source .venv/bin/activate
python3 /path/to/your/scripts/folder/daps/main.py <optional_script_name>

Example:

cd /path/to/your/scripts/folder/daps
source .venv/bin/activate
python3 /path/to/your/scripts/folder/daps/main.py poster_renamerr

To deactivate the virtual environment

deactivate

Updating

To update the scripts to the latest version run the following command in your terminal:

cd /path/to/your/scripts/folder/daps
git pull

Local Installation

Clone Repository

If you've already cloned the repo to your local system, you can skip this step. If not, you can clone the repo by running the following command in your terminal:

cd /path/to/your/scripts/folder
git clone https://github.com/Drazzilb08/daps.git

Setup Virtual Environment (Recommended)

For optimal setup, it is recommended to create a virtual environment for the scripts. This helps keep dependencies isolated from the rest of your system.

cd /path/to/your/scripts/folder/daps
python3 -m venv .venv

Install Requirements

Activate the virtual environment and install dependencies:

cd /path/to/your/scripts/folder/daps
source .venv/bin/activate
pip install -r requirements.txt

Usage

Scripts can be run individually using main.py <script_name>.
If run as main.py with no arguments, the internal scheduler will take effect. This is recommended for background execution.

To run the app:

cd /path/to/your/scripts/folder/daps
source .venv/bin/activate
python3 main.py <optional_script_name>

Example:

python3 main.py poster_renamerr

To deactivate the virtual environment:

deactivate

Web UI

A new web-based interface is available at:

http://localhost:8000

This provides a user-friendly interface to run and manage DAPS tasks. The UI is available automatically when running main.py, and will stay live as long as the script is running.

Customizing Host and Port

By default, the UI runs on localhost (127.0.0.1) and port 8000. You can change these with environment variables:

HOST=0.0.0.0 PORT=8080 python3 main.py

This will make the UI accessible externally on port 8080.

Updating

To pull the latest version of the scripts:

cd /path/to/your/scripts/folder/daps
git pull
⚠️ **GitHub.com Fallback** ⚠️