open_session(username=None,
password=None,
engine=None,
dbpath=None,
database=None,
reuse=True)
| source code
|
Provides a Session object.
Attempts to return a Session, based either on existing Synergy
sessions or by creating a new one.
If a .netrc file can be found on the user's personal drive,
that will be read to obtain Synergy login information if it
is defined there. This will be used to fill in any missing
parameters not passed in the call to open_session().
The format of the .netrc file entries should be:
machine synergy login USERNAME password foobar account DATABASE_PATH@SERVER
If the details refer to a specific database, the machine can be the database name,
instead of "synergy".
If an existing session is running that matches the supplied
parameters, it will reuse that.
|