Scripts I use for DJ tasks / management.
Set up and activate a virtual environment
virtualenv venv
source venv/bin/activateRun install / setup scripts (install Python requirements, create required folders):
make setupCreate a new file called .env in the root of the project (or rename and edit the sample .env-sample to .env), modifying values below to match your specific paths / values):
DJ_NAME: your DJ name to add to processed files.VDJ_DB_BACKUP_DIR: Path to your VirtualDJ backup directory. On MacOS, usually/Users/{USER}/Documents/VirtualDJ/Backup, on Windows, usuallyC:\users\{USER}\VirtualDJ\Backup.
These scripts rely on having access to a Database Backup from VirtualDJ (VDJ). To get a database backup:
- In the VDJ Browser view, click the dot for more commands.
- Click Database > Create Database Backup
- This should create a timestamped database backup ZIP in your
VirtualDJ > Backupfolder.
Next, run:
make extract_vdj_dataThis will unzip and unpack the contents of your database export into {dj-scripts}/vdj-export and convert that data to JSON ({processed-files}/database.json) for easier reading by Python.
Generate a YouTube comment containing chapters and timestamps for songs in a recorded set.
make youtube_chapters "{set file}"This creates a new file in the PROCESSED_FILES_DIR called {set file}.txt.
Generate a CUE file containing chapters and timestamps for songs in a recorded set.
make cue_file "{set file}"This creates a new file in the PROCESSED_FILES_DIR called {set file}.txt.
Generate all available timesheet formats for a given set.
make timesheets "{set file name}"Outputs new files to the PROCESSED_FILES_DIR directory.
Install development requirements with:
make developFormat files(with black) by running:
make format