Skip to main content

Terminal-based TikTok video creator with AI image generation

Project description

HawkTUI

Terminal-based TikTok video creator with AI image generation.

Generate images using custom Replicate models and assemble them into 9:16 TikTok videos with FFmpeg.

Installation

pip install hawktui

Requirements

  • Python 3.11+
  • FFmpeg (for video creation)
# macOS
brew install ffmpeg

# Ubuntu/Debian
sudo apt install ffmpeg

Setup

  1. Get your API token from Replicate

  2. Create a .env file in your project directory:

REPLICATE_API_TOKEN=r8_your_token_here
  1. Configure your models in hawk/config.py

Usage

# Run the TUI
hawktui

# Or
hawk

Keyboard Shortcuts

Key Action
↑/↓ Navigate
Tab Switch panels
Enter Select/Open
Space Toggle image selection
a Select all images
v Create video
b Browse folder
d Delete selected
1/2/3 Switch projects
q Quit

How It Works

  1. Select a project - Choose from your configured Replicate models
  2. Enter a prompt - Type your image generation prompt
  3. Generate - Press Enter to generate images via Replicate
  4. Select images - Use Space to select images for your video
  5. Create video - Press v to assemble a TikTok-format video

Configuration

Edit hawk/config.py to add your own Replicate models:

PROJECTS = {
    "my-project": Project(
        name="My Project",
        slug="my-project",
        model="username/model-name",
        trigger="TOK",  # Optional trigger word
        description="Description",
    ),
}

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hawk_tui_video-1.0.0.tar.gz (36.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hawk_tui_video-1.0.0-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file hawk_tui_video-1.0.0.tar.gz.

File metadata

  • Download URL: hawk_tui_video-1.0.0.tar.gz
  • Upload date:
  • Size: 36.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for hawk_tui_video-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d06da5ef55ca7360c0f4bcafbd8a2a0b0cb9718238963dbcb9c9647ae6dd5c86
MD5 96aec36729d8350c04e29b5a9fc2309f
BLAKE2b-256 1abc54dab4a3649b89c42fa9e0548a9b726b72bf8dfd59f37f3f9a1f85b6ca57

See more details on using hashes here.

File details

Details for the file hawk_tui_video-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: hawk_tui_video-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for hawk_tui_video-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 482d4af0b7b724d1b516efff930039d8c262fe5c016ef0efa021d0e565835ce4
MD5 ef35f538b682fd9f063074528218c3f5
BLAKE2b-256 339de765d08011b300a82fa4d1877b4732e78c9297357834aa29a43a51296e56

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page