apyefa 1.1.0__py3-none-any.whl → 1.1.2__py3-none-any.whl

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.

Potentially problematic release.


This version of apyefa might be problematic. Click here for more details.

apyefa/data_classes.py CHANGED
@@ -63,6 +63,7 @@ class TransportType(IntEnum):
63
63
  RAIL_REPLACEMENT_TRANSPORT = 17 # Schienenersatzverkehr
64
64
  SHUTTLE_TRAIN = 18 # Schuttlezug
65
65
  CITIZEN_BUS = 19 # Bürgerbus
66
+ UNKNOWN_0 = 20 # TBD
66
67
  UNKNOWN = 99 # TBD
67
68
  FOOT_PATH = 100 # Fussweg
68
69
 
@@ -350,6 +351,7 @@ class Location(_Base):
350
351
  @dataclass(frozen=True)
351
352
  class Departure(_Base):
352
353
  location: Location = field(repr=False)
354
+ line_id: str
353
355
  line_name: str
354
356
  route: str
355
357
  origin: Location
@@ -380,6 +382,7 @@ class Departure(_Base):
380
382
  hints = data.get("hints")
381
383
 
382
384
  line = Line.from_dict(data.get("transportation"))
385
+ line_id = line.id
383
386
  line_name = line.name
384
387
  transport = line.product
385
388
  origin = line.origin
@@ -389,6 +392,7 @@ class Departure(_Base):
389
392
  return Departure(
390
393
  data,
391
394
  location,
395
+ line_id,
392
396
  line_name,
393
397
  route,
394
398
  origin,
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: apyefa
3
- Version: 1.1.0
3
+ Version: 1.1.2
4
4
  Summary: Python API for EFA(Elektronische Fahrplanauskunft) async requests
5
5
  Author-email: Alex Jung <jungdevelop@gmail.com>
6
6
  License: MIT License
@@ -42,6 +42,7 @@ Requires-Dist: pytest; extra == "tests"
42
42
  Requires-Dist: pytest-asyncio>=0.24.0; extra == "tests"
43
43
  Requires-Dist: pytest-benchmark[histogram]>=3.2.1; extra == "tests"
44
44
  Requires-Dist: requests>=2.32.3; extra == "tests"
45
+ Dynamic: license-file
45
46
 
46
47
  # apyefa
47
48
  [![Python package](https://github.com/alex-jung/apyefa/actions/workflows/python-package.yml/badge.svg)](https://github.com/alex-jung/apyefa/actions/workflows/python-package.yml)
@@ -1,6 +1,6 @@
1
1
  apyefa/__init__.py,sha256=9LuZCm4L02Jz-rgvSyTSQ10fzMEZ0P2nWQQ6m3Z9Ab0,386
2
2
  apyefa/client.py,sha256=CEwWuHFBTUfgGszQVXAogWUQ-JY-Ew7zMidB7oR2AD0,27228
3
- apyefa/data_classes.py,sha256=IiLdMV6Jsorp_oaZjez2EvL7PydV0xIIBedpJ9rPFQk,15108
3
+ apyefa/data_classes.py,sha256=BczVpz6DS6Ix__1yQUZChGrsyOAJ4FXz1Vq7sQsrs_Q,15198
4
4
  apyefa/exceptions.py,sha256=Vhc8FEtI1xSxbVRLFXd3BlNTekY2w3byEvd3Jhhg8h4,240
5
5
  apyefa/helpers.py,sha256=WGXQ2SwlQ5IB57_ab0ry3QAqL-iDWqtOOwP0yhQI5ck,3531
6
6
  apyefa/commands/__init__.py,sha256=h5cyzFXA6vJQgUx7LyngoXxXo11ULvVku9GFuVwvkic,848
@@ -20,8 +20,8 @@ apyefa/commands/parsers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG
20
20
  apyefa/commands/parsers/parser.py,sha256=1PSlLpfYrNeKRTpvCcYsCzAKlNrs0oHvSN7zpF4Xcs8,140
21
21
  apyefa/commands/parsers/rapid_json_parser.py,sha256=UMexRiMKkJLcK5EEj80B6RYkWBuR8ZWD3YpeGa0J3lQ,212
22
22
  apyefa/commands/parsers/xml_parser.py,sha256=ru52QtBP68KoTZ8OgjFWrLy-PD4_j1miY8Zv5umNSE8,151
23
- apyefa-1.1.0.dist-info/LICENSE,sha256=C2Gdvb1B39BeEP-RGqVd7w6j94GnJo4gnYyiC_l3SFQ,1066
24
- apyefa-1.1.0.dist-info/METADATA,sha256=lIgUJrtlAIixd8kgfq8SA4hm2naHlXFUh02kLD3qfos,6100
25
- apyefa-1.1.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
26
- apyefa-1.1.0.dist-info/top_level.txt,sha256=b9VSv2S7lxdaypCumxO92IEQFpJdFuB8vQs03j5gZxY,7
27
- apyefa-1.1.0.dist-info/RECORD,,
23
+ apyefa-1.1.2.dist-info/licenses/LICENSE,sha256=C2Gdvb1B39BeEP-RGqVd7w6j94GnJo4gnYyiC_l3SFQ,1066
24
+ apyefa-1.1.2.dist-info/METADATA,sha256=6mgUTtXwB4tPrhpbDqDmwhITtQJRycA9xGX0It8v8r0,6122
25
+ apyefa-1.1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
26
+ apyefa-1.1.2.dist-info/top_level.txt,sha256=b9VSv2S7lxdaypCumxO92IEQFpJdFuB8vQs03j5gZxY,7
27
+ apyefa-1.1.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.0)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5