Code Monkey home page Code Monkey logo

gemini-flight's Introduction

Gemini Flight Manager

Overview

Gemini Flight Manager is a comprehensive backend system built using FastAPI, designed for managing and simulating flight-related operations. This system provides a robust platform for handling various aspects of flight management, including flight generation, search, and booking functionalities.

The project leverages FastAPI's efficient and easy-to-use framework to create a high-performance, scalable solution ideal for flight data management. It comes equipped with an SQLite database (flights.db) pre-populated with initial data, allowing for quick deployment and testing.

Key features of Gemini Flight Manager include:

  • Advanced search capabilities to query flights based on criteria like origin, destination, and dates.
  • Booking system that handles seat availability across different classes and calculates costs accordingly.

Designed with extensibility and scalability in mind, Gemini Flight Manager is well-suited for both educational purposes and as a foundation for more complex flight management applications.

**For the purposes of Gemini Function Calling, you will only need search_flights and book_flight functions.

Installation

Prerequisites

Before you begin, ensure you have the following installed on your system:

  • Python 3.6 or higher
  • FastAPI
  • Uvicorn, an ASGI server for FastAPI

Step-by-Step Installation Guide

  1. Clone the Repository

    Start by cloning the repository to your local machine. Use the following command:

    git clone https://github.com/your-username/your-repository.git
    cd your-repository
    

Set Up a Virtual Environment (Optional but recommended)

It's a good practice to create a virtual environment for your Python projects. This keeps your project dependencies isolated. If you have virtualenv installed, create a new environment with:

virtualenv venv
source venv/bin/activate

Install Dependencies

Inside the virtual environment, install all necessary dependencies by running:

pip install -r requirements.txt

Starting the FastAPI Server

After the installation, you can start the FastAPI server using Uvicorn. Navigate to the project directory and run:

uvicorn main:app

Accessing the API

With the server running, you can access the API at http://127.0.0.1:8000.

For interactive API documentation, visit http://127.0.0.1:8000/docs, where you can test the API endpoints directly from your browser.

gemini-flight's People

Contributors

mikhailocampo avatar mukhtaroni avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.