Skip to content

Reuse xnat session from xnat.connect() outside sync_xnatpy function #142

Description

@kcho

The current design of modules including lochness.xnat requires API login for each subject. This adds a short, but significant delay to the dataflow. lochness.xnat.sync_xnatpy is a good example.

session = xnat.connect(keyring['URL'],
keyring['USERNAME'],
keyring['PASSWORD'])

Is there a (simple) way to keep the connection, in this case the session variable, to be reused for other subjects instead of logging in again?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions