I have a project in which I have a lot of methods in a class. Currently all methods are directly in the file where the BaseProfle
Class is defined. We wanted to move them into own files to make it easier for new team members.
The following code blocks show our idea of doing it. But we aren't sure if there is a more pythonic way to do.
# __init__.py
from .request import url_formatter, request
...
class BaseProfile:
url_formatter = url_formatter
request = request
...
# request.py
def request(self: BaseProfile, body):
...