{"id":37395599,"url":"https://github.com/amadeus4dev-examples/amadeus-smart-flight-search-django","last_synced_at":"2026-01-16T05:36:52.258Z","repository":{"id":40485123,"uuid":"221748593","full_name":"amadeus4dev-examples/amadeus-smart-flight-search-django","owner":"amadeus4dev-examples","description":"Python/Django application comparing the Amadeus Self-Service Flight Offers Search with the Flight Choice Prediction APIs","archived":false,"fork":false,"pushed_at":"2024-04-22T09:55:41.000Z","size":58,"stargazers_count":16,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-22T11:01:43.704Z","etag":null,"topics":["amadeus","amadeus-api","demo","django","example","flight","prototype"],"latest_commit_sha":null,"homepage":"https://amadeus4dev-smart-flightsearch.herokuapp.com/","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-examples.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-11-14T17:10:00.000Z","updated_at":"2024-01-30T05:36:31.000Z","dependencies_parsed_at":"2024-04-22T11:08:04.869Z","dependency_job_id":null,"html_url":"https://github.com/amadeus4dev-examples/amadeus-smart-flight-search-django","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/amadeus4dev-examples/amadeus-smart-flight-search-django","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amadeus4dev-examples%2Famadeus-smart-flight-search-django","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amadeus4dev-examples%2Famadeus-smart-flight-search-django/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amadeus4dev-examples%2Famadeus-smart-flight-search-django/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amadeus4dev-examples%2Famadeus-smart-flight-search-django/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amadeus4dev-examples","download_url":"https://codeload.github.com/amadeus4dev-examples/amadeus-smart-flight-search-django/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amadeus4dev-examples%2Famadeus-smart-flight-search-django/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477368,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T03:13:13.607Z","status":"ssl_error","status_checked_at":"2026-01-16T03:11:47.863Z","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","amadeus-api","demo","django","example","flight","prototype"],"created_at":"2026-01-16T05:36:51.684Z","updated_at":"2026-01-16T05:36:52.240Z","avatar_url":"https://github.com/amadeus4dev-examples.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI Prediction APIs showcase\n\n## What is this?\n\nThis prototype shows how the Air APIs can be integrated with `Django` framework, by calling the [Flight Choice Prediction](https://developers.amadeus.com/self-service/category/air/api-doc/flight-choice-prediction) and [Trip Purpose Prediction](https://developers.amadeus.com/self-service/category/trip/api-doc/trip-purpose-prediction).\n\nWe also call the [Flight Offers Search](https://developers.amadeus.com/self-service/category/air/api-doc/flight-offers-search) as a more traditional method of flight search and we compare its results with the Flight Choice Prediction ones to show the power of AI.\n\nWe also wrote a [blog article](https://developers.amadeus.com/blog/how-ai-can-help-you-find-the-perfect-flight) as a tutorial. \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-smart-flight-search-django.git\ncd amadeus-smart-flight-search-django\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\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 amadeus_demo_api/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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famadeus4dev-examples%2Famadeus-smart-flight-search-django","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famadeus4dev-examples%2Famadeus-smart-flight-search-django","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famadeus4dev-examples%2Famadeus-smart-flight-search-django/lists"}