Пример кода выглядит следующим образом:
Код: Выделить всё
from pybis import Openbis
# Set up the connection to openBIS
openbis = Openbis('https://....openbis...', verify_certificates=True)
# Login to openBIS
openbis.login('username', 'password')
# Get the current user -> this does not work
current_user = openbis.get_current_user()
# Print the current user
print(current_user)
openbis.logout()
(OpenBIS: электронный лабораторный журнал, PyBIS: модуль Python для интерфейса OpenBIS)< /п>
Подробнее здесь: https://stackoverflow.com/questions/791 ... -via-pybis
Мобильная версия