apyefa 1.1.0__tar.gz → 1.1.2__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.
Potentially problematic release.
This version of apyefa might be problematic. Click here for more details.
- apyefa-1.1.2/.github/FUNDING.yml +1 -0
- apyefa-1.1.2/.github/dependabot.yml +14 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/.github/release-drafter.yml +20 -5
- {apyefa-1.1.0 → apyefa-1.1.2}/.github/workflows/python-package.yml +7 -12
- {apyefa-1.1.0 → apyefa-1.1.2}/.github/workflows/release_drafter.yml +1 -2
- {apyefa-1.1.0 → apyefa-1.1.2}/PKG-INFO +3 -2
- {apyefa-1.1.0 → apyefa-1.1.2}/apyefa/data_classes.py +4 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/apyefa.egg-info/PKG-INFO +3 -2
- {apyefa-1.1.0 → apyefa-1.1.2}/apyefa.egg-info/SOURCES.txt +2 -2
- {apyefa-1.1.0 → apyefa-1.1.2}/pyproject.toml +1 -1
- apyefa-1.1.0/.github/labeler.yml +0 -14
- apyefa-1.1.0/.github/workflows/labeler.yml +0 -13
- {apyefa-1.1.0 → apyefa-1.1.2}/.gitignore +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/.vscode/settings.json +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/LICENSE +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/README.md +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/apyefa/__init__.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/apyefa/client.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/apyefa/commands/__init__.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/apyefa/commands/command.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/apyefa/commands/command_add_info.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/apyefa/commands/command_coord.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/apyefa/commands/command_departures.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/apyefa/commands/command_geoobject.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/apyefa/commands/command_line_list.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/apyefa/commands/command_line_stop.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/apyefa/commands/command_serving_lines.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/apyefa/commands/command_stop_finder.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/apyefa/commands/command_stop_list.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/apyefa/commands/command_system_info.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/apyefa/commands/command_trip.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/apyefa/commands/parsers/__init__.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/apyefa/commands/parsers/parser.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/apyefa/commands/parsers/rapid_json_parser.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/apyefa/commands/parsers/xml_parser.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/apyefa/exceptions.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/apyefa/helpers.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/apyefa.egg-info/dependency_links.txt +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/apyefa.egg-info/requires.txt +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/apyefa.egg-info/top_level.txt +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/examples.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/setup.cfg +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/tests/conftest.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/tests/integration/test_endpoints.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/tests/unit/commands/__init__.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/tests/unit/commands/parsers/__init__.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/tests/unit/commands/parsers/test_json_parser.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/tests/unit/commands/parsers/test_xml_parser.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/tests/unit/commands/test_cmd.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/tests/unit/commands/test_cmd_departures.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/tests/unit/commands/test_cmd_line_list.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/tests/unit/commands/test_cmd_line_stop.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/tests/unit/commands/test_cmd_serving_lines.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/tests/unit/commands/test_cmd_stop_finder.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/tests/unit/commands/test_cmd_stop_list.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/tests/unit/commands/test_cmd_system_info.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/tests/unit/data_classes/__init__.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/tests/unit/data_classes/test_departure.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/tests/unit/data_classes/test_location.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/tests/unit/data_classes/test_system_info.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/tests/unit/data_classes/test_transportation.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/tests/unit/test_client.py +0 -0
- {apyefa-1.1.0 → apyefa-1.1.2}/tests/unit/test_helpers.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ko_fi: alexjungnbg
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
- package-ecosystem: github-actions
|
|
4
|
+
directory: "/"
|
|
5
|
+
schedule:
|
|
6
|
+
interval: daily
|
|
7
|
+
- package-ecosystem: pip
|
|
8
|
+
directory: "/.github/workflows"
|
|
9
|
+
schedule:
|
|
10
|
+
interval: daily
|
|
11
|
+
- package-ecosystem: pip
|
|
12
|
+
directory: "/"
|
|
13
|
+
schedule:
|
|
14
|
+
interval: daily
|
|
@@ -1,20 +1,35 @@
|
|
|
1
|
+
name-template: 'v$RESOLVED_VERSION'
|
|
2
|
+
tag-template: 'v$RESOLVED_VERSION'
|
|
1
3
|
categories:
|
|
2
4
|
- title: ":boom: Breaking Changes"
|
|
3
5
|
label: "breaking"
|
|
4
6
|
- title: ":rocket: Features"
|
|
5
|
-
|
|
7
|
+
labels:
|
|
8
|
+
- "enhancement"
|
|
9
|
+
- "feature"
|
|
10
|
+
- "features"
|
|
6
11
|
- title: ":fire: Removals and Deprecations"
|
|
7
12
|
label: "removal"
|
|
8
13
|
- title: ":beetle: Fixes"
|
|
9
|
-
|
|
14
|
+
labels:
|
|
15
|
+
- "bug"
|
|
16
|
+
- "fix"
|
|
17
|
+
- "bugfix"
|
|
10
18
|
- title: ":racehorse: Performance"
|
|
11
19
|
label: "performance"
|
|
12
20
|
- title: ":rotating_light: Testing"
|
|
13
|
-
|
|
21
|
+
labels:
|
|
22
|
+
- "testing"
|
|
23
|
+
- "test"
|
|
14
24
|
- title: ":construction_worker: Continuous Integration"
|
|
15
|
-
|
|
25
|
+
labels:
|
|
26
|
+
- "ci"
|
|
27
|
+
- "ci/cd"
|
|
16
28
|
- title: ":books: Documentation"
|
|
17
|
-
|
|
29
|
+
labels:
|
|
30
|
+
- "documentation"
|
|
31
|
+
- "doc"
|
|
32
|
+
- "docs"
|
|
18
33
|
- title: ":hammer: Refactoring"
|
|
19
34
|
label: "refactoring"
|
|
20
35
|
- title: ":lipstick: Style"
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
|
|
3
|
-
|
|
4
|
-
name: Python package
|
|
1
|
+
name: Lint and Test
|
|
5
2
|
|
|
6
3
|
on:
|
|
7
|
-
push
|
|
8
|
-
|
|
9
|
-
pull_request:
|
|
10
|
-
branches: [ "master" ]
|
|
4
|
+
- push
|
|
5
|
+
- pull_request
|
|
11
6
|
|
|
12
7
|
permissions:
|
|
13
8
|
checks: write
|
|
@@ -23,9 +18,9 @@ jobs:
|
|
|
23
18
|
python-version: ["3.11", "3.12", "3.13"]
|
|
24
19
|
|
|
25
20
|
steps:
|
|
26
|
-
- uses: actions/checkout@
|
|
21
|
+
- uses: actions/checkout@v5
|
|
27
22
|
- name: Set up Python ${{ matrix.python-version }}
|
|
28
|
-
uses: actions/setup-python@
|
|
23
|
+
uses: actions/setup-python@v6
|
|
29
24
|
with:
|
|
30
25
|
python-version: ${{ matrix.python-version }}
|
|
31
26
|
- name: Display Python version
|
|
@@ -37,9 +32,9 @@ jobs:
|
|
|
37
32
|
- name: Install the code linting and formatting tool Ruff
|
|
38
33
|
run: pipx install ruff
|
|
39
34
|
- name: Lint code with Ruff
|
|
40
|
-
run: ruff check --output-format=github
|
|
35
|
+
run: ruff check --output-format=github
|
|
41
36
|
- name: Check code formatting with Ruff
|
|
42
|
-
run: ruff format --diff
|
|
37
|
+
run: ruff format --diff
|
|
43
38
|
continue-on-error: true
|
|
44
39
|
- name: Test with pytest
|
|
45
40
|
run: |
|
|
@@ -2,7 +2,6 @@ name: Draft a release note
|
|
|
2
2
|
on:
|
|
3
3
|
push:
|
|
4
4
|
branches:
|
|
5
|
-
- main
|
|
6
5
|
- master
|
|
7
6
|
jobs:
|
|
8
7
|
draft_release:
|
|
@@ -10,6 +9,6 @@ jobs:
|
|
|
10
9
|
runs-on: ubuntu-latest
|
|
11
10
|
steps:
|
|
12
11
|
- name: Run release-drafter
|
|
13
|
-
uses: release-drafter/release-drafter@v6.
|
|
12
|
+
uses: release-drafter/release-drafter@v6.1.0
|
|
14
13
|
env:
|
|
15
14
|
GITHUB_TOKEN: ${{ secrets.API_TOKEN }}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: apyefa
|
|
3
|
-
Version: 1.1.
|
|
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
|
[](https://github.com/alex-jung/apyefa/actions/workflows/python-package.yml)
|
|
@@ -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.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: apyefa
|
|
3
|
-
Version: 1.1.
|
|
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
|
[](https://github.com/alex-jung/apyefa/actions/workflows/python-package.yml)
|
|
@@ -3,9 +3,9 @@ LICENSE
|
|
|
3
3
|
README.md
|
|
4
4
|
examples.py
|
|
5
5
|
pyproject.toml
|
|
6
|
-
.github/
|
|
6
|
+
.github/FUNDING.yml
|
|
7
|
+
.github/dependabot.yml
|
|
7
8
|
.github/release-drafter.yml
|
|
8
|
-
.github/workflows/labeler.yml
|
|
9
9
|
.github/workflows/python-package.yml
|
|
10
10
|
.github/workflows/release_drafter.yml
|
|
11
11
|
.vscode/settings.json
|
apyefa-1.1.0/.github/labeler.yml
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
documentation:
|
|
2
|
-
- changed-files:
|
|
3
|
-
- any-glob-to-any-file: '**/*.md'
|
|
4
|
-
|
|
5
|
-
# Add 'feature' label to any PR where the head branch name starts with `feature` or has a `feature` section in the name
|
|
6
|
-
feature:
|
|
7
|
-
- head-branch: ['^feature', 'feature']
|
|
8
|
-
|
|
9
|
-
bugfix:
|
|
10
|
-
- head-branch: ['^bugfix', '^fix']
|
|
11
|
-
|
|
12
|
-
# Add 'release' label to any PR that is opened against the `main` branch
|
|
13
|
-
release:
|
|
14
|
-
- base-branch: 'master'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|