- The models
dataacquisitionprocedureandadmingroup: BrainSTEM no longer serves them, so loading them now raises "Unknown model" instead of requesting a route that returns 404.
- Documentation describes exports as format 2.x; www.brainstem.org writes 2.2, in which recordings link to biology through experimental interfaces only. The client reads any 2.x export unchanged.
Server requirements: BrainSTEM with the specimen-1 data model, the project/session export API
(format 2.1) and the public agent reference (/reference/, format 1.x).
export_project()andexport_session(): download a project or session export (format 2.1), directly or as a background job (background=True) that the client polls and downloads. Problems raiseExportError.agent_reference(page)and thebrainstem reference <page>command: read the server's public agent reference without a token.BrainstemClient(anonymous=True): read public data without logging in.- Routes for the specimen data model (
specimenset,specimen,specimenprocedure,specimenproceduretemplate,specimenlog), interfaces, materials, episodes, coordinates and anatomical references;brainregionremains as a deprecated alias ofanatomicalregion. limit/offsetand--per-page/--pagepaging,load_all=Truemerging of sideloaded lists.
- The
tagsfilter ofload_project,load_subject,load_session,load_collectionandload_cohortfilters by tag name (filter{tags.name}), which the server now supports; tag ids were never returned by the API. - Device-flow errors returned by the server with a non-2xx status (
invalid_device_code,token_error) raiseAuthenticationErrorinstead ofrequests.HTTPError.
- Browser-based device authorization with 2FA; token cached at
~/.config/brainstem/token. brainstemcommand-line interface (login,logout,load,save,delete).