A collection of command-line utilities for various tasks including:
- Image manipulation and grid creation
- YouTube video transcription and summarization
- Text summarization using LangChain
- DALL-E image generation
- Text-to-speech conversion
- Python 3.11 or higher
- OpenAI API key for DALL-E and summarization features
venv
module (comes with Python)
- Clone the repository:
git clone git@github.com:LuluBeatson/utils.git
cd utils
- Create and activate a project-specific virtual environment:
python -m venv .venv
source .venv/bin/activate # On Unix/macOS
# or .venv\Scripts\activate
The virtual environment isolates the project's dependencies from your system Python installation.
- Install dependencies:
pip install -r requirements.txt
- Set up environment variables:
cp template.env .env
Then edit .env
and add your OpenAI API key.
- Install the package in development mode:
pip install -e .
image grid
: Create a grid from multiple imagesimage grid --columns 2 --border-size 1 path/to/images/
youtube transcribe
: Get video transcriptyoutube transcribe https://youtu.be/video_id
youtube summarize
: Get video summaryyoutube summarize https://youtu.be/video_id
summary
: Summarize text contentsummary "text to summarize" summary --objective "key points" "text to summarize"
dalle
: Generate images using DALL-Edalle --prompt "your prompt here" dalle --prompt "your prompt" --size 1024 --quality hd
tts
: Convert text to speechtts "text to convert"
Run tests:
pytest
Personal use only. All rights reserved.