airportsdata 20240202__tar.gz → 20240309__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: airportsdata
3
- Version: 20240202
3
+ Version: 20240309
4
4
  Summary: Extensive database of location and timezone data for nearly every airport and landing strip in the world.
5
5
  Author-email: Mike Borsetti <mike+airportsdata@borsetti.com>
6
6
  Maintainer-email: Mike Borsetti <mike+airportsdata@borsetti.com>
@@ -53,9 +53,9 @@ License-File: LICENSE
53
53
  airportsdata |downloads|
54
54
  ========================
55
55
 
56
- .. |ICAO| replace:: 28,136
56
+ .. |ICAO| replace:: 28,140
57
57
 
58
- .. |IATA| replace:: 7,591
58
+ .. |IATA| replace:: 7,814
59
59
 
60
60
  .. |LID| replace:: 12,567
61
61
 
@@ -101,8 +101,8 @@ Each entry consists of the following data:
101
101
  * ``icao``: ICAO 4-letter Location Indicator (Doc 7910) or (if none) an internal Pseudo-ICAO Identifier [#]_ (|ICAO|
102
102
  entries);
103
103
  * ``iata``: IATA 3-letter Location Code (|IATA| entries) or an empty string [#]_;
104
- * ``name``: Official name (latin script);
105
- * ``city``: City in latin script, ideally using the local language;
104
+ * ``name``: Official name (diacritized latin script);
105
+ * ``city``: City (diacritized latin script), ideally using the local language;
106
106
  * ``subd``: Subdivision (e.g. state, province, region, etc.), ideally using the local-language or English names of
107
107
  `ISO 3166-2 <https://en.wikipedia.org/wiki/ISO_3166-2#Current_codes>`__;
108
108
  * ``country``: `ISO 3166-1 <https://en.wikipedia.org/wiki/ISO_3166-1#Current_codes>`__ alpha-2 country code
@@ -2,9 +2,9 @@
2
2
  airportsdata |downloads|
3
3
  ========================
4
4
 
5
- .. |ICAO| replace:: 28,136
5
+ .. |ICAO| replace:: 28,140
6
6
 
7
- .. |IATA| replace:: 7,591
7
+ .. |IATA| replace:: 7,814
8
8
 
9
9
  .. |LID| replace:: 12,567
10
10
 
@@ -50,8 +50,8 @@ Each entry consists of the following data:
50
50
  * ``icao``: ICAO 4-letter Location Indicator (Doc 7910) or (if none) an internal Pseudo-ICAO Identifier [#]_ (|ICAO|
51
51
  entries);
52
52
  * ``iata``: IATA 3-letter Location Code (|IATA| entries) or an empty string [#]_;
53
- * ``name``: Official name (latin script);
54
- * ``city``: City in latin script, ideally using the local language;
53
+ * ``name``: Official name (diacritized latin script);
54
+ * ``city``: City (diacritized latin script), ideally using the local language;
55
55
  * ``subd``: Subdivision (e.g. state, province, region, etc.), ideally using the local-language or English names of
56
56
  `ISO 3166-2 <https://en.wikipedia.org/wiki/ISO_3166-2#Current_codes>`__;
57
57
  * ``country``: `ISO 3166-1 <https://en.wikipedia.org/wiki/ISO_3166-1#Current_codes>`__ alpha-2 country code
@@ -11,7 +11,7 @@ from typing import Dict, Literal, TypedDict
11
11
 
12
12
  __project_name__ = __package__
13
13
  # Release numbering follows the release date
14
- __version__ = '20240202'
14
+ __version__ = '20240309'
15
15
  __min_python_version__ = (3, 9)
16
16
  __author__ = 'Mike Borsetti <mike@borsetti.com>'
17
17
  __copyright__ = 'Copyright 2020- Mike Borsetti'
@@ -47,7 +47,7 @@ def load(code_type: CodeType = 'ICAO') -> Dict[str, 'Airport']:
47
47
  :return: a dict of dicts, each entry having the following keys:
48
48
  'icao': ICAO 4-letter Location Indicator or 4-alphanumeric FAA/TC LID
49
49
  'iata': IATA 3-letter Location Code or an empty string
50
- 'name': Official name (latin script)
50
+ 'name': Official name (diacritized latin script)
51
51
  'city': City
52
52
  'subd': Subdivision (e.g. state, province, region, etc.)
53
53
  'country': ISO 3166-1 alpha 2-code (plus 'XK' for Kosovo)
@@ -100,6 +100,7 @@ def load_iata_macs() -> dict[str, IATAMAC]:
100
100
  airports = load('IATA')
101
101
  this_dir = Path(__file__).parent
102
102
  iata_macs: dict[str, IATAMAC] = {}
103
+ row_d: dict[str, str]
103
104
  with this_dir.joinpath('iata_macs.csv').open(encoding='utf8') as f:
104
105
  reader = csv.DictReader(f, quoting=csv.QUOTE_NONNUMERIC)
105
106
  for row_d in reader: