{"id":26866557,"url":"https://github.com/thepushkarp/flight-agent","last_synced_at":"2025-03-31T04:55:00.729Z","repository":{"id":284466341,"uuid":"955035451","full_name":"thepushkarp/flight-agent","owner":"thepushkarp","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-26T02:52:32.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T03:27:49.305Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thepushkarp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"thepushkarp","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://www.buymeacoffee.com/thepushkarp"}},"created_at":"2025-03-26T02:20:58.000Z","updated_at":"2025-03-26T02:52:36.000Z","dependencies_parsed_at":"2025-03-26T03:27:54.637Z","dependency_job_id":null,"html_url":"https://github.com/thepushkarp/flight-agent","commit_stats":null,"previous_names":["thepushkarp/flight-agent"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thepushkarp%2Fflight-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thepushkarp%2Fflight-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thepushkarp%2Fflight-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thepushkarp%2Fflight-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thepushkarp","download_url":"https://codeload.github.com/thepushkarp/flight-agent/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246418647,"owners_count":20773935,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-31T04:55:00.078Z","updated_at":"2025-03-31T04:55:00.719Z","avatar_url":"https://github.com/thepushkarp.png","language":"Python","funding_links":["https://ko-fi.com/thepushkarp","https://www.buymeacoffee.com/thepushkarp"],"categories":[],"sub_categories":[],"readme":"# Flight Booking API\n\nA FastAPI-based flight booking API that integrates with the Amadeus Travel API to provide flight searching, pricing, booking, and management capabilities.\n\n## Setup\n\n1. Create a virtual environment:\n```bash\nuv venv .venv --python 3.12\n```\n\n2. Activate the virtual environment:\n```bash\nsource .venv/bin/activate\n```\n\n3. Install dependencies:\n```bash\nuv pip sync requirements.txt\n```\n\n4. Set up Amadeus API credentials (required):\n   - Create an account at [Amadeus for Developers](https://developers.amadeus.com/)\n   - Get API Key and API Secret\n   - Set environment variables:\n     ```bash\n     export AMADEUS_CLIENT_ID=your_api_key\n     export AMADEUS_CLIENT_SECRET=your_api_secret\n     ```\n\n5. Run the server:\n```bash\nuvicorn app.main:app --reload\n```\n\nThe server will start at http://localhost:8000\n\n## API Endpoints\n\n### Flight Management\n- `GET /flights/locations/search` - Search for airports and cities\n- `GET /flights/destinations` - Get direct flight destinations from an origin\n- `GET /flights/search` - Search for available flights\n- `POST /flights/offer-price` - Get final price for a flight offer\n\n### Booking Management\n- `POST /flights/bookings` - Create a new flight booking\n- `GET /flights/bookings/{booking_id}` - Get booking details\n- `DELETE /flights/bookings/{booking_id}` - Cancel a booking\n\n## API Documentation\n\nOnce the server is running, you can access:\n- Swagger UI: http://localhost:8000/docs\n- ReDoc: http://localhost:8000/redoc\n- Detailed API documentation: See [API_DOCUMENTATION.md](API_DOCUMENTATION.md)\n\n## Technology Stack\n\n- FastAPI: Web framework\n- Amadeus Travel API: Flight data and booking management\n- UVicorn: ASGI server\n- Python 3.12+\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthepushkarp%2Fflight-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthepushkarp%2Fflight-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthepushkarp%2Fflight-agent/lists"}