SAM
SAM (Sequential Access via Metadata) is a system by and at Fermilab for providing a database that ties metadata to file locations, allows file set definition and query, and other features. See also Metadata.
SAM Web
SAM may be accessed via an HTTP API called SAM Web Services.
Some information resources about SAM Web
Client
Access to SAM Web is made easier through the SAM Web Client client-side Python module and command line interface tool called samweb
.
Installation
On fnal.gov machines, use UPS to set up your environment to use a centrally installed instance of the SAM Web Client "product". For all other users, it needs to be installed.
Via pip
To install into your current Python environment (eg, one created with Virtualenv) simply do:
pip install sam-web-client
In your central user area add --user
pip install --user sam-web-client
From source
git clone https://github.com/DUNE/sam-web-client.git cd sam-web-client python setup.py install
For development
git clone git@github.com:DUNE/sam-web-client.git cd sam-web-client python setup.py develop