SAM

From DUNE
Revision as of 15:15, 13 January 2016 by BrettViren (talk | contribs) (Created page with "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 ot...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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