{ "info": { "author": "Sebastian Illing", "author_email": "s.illing@gmx.de", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "django-airports-apis\n=====\nAirport data for Django. Using different API Endpoints\n\nFeatures\n-\n1. Fetch Airport data from different API's\n2. django-modeltranslation support\n3. Basic views and serializers for django-rest-framework\n\nBasic setup\n-\nInstall django-airports-apis via [PyPI][]\n```\npip install django-airports-apis\n```\n\nAdd airports to installed apps and configure your preferred API:\n```\n# settings.py\nINSTALLED_APPS = (\n ...\n 'airports'\n ...\n)\n\nAIRPORT_API = {'openflights': ('airports.openflights.OpenFlights',{})}\n```\n\nThen run `/manage.py migrate` to sync your database. \n\nCall the management command to fetch airports from the selected API (this may take a while):\n```\n/manage.py load_airports #fetches airport data from API\n/manage.py load_airports --flush #deletes all airport records\n```\n\nProvided API Backends\n-\n[openflights.org][]\n\nOpenflights provides free English airport data. \nYou don't need to register to use this API:\n```\n# settings.py\nAIRPORT_API = {'openflights': ('airports.openflights.OpenFlights',{})}\n```\n\n[flightstats.com][]\n\nGo to [flightstats.com] and register for an account. As soon as your account is active you can use the multilingual airport data. At the moment it supports 8 different languages:\nEnglish, Simplified Chinese, Japanese, German, Spanish, French, Portuguese, and Arabic\n```\n# settings.py\nAIRPORT_API = {'flighstats': ('airports.flightstats.Flightstats',\n {'app_id' : '1234asdfc',\n 'app_key' : 'asg5j67hzergrgevwe'}),}\n```\n\nModeltranslation\n-\nThe package supports [django-modeltranslation][] out of the box. If the API supports different languages (like flightstats.com), the management command will automatically fetch the languages specified in your settings.py.\n\nRest Framework\n-\nThe package also includes some basic support for [django-rest-framework][]. To activate the views simply include the urls in your urls.py:\n```\n#urls.py\nurlpatterns = patterns('',\n ...\n url(r'api/',include('airports.urls'),),\n ...\n)\n```\n\nExample Application\n-\nPlease see the `example` application. This was used to test the developed features. It also serves as a nice quicklook into django-airport-apis. \n\n[django-rest-framework]: http://www.django-rest-framework.org/\n[django-modeltranslation]: https://github.com/deschler/django-modeltranslation\n[flightstats.com]: http://www.flightstats.com\n[openflights.org]: http://openflights.org/data.html\n[PyPI]: https://pypi.python.org/pypi/murcss", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/illing2005/django-airports-apis", "keywords": null, "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "django-airports-apis", "package_url": "https://pypi.org/project/django-airports-apis/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-airports-apis/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/illing2005/django-airports-apis" }, "release_url": "https://pypi.org/project/django-airports-apis/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "Airport and data for Django. Using different API Endpoints", "version": "0.0.1" }, "last_serial": 1548971, "releases": { "0.0.1": [] }, "urls": [] }