traveltime-dev / traveltime-python-sdk

TravelTime SDK for Python programming language
https://docs.traveltime.com/
MIT License
20 stars 5 forks source link

Suggestion: Unique class names across package #63

Open MxMartin opened 1 year ago

MxMartin commented 1 year ago

Hi!

During coding I frequently run into the problem that class names are not unique, e.g. Property and Location are defined multiple times. This leads to confusion and requires aliasing the classes whenever two classes of the same name are imported into the same module.

Could you rename them and give them more meaningful names?

E.g. the Property class in traveltimepy/dto/responses/time_filter.py could be renamed to TimeFilterResultProperties (as in fact it contains multiple different properties, not just one property). Identically the Locationclass could become a TimeFilterLocationResult``.

Kind regards,