qcfractal.storage_socket_factory(uri, project_name='', logger=None, db_type=None, **kwargs)[source]

Factory for generating storage sockets. Spins up a given storage layer on request given common inputs.

Right now only supports MongoDB.

  • uri (string) – A URI to given database such as (“postgresql://localhost:5432”, )

  • project_name (string) – Name of the project

  • logger (logging.Logger, Optional, Default: None) – Specific logger to report to

  • db_type (string, Optional, Default: ‘sqlalchemy’) – socket type, ‘sqlalchemy’

  • **kwargs – Additional keyword arguments to pass to the storage constructor