datalad_deprecated.auto.AutomagicIO

class datalad_deprecated.auto.AutomagicIO(autoget=True, activate=False, check_once=False)[source]

Class to proxy commonly used API for accessing files so they get automatically fetched

Currently supports builtin open() and h5py.File when those are read

__init__(autoget=True, activate=False, check_once=False)[source]
Parameters:
  • autoget --

  • activate --

  • check_once (bool, optional) -- To speed things up and avoid unnecessary repeated checks, if True, paths considered for proxying and corresponding repositories are remembered, and are not subject to datalad checks on subsequent calls. This option is to be used if you do not expect new git repositories to not be created and files not to get dropped while operating under AutomagicIO supervision.

Methods

__init__([autoget, activate, check_once])

param autoget:

activate()

deactivate()

Attributes

active

autoget