help@rskworld.in +91 93305 39277
RSK World
  • Home
  • Development
    • Web Development
    • Mobile Apps
    • Software
    • Games
    • Project
  • Technologies
    • Data Science
    • AI Development
    • Cloud Development
    • Blockchain
    • Cyber Security
    • Dev Tools
    • Testing Tools
  • Blog
  • About
  • Contact

Theme Settings

Color Scheme
Display Options
Font Size
100%
Back to Project
RSK World
travel-assistant-bot
/
services
RSK World
travel-assistant-bot
Travel Assistant Bot - Python + Flask + OpenAI API + Travel Bot + Flight Search + Hotel Booking + Weather
services
  • __pycache__
  • __init__.py169 B
  • cache.py560 B
  • flight_service.py1.1 KB
  • hotel_service.py971 B
  • openai_service.py1.5 KB
  • recommendation_service.py776 B
  • weather_service.py1.4 KB
flight_service.py
services/flight_service.py
Raw Download
Find: Go to:
# RSK World - Free Programming Resources & Source Code
# Founder: Molla Samser | Designer & Tester: Rima Khatun
# Website: https://rskworld.in/contact.php | Year: 2026
from typing import List, Dict, Optional
from datetime import datetime


def search_flights(
    origin: Optional[str], destination: Optional[str], date: Optional[str]
) -> List[Dict]:
    if not origin or not destination or not date:
        return []
    try:
        _ = datetime.fromisoformat(date)
    except Exception:
        pass
    # Placeholder results; replace with actual travel API integration
    return [
        {
            "airline": "Example Air",
            "flight_number": "EX123",
            "origin": origin.upper(),
            "destination": destination.upper(),
            "date": date,
            "price_usd": 249.99,
            "duration": "3h 10m",
        },
        {
            "airline": "Sample Airlines",
            "flight_number": "SA456",
            "origin": origin.upper(),
            "destination": destination.upper(),
            "date": date,
            "price_usd": 279.5,
            "duration": "3h 25m",
        },
    ]

39 lines•1.1 KB
python
🚀 Support RSK World

Subscribe to our YouTube channel for latest tutorials & updates!



Click subscribe & support our work ❤️

About RSK World

Founded by Molla Samser, with Designer & Tester Rima Khatun, RSK World is your one-stop destination for free programming resources, source code, and development tools.

Founder: Molla Samser
Designer & Tester: Rima Khatun

Development

  • Game Development
  • Web Development
  • Mobile Development
  • AI Development
  • Development Tools

Legal

  • Terms & Conditions
  • Privacy Policy
  • Disclaimer

Contact Info

Nutanhat, Mongolkote
Purba Burdwan, West Bengal
India, 713147

+91 93305 39277

hello@rskworld.in
support@rskworld.in

© 2026 RSK World. All rights reserved.

Content used for educational purposes only. View Disclaimer