python-openpublictransport 0.1.0__tar.gz → 0.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.
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/PKG-INFO +1 -1
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/pyproject.toml +1 -1
- python_openpublictransport-0.1.2/src/openpublictransport/__init__.py +5 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/__init__.py +9 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/python_openpublictransport.egg-info/PKG-INFO +1 -1
- python_openpublictransport-0.1.0/src/openpublictransport/__init__.py +0 -5
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/setup.cfg +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/const.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/models.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/parsers.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/avv.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/base.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/beg.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/bsvg.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/bvg.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/db.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/ding.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/efa_base.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/fptf_base.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/gtfsde.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/hvv.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/kvv.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/mvv.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/nta.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/nvbw.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/nwl.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/oebb.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/otp.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/otp_base.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/otp_custom.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/rmv.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/rvv.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/sbb.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/trafiklab.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/transitous.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/trias_base.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/vagfr.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/vbn.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/vgn.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/vrn.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/vrr.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/vvo.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/openpublictransport/providers/vvs.py +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/python_openpublictransport.egg-info/SOURCES.txt +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/python_openpublictransport.egg-info/dependency_links.txt +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/python_openpublictransport.egg-info/requires.txt +0 -0
- {python_openpublictransport-0.1.0 → python_openpublictransport-0.1.2}/src/python_openpublictransport.egg-info/top_level.txt +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "python-openpublictransport"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.2"
|
|
8
8
|
description = "Python library for public transport APIs (EFA, OTP2, TRIAS, FPTF, HAFAS, GTFS-RT)"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { text = "MIT" }
|
|
@@ -96,6 +96,15 @@ def get_all_provider_ids() -> list[str]:
|
|
|
96
96
|
return list(_PROVIDER_REGISTRY.keys())
|
|
97
97
|
|
|
98
98
|
|
|
99
|
+
def get_provider_class(
|
|
100
|
+
provider_id: Optional[str],
|
|
101
|
+
) -> Optional[Type[BaseProvider]]:
|
|
102
|
+
"""Return the provider class without instantiating (no session needed)."""
|
|
103
|
+
if provider_id is None:
|
|
104
|
+
return None
|
|
105
|
+
return _PROVIDER_REGISTRY.get(provider_id)
|
|
106
|
+
|
|
107
|
+
|
|
99
108
|
# Register all providers
|
|
100
109
|
register_provider(PROVIDER_VRR, VRRProvider)
|
|
101
110
|
register_provider(PROVIDER_KVV, KVVProvider)
|
|
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
|