pyopensky 2.6__tar.gz → 2.7__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: pyopensky
3
- Version: 2.6
3
+ Version: 2.7
4
4
  Summary: A Python interface for OpenSky database
5
5
  Home-page: https://github.com/open-aviation/pyopensky/
6
6
  License: MIT
@@ -29,7 +29,7 @@ Description-Content-Type: text/markdown
29
29
 
30
30
  The `pyopensky` Python library provides functions to download data from the OpenSky Network live API and historical databases. It aims at making ADS-B and Mode S data from OpenSky easily accessible in the Python programming environment.
31
31
 
32
- Full documentation on [https://open-aviation.github.io/pyopensky](https://open-aviation.github.io/pyopensky)
32
+ Full documentation on <https://open-aviation.github.io/pyopensky>
33
33
 
34
34
  ## Installation
35
35
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyopensky"
3
- version = "2.6"
3
+ version = "2.7"
4
4
  description = "A Python interface for OpenSky database"
5
5
  repository = "https://github.com/open-aviation/pyopensky/"
6
6
  authors = ["Xavier Olive <git@xoolive.org>", "Junzi Sun <j.sun-1@tudelft.nl>"]
@@ -2,7 +2,7 @@
2
2
 
3
3
  The `pyopensky` Python library provides functions to download data from the OpenSky Network live API and historical databases. It aims at making ADS-B and Mode S data from OpenSky easily accessible in the Python programming environment.
4
4
 
5
- Full documentation on [https://open-aviation.github.io/pyopensky](https://open-aviation.github.io/pyopensky)
5
+ Full documentation on <https://open-aviation.github.io/pyopensky>
6
6
 
7
7
  ## Installation
8
8
 
@@ -98,6 +98,7 @@ class Resolution(TypedDict, total=False):
98
98
  NAME_RESOLUTION: dict[str, Resolution] = {
99
99
  # Cache configuration
100
100
  "cache_dir": dict(
101
+ environment_variable="OPENSKY_CACHE",
101
102
  opensky_category="cache",
102
103
  opensky_name="path",
103
104
  traffic_category="cache",
@@ -297,7 +297,7 @@ class Trino(OpenSkyDBAPI):
297
297
  else start_ts + pd.Timedelta("1d")
298
298
  )
299
299
 
300
- stmt = select(Table).with_only_columns( # type: ignore
300
+ stmt = select(Table).with_only_columns(
301
301
  Table.icao24,
302
302
  Table.firstseen,
303
303
  Table.estdepartureairport,
@@ -308,21 +308,17 @@ class Trino(OpenSkyDBAPI):
308
308
  *(extra_columns if extra_columns is not None else []),
309
309
  )
310
310
 
311
- stmt = self.stmt_where_str(stmt, icao24, Table.icao24) # type: ignore
312
- stmt = self.stmt_where_str(
313
- stmt,
314
- callsign,
315
- Table.callsign, # type: ignore
316
- )
311
+ stmt = self.stmt_where_str(stmt, icao24, Table.icao24)
312
+ stmt = self.stmt_where_str(stmt, callsign, Table.callsign)
317
313
  stmt = self.stmt_where_str(
318
314
  stmt,
319
315
  departure_airport,
320
- Table.estdepartureairport, # type: ignore
316
+ Table.estdepartureairport,
321
317
  )
322
318
  stmt = self.stmt_where_str(
323
319
  stmt,
324
320
  arrival_airport,
325
- Table.estarrivalairport, # type: ignore
321
+ Table.estarrivalairport,
326
322
  )
327
323
  if airport is not None and arrival_airport is not None:
328
324
  raise RuntimeError("airport may not be set if arrival_airport is")
@@ -331,8 +327,8 @@ class Trino(OpenSkyDBAPI):
331
327
  stmt = self.stmt_where_str(
332
328
  stmt,
333
329
  airport,
334
- Table.estdepartureairport, # type: ignore
335
- Table.estarrivalairport, # type: ignore
330
+ Table.estdepartureairport,
331
+ Table.estarrivalairport,
336
332
  )
337
333
 
338
334
  if departure_airport is not None:
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes