django-airports
Provides airports’ related models and data (from OurAirports) that can be used in django projects, inspired by django-cities
Authored by Basil Shubin, and some great contributors.
Installation
First install the module, preferably in a virtual environment. It can be installed from PyPI:
pip install django-airports
Requirements
You must have django-cities installed and configured, see the django-cities documentation for details and setup instructions.
Setup
First make sure the database support spatial queries, see the GeoDjango documentation for details and setup instructions.
You’ll need to add airports to INSTALLED_APPS in your projects settings.py file:
INSTALLED_APPS += [
'airports',
]
Then run ./manage.py migrate to create the required database tables.
Import data
After you have configured all settings, run
python manage.py airports
The airports manage command has options, see airports --help output.
Second run will update the DB with the latest data from the source csv file.
Contributing
If you like this module, forked it, or would like to improve it, please let us know! Pull requests are welcome too. :-)
License
django-airports is released under the MIT license.
Changes
1.0.3 (2021-12-22)
Fixed broken release.
1.0.2 (2021-12-22)
Include missing .mo files.
1.0.1 (2021-12-22)
Added ru translation.
Renamed city_name field to municipality, local field to local_code.
1.0.0 (2021-12-21)
Added Django 3+ support.
Dropped Python 2.7 support.
Dropped Django 1.10 / 1.11 support.
Metadata
Release files for django-airports 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-airports-1.0.3.tar.gz | 14.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_airports-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.6 kB
Release files / django-airports-1.0.3.tar.gz
| Download URL | django-airports-1.0.3.tar.gz |
|---|---|
| Size | 14.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a5858639b95dd877ddf4013ae1470e0247863f5702f3e93336b1de4a4b8502b
|
|
BLAKE2b-256 checksum How to use checksums |
d350f24f6c2287549d2dbd6995160a00060d6708602838e144c45eb28ef3dd24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / django_airports-1.0.3-py3-none-any.whl
| Download URL | django_airports-1.0.3-py3-none-any.whl |
|---|---|
| Size | 17.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c2dff2e1c631ba351e1090e575e27fb2a24dd688ab4db18c9b75dda9d5c52863
|
|
BLAKE2b-256 checksum How to use checksums |
99814aeb98ca681eb2d1ea9e8d7933155c2ffb732f51e9adda78934b0befaf19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Security for django-airports 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.