AI-powered CLI travel planner that generates trip itineraries from your terminal.
Project description
✈️ TripGenie — AI Travel Planner (CLI)
TripGenie is an interactive AI-powered travel planner that builds complete trip itineraries from the command line.
Enter any destination in the world, get a budget breakdown, and optionally generate a detailed multi-day itinerary using OpenAI.
🚀 Features
🧭 Destination Selection
Choose between:
- Smart recommendation (TripGenie analyzes your budget + trip style)
- Manual selection (type any city or country: Tokyo, Orlando, Florida, Paris, Goa, etc.)
💰 Budget Breakdown
TripGenie automatically allocates your budget into:
- Flights
- Stay
- Food
- Activities
🤖 AI-Generated Itineraries
If enabled, TripGenie uses OpenAI to create a detailed daily schedule including:
- Morning / afternoon / evening plans
- Activity suggestions
- Sightseeing
- Food spots
- Realistic pacing
🌍 Expandable Destination Database
Includes sample destinations such as:
- San Diego
- Las Vegas
- Hawaii
- Costa Rica
Each destination supports:
- Cost estimation
- Trip vibes (chill, adventure, party, family, romantic)
- Activity suggestions
You can add unlimited destinations via data/destinations.json.
📦 Installation
Clone the repository:
git clone https://github.com/anuhhhhhh/tripgenie.git
cd tripgenie
Create and activate your virtual environment:
python3 -m venv .venv
source .venv/bin/activate
Install dependencies:
pip install -r requirements.txt
🔑 Environment Variables
TripGenie uses OpenAI for generating AI itineraries.
Create a .env file in the project root:
OPENAI_API_KEY=your_api_key_here
⚠️ Do NOT commit your .env file.
It is already included in .gitignore.
▶️ Running TripGenie
Start the CLI:
python -m tripgenie.cli
Follow the interactive prompts:
- Budget
- Number of days
- Trip style
- Departure city
- Auto-recommendation or manual destination
- AI itinerary (yes/no)
📁 Project Structure
tripgenie/
├── tripgenie/
│ ├── cli.py # Main CLI logic
│ ├── ai.py # OpenAI itinerary generator
│ └── __init__.py
├── data/
│ └── destinations.json
├── .env.example
├── .gitignore
├── requirements.txt
└── README.md
🛠 Future Enhancements
- Streamlit UI
- Export itineraries to Markdown/PDF
- Larger destination database (+ continent packs)
- Advanced scoring system for recommendations
- “Surprise me” random destination mode
- Packing lists
- Local weather integration
- Flight cost API integration
- Publish as pip install tripgenie
👤 Author
Created by Anush Harish Built with Python, Typer, and OpenAI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tripgenie-0.1.0.tar.gz.
File metadata
- Download URL: tripgenie-0.1.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61238639e8a68cba15f3d97bd864832413c978d25558b327cc61db0c383176c5
|
|
| MD5 |
a75e2c1995ab9da492f4966350161d69
|
|
| BLAKE2b-256 |
6954b904d780440e1756d10a35390926c07bd27a01ff43b6b20e7b766228b501
|
File details
Details for the file tripgenie-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tripgenie-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14223c7763419e410b3c3f109f176323a7b4b75617b1a0e2e226f4cdbf380251
|
|
| MD5 |
709b6efe7b6a1b001894b1dd238ebc1a
|
|
| BLAKE2b-256 |
c9cb2cb1a0d89b4086a9718100f18c1dae2d0db773bab4e7dc9fe1011af9d78a
|