Admin Tools¶
Administration utilities for managing a neuprint server. Using these tools requires admin privileges on the neuPrintHttp server.
- class neuprint.admin.Transaction(dataset, *, client=None)[source]¶
For admins only. Used to batch a set of operations into a single database transaction.
This class is implemented as a context manager.
Example
with Transaction('hemibrain') as t: t.query("MATCH (n :Neuron {bodyId: 1047426385}) SET m.type=TuBu4)")
Transaction constructor.
- Parameters
dataset – Name of the dataset to use. Required.
client – Client object to use.