Skip to content

LuluBeatson/utils

Repository files navigation

Utils

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

Requirements

  • Python 3.11 or higher
  • OpenAI API key for DALL-E and summarization features
  • venv module (comes with Python)

Installation

  1. Clone the repository:
git clone git@github.com:LuluBeatson/utils.git
cd utils
  1. 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.

  1. Install dependencies:
pip install -r requirements.txt
  1. Set up environment variables:
cp template.env .env

Then edit .env and add your OpenAI API key.

  1. Install the package in development mode:
pip install -e .

Available Commands

Image Utilities

  • image grid: Create a grid from multiple images
    image grid --columns 2 --border-size 1 path/to/images/

YouTube Utilities

  • youtube transcribe: Get video transcript
    youtube transcribe https://youtu.be/video_id
  • youtube summarize: Get video summary
    youtube summarize https://youtu.be/video_id

Text Summarization

  • summary: Summarize text content
    summary "text to summarize"
    summary --objective "key points" "text to summarize"

DALL-E Image Generation

  • dalle: Generate images using DALL-E
    dalle --prompt "your prompt here"
    dalle --prompt "your prompt" --size 1024 --quality hd

Text-to-Speech

  • tts: Convert text to speech
    tts "text to convert"

Development

Run tests:

pytest

License

Personal use only. All rights reserved.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published