sipa/model/pycroft/api.py
PycroftApi
has 23 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class PycroftApi:
def __init__(self, endpoint: str, api_key: str):
if not endpoint.endswith("/"):
raise InvalidConfiguration("API endpoint must end with a '/'")
self._endpoint = endpoint
Function member_request
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def member_request(self, email: str, login: str, password: str,
Function change_mac
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def change_mac(self, user_id, password, interface_id, new_mac, host_name):
Function match_person
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def match_person(self, first_name: str, last_name: str, birthdate: date, tenant_number: int,
Function activate_network_access
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def activate_network_access(self, user_id, password, mac, birthdate, host_name):