pip install https://github.com/pykpt/smapi/archive/main.zip --upgrade
С помощью логина и пароля
from smapi import Client
client = Client(login='login', password='password')
С помощью токена
from smapi import Client
client = Client(token='token')
from smapi import Client
client = Client(login='login', password='password')
print(client.token)
from smapi import Client
client = Client(авторизация)
me = client.get_me() # Получение пользователя токена