product const added

This commit is contained in:
Profitroll 2022-09-27 15:12:15 +02:00
parent c7b0649b50
commit cf642fc00f
4 changed files with 22 additions and 0 deletions

View File

@ -29,4 +29,5 @@ from . import raw
from . import errors from . import errors
from . import utility from . import utility
from . import classes from . import classes
from . import const
from .methods import * from .methods import *

0
pyrmv/const/__init__.py Normal file
View File

20
pyrmv/const/product.py Normal file
View File

@ -0,0 +1,20 @@
from typing import Dict
# Constant is taken from source of PyRMVtransport:
# https://github.com/cgtobi/PyRMVtransport/blob/development/RMVtransport/const.py
PRODUCTS: Dict[str, int] = {
"ICE": 1,
"IC": 2,
"EC": 2,
"R": 4,
"RB": 4,
"RE": 4,
"S": 8,
"U-Bahn": 16,
"Tram": 32,
"Bus": 64,
"Bus2": 128,
"Fähre": 256,
"Taxi": 512,
"Bahn": 1024,
}

View File

@ -17,6 +17,7 @@ setup(
packages=[ packages=[
"pyrmv", "pyrmv",
"pyrmv.raw", "pyrmv.raw",
"pyrmv.const",
"pyrmv.errors", "pyrmv.errors",
"pyrmv.methods", "pyrmv.methods",
"pyrmv.utility", "pyrmv.utility",