Projects should be able to be initialized without making calls out to the REDCap API.
There are situations where I'd like to make programmatic calls to a project ad-hoc but not have to pull metadata for the project on every initialization. A proposed solution would be to provide an additional keyword argument on the Project object lazy which would default to False (to preserve current behavior). Setting lazy to True would result in the Project being initialized without the metadata being pulled. Users can still export/import records and metadata, it would just be done on demand.
Pull request to follow.
Projects should be able to be initialized without making calls out to the REDCap API.
There are situations where I'd like to make programmatic calls to a project ad-hoc but not have to pull metadata for the project on every initialization. A proposed solution would be to provide an additional keyword argument on the
Projectobjectlazywhich would default toFalse(to preserve current behavior). SettinglazytoTruewould result in the Project being initialized without the metadata being pulled. Users can still export/import records and metadata, it would just be done on demand.Pull request to follow.