Skip to content

NSLS2 Beamlines MetadataStore prototype implemented in MongoDB

License

Notifications You must be signed in to change notification settings

cowanml/metadatastore

 
 

Repository files navigation

Build Status Coverage Status Code Health

metadatastore

NSLS2 Beamlines metadatastore prototype implemented in MongoDB.

metadatastore configuration

Metadatastore requires the following configuration information:

database: metadatastore
port: 27017
host: 127.0.0.1
timezone: US/Eastern

where

This configuration information can live in up to four different places, as defined in the docstring of the load_configuration function in metadatastore/conf.py. In order of increasing precedence:

  1. The conda environment
  • CONDA_ENV/etc/{name}.yaml (if CONDA_ETC_env is defined)
  1. At the system level
  • /etc/{name}.yml
  1. In the user's home directory
  • ~/.config/{name}/connection.yml
  1. Environmental variables
  • {PREFIX}_{FIELD}

where

  • {name} is metadatastore
  • {PREFIX} is MDS and {FIELD} is one of {host, database, port, timezone}

About

NSLS2 Beamlines MetadataStore prototype implemented in MongoDB

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.9%
  • Shell 0.1%