{"id":37455389,"url":"https://github.com/amadeus4dev/amadeus-flight-price-analysis-django","last_synced_at":"2026-01-16T07:00:04.136Z","repository":{"id":52499380,"uuid":"308670199","full_name":"amadeus4dev/amadeus-flight-price-analysis-django","owner":"amadeus4dev","description":"Returns if the cheapest available flight is a good deal","archived":false,"fork":false,"pushed_at":"2023-05-10T12:30:28.000Z","size":181,"stargazers_count":4,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-05-10T13:36:40.052Z","etag":null,"topics":["amadeus","demo","django","example","flight","prototype","python","travel"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amadeus4dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-30T15:27:23.000Z","updated_at":"2023-05-10T13:36:40.052Z","dependencies_parsed_at":"2023-01-21T15:48:23.233Z","dependency_job_id":null,"html_url":"https://github.com/amadeus4dev/amadeus-flight-price-analysis-django","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/amadeus4dev/amadeus-flight-price-analysis-django","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amadeus4dev%2Famadeus-flight-price-analysis-django","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amadeus4dev%2Famadeus-flight-price-analysis-django/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amadeus4dev%2Famadeus-flight-price-analysis-django/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amadeus4dev%2Famadeus-flight-price-analysis-django/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amadeus4dev","download_url":"https://codeload.github.com/amadeus4dev/amadeus-flight-price-analysis-django/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amadeus4dev%2Famadeus-flight-price-analysis-django/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477989,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["amadeus","demo","django","example","flight","prototype","python","travel"],"created_at":"2026-01-16T07:00:03.969Z","updated_at":"2026-01-16T07:00:04.116Z","avatar_url":"https://github.com/amadeus4dev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flight Search and AI APIs showcase\n\n## What is this?\n\nThis prototype retrieves flight offers using the [Flight Offers Search API](https://developers.amadeus.com/self-service/category/air/api-doc/flight-offers-search) for a given itinerary. Then it displays if the cheapest available flight is a good deal based on the [Flight Price Analysis API](https://developers.amadeus.com/self-service/category/air/api-doc/flight-price-analysis). \nWe finally predict if the trip is for business or leisure using the [Trip Purpose Prediction API](https://developers.amadeus.com/self-service/category/trip/api-doc/trip-purpose-prediction).\n\n![title](pricing/flight_price/static/images/demo.png)\n\n## How to run the project via Docker (recommended)\n\nBuild the image from the Dockerfile. The following command will \n\n```sh\nmake\n```\n\nThe container receives your API key/secret from the environment variables.\nBefore running the container, make sure your have your credentials correctly\nset:\n\n```sh\nexport AMADEUS_CLIENT_ID=YOUR_API_KEY\nexport AMADEUS_CLIENT_SECRET=YOUR_API_SECRET\nexport DEBUG_VALUE=\"True\"\n```\n\nFinally, start the container from the image:\n\n```\nmake run\n```\n\nAt this point you can open a browser and go to `https://0.0.0.0:8000`.\n\nNote that it is also possible to run in detached mode so your terminal is still\nusable:\n\n```\nmake start\n```\n\nStop the container with:\n\n```\nmake stop\n```\n\n## How to run the project locally\n\nClone the repository.\n\n```sh\ngit clone https://github.com/amadeus4dev/amadeus-flight-price-analysis-django.git\ncd flight-price-analysis\n```\n\nNext create a virtual environment and install the dependencies.\n\n```sh\nvirtualenv venv\nsource venv/bin/activate\npip install -r requirements.txt\n```\n\nFor authentication add your API key/secret to your environmental variables.\n\n```sh\nexport AMADEUS_CLIENT_ID=YOUR_API_KEY\nexport AMADEUS_CLIENT_SECRET=YOUR_API_SECRET\n```\n\nYou can easily switch between `test` and `production` environments by setting:\n\n```\nexport AMADEUS_HOSTNAME=\"test\" # an empty value will also set the environment to test\n```\n\nor\n\n```\nexport AMADEUS_HOSTNAME=\"production\"\n```\n\n\u003e Each environment has different API keys. Do not forget to update them!\n\nFinally, run the Django server.\n\n```sh\npython pricing/manage.py runserver\n```\n\nFinally, open a browser and go to `http://127.0.0.1:8000/`\n\n## License\n\nThis library is released under the [MIT License](LICENSE).\n\n## Help\n\nYou can find us on [StackOverflow](https://stackoverflow.com/questions/tagged/amadeus) or join our developer community on\n[Discord](https://discord.gg/cVrFBqx).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famadeus4dev%2Famadeus-flight-price-analysis-django","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famadeus4dev%2Famadeus-flight-price-analysis-django","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famadeus4dev%2Famadeus-flight-price-analysis-django/lists"}