A TUI application for generating social media posts for Hong Kong Python User Group events.
- Interactive TUI: Built with Textual for a smooth terminal experience
- Multi-platform: Generate posts optimized for LinkedIn, Facebook, Twitter, and Instagram
- LLM-powered: Uses OpenRouter API with LangChain for intelligent content generation
- Python 3.14+
- OpenRouter API key
uv venv
source .venv/bin/activate
uv sync
cp .env.example .env
# Edit .env and add your OpenRouter API key
uv run postman - Fill in event details: Enter the event title, date, time, location, and description
- Select platform: Choose from linkedin, facebook, twitter, or instagram
- Click Generate: The AI will create a platform-optimized post
- Copy to clipboard: Use the Copy button or press
cto copy the generated post - Exit: Press
qor click Exit to close
q- Exit applicationg- Generate postc- Copy to clipboardTab- Navigate between fields
Environment variables (in .env file):
OPENROUTER_API_KEY- Your OpenRouter API key (required)OPENROUTER_MODEL- Model to use (default: gpt-3.5-turbo)POSTMAN_MIN_WIDTH- Minimum terminal width (default: 80)POSTMAN_MIN_HEIGHT- Minimum terminal height (default: 24)POSTMAN_DEBUG- Enable debug mode (default: 0)
MIT License - See LICENSE file for details.
