Classes restructure
This commit is contained in:
parent
3a65991257
commit
c4b7197267
@ -21,9 +21,9 @@ trip = client.trip_find(origin_id=origin.id, dest_id=destination.id)
|
||||
"""
|
||||
|
||||
__name__ = "pyrmv"
|
||||
__version__ = "0.3.6"
|
||||
__version__ = "1.0.0"
|
||||
__license__ = "MIT License"
|
||||
__author__ = "Profitroll"
|
||||
|
||||
from . import classes, const, enums, errors, raw, utility
|
||||
from .classes.Client import Client
|
||||
from .classes.client import Client
|
||||
|
9
src/pyrmv/classes/__init__.py
Normal file
9
src/pyrmv/classes/__init__.py
Normal file
@ -0,0 +1,9 @@
|
||||
from .board import BoardArrival, BoardDeparture, LineArrival, LineDeparture
|
||||
from .client import Client
|
||||
from .gis import Gis
|
||||
from .journey import Journey
|
||||
from .leg import Leg
|
||||
from .message import Channel, Message, Url
|
||||
from .stop import Stop, StopTrip
|
||||
from .ticket import Ticket
|
||||
from .trip import Trip
|
@ -1,7 +1,7 @@
|
||||
from datetime import datetime
|
||||
from typing import Any, Mapping
|
||||
|
||||
from pyrmv.classes.Message import Message
|
||||
from pyrmv.classes.message import Message
|
||||
|
||||
|
||||
class LineArrival:
|
@ -1,7 +1,7 @@
|
||||
from typing import Any, Mapping
|
||||
|
||||
from pyrmv.classes.Message import Message
|
||||
from pyrmv.classes.Stop import Stop
|
||||
from pyrmv.classes.message import Message
|
||||
from pyrmv.classes.stop import Stop
|
||||
|
||||
|
||||
class Journey:
|
@ -2,9 +2,9 @@ from typing import Any, Mapping
|
||||
|
||||
from isodate import parse_duration
|
||||
|
||||
from pyrmv.classes.Gis import Gis
|
||||
from pyrmv.classes.Message import Message
|
||||
from pyrmv.classes.Stop import StopTrip
|
||||
from pyrmv.classes.gis import Gis
|
||||
from pyrmv.classes.message import Message
|
||||
from pyrmv.classes.stop import StopTrip
|
||||
|
||||
|
||||
class Leg:
|
@ -3,7 +3,7 @@ from typing import Any, Mapping
|
||||
|
||||
from isodate import parse_duration
|
||||
|
||||
from pyrmv.classes.Stop import Stop
|
||||
from pyrmv.classes.stop import Stop
|
||||
|
||||
|
||||
class Url:
|
@ -1,7 +1,7 @@
|
||||
from isodate import parse_duration
|
||||
|
||||
from pyrmv.classes.Leg import Leg
|
||||
from pyrmv.classes.Stop import StopTrip
|
||||
from pyrmv.classes.leg import Leg
|
||||
from pyrmv.classes.stop import StopTrip
|
||||
|
||||
|
||||
class Trip:
|
@ -1,9 +0,0 @@
|
||||
from .Board import BoardArrival, BoardDeparture, LineArrival, LineDeparture
|
||||
from .Client import Client
|
||||
from .Gis import Gis
|
||||
from .Journey import Journey
|
||||
from .Leg import Leg
|
||||
from .Message import Channel, Message, Url
|
||||
from .Stop import Stop, StopTrip
|
||||
from .Ticket import Ticket
|
||||
from .Trip import Trip
|
Loading…
Reference in New Issue
Block a user