You can get at these by getting a reference to the raw python module with Get Library Instance, and then use extended variable syntax to get the values.
For example, consider a library named MyLibrary.py:
# MyLibrary.py
foo = "this is foo"
class MyClass(object):
bar = "this is bar"
You can access foo and bar by using Get Library Instance to get a handle to the library:
*** Settings ***
| Library | MyLibrary.py
*** Test Cases ***
| Example of accessing variables in a library
| | ${lib}= | Get Library Instance | MyLibrary
| |
| | Should be equal as strings | ${lib.foo} | this is foo
| | Should be equal as strings | ${lib.MyClass.bar} | this is bar