This web server returns objects from ROOT files in json format
$> virtualenv venv
$> source venv/bin/activate
$> pip install -r requirements.txt
From application's folder:
$> python run.py
By default the application runs with environments loaded from envs/default.env. You can change it by setting the enveronments' file in ENV environment. For example:
$> ENV=default python run.py # Will load env/default.env
$> ENV=production python run.py # Will load env/production.env
The application configured through envirnment variables (see the section above). Default configuration:
ROOT_DATA=data
FLASK_PORT=8081
FLASK_HOST=0.0.0.0
DEBUG=True
/?files=file1,file2,file3&items=item1,item2
{
"result": [
{
"items": {
"item1": {
"_typename": "TGraph",
...
},
"item2": {
"_typename": "TGraph",
...
}
},
"root": "file1"
},
{
"items": {
"item1": {
"_typename": "TGraph",
...
},
"item2": {
"_typename": "TGraph",
...
}
},
"root": "file2"
}
]
}
/?files=file1,file2&items=item1,path/item2&folders=path1,path2
{
"result": [
{
"items": {
"item1": {
"_typename": "TH2D",
...
},
"path/item2": {
"_typename": "TGraph",
...
}
},
"root": "file1"
"trees": {
"path1": {
"folders": [...],
"objects": [...]
},
"path2": {
"folders": [...],
"objects": [...]
}
}
},
{
"items": {
"item1": {
"_typename": "TGraph",
...
},
"path/item2": {
"_typename": "TH1D",
...
}
},
"root": "file2",
"trees": {
"path1": {
"folders": [...],
"objects": [...]
},
"path2": {
"folders": [...],
"objects": [...]
}
}
}
]
}
Content type
Image
Digest
Size
459.6 MB
Last updated
over 9 years ago
docker pull mazurov/lhcbpr2root