Skip to content
/ law Public
forked from riga/law

High-level extension layer for Luigi analysis workflows.

License

Notifications You must be signed in to change notification settings

silky/law

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

law

Build Status Documentation Status Package Status

High-level extension layer for Luigi analysis workflows.

Installation and dependencies

Install via pip:

pip install law

This should also install luigi and six.

Content

TODO

Config
  • core:
    • db_file: The path to the db file. Defaults to $HOME/.law/db
    • target_tmp_dir: The directory where tmp targets are stored. Defaults to tempfile.gettempdir().
  • target:
    • gfal2_log_level: The log level of the gfal2 handler, a string describing a python log level. Defaults to "INFO".
    • default_dropbox: The section of the dropbox config to use by default. Defaults to "dropbox".
    • default_dcache: The section of the dcache config to use by default. Defaults to "dcache".
  • paths: Listing of paths to look for tasks when creating the db file.
Example remote target configs
[target]

default_dropbox: my_dropbox
default_dcache: my_dcache


[my_dropbox]

base: ...
app_key: ...
app_secret: ...
access_token: ...


[my_dache]

base: ...
base_listdir: ... (optional)
Environment variables
  • LAW_CONFIG_FILE
  • LAW_DB_FILE
  • LAW_SANDBOX
  • LAW_SANDBOX_SWITCHED
  • LAW_SANDBOX_WORKER_ID
  • LAW_DROPBOX_CONFIG_FILE
Enable bash completion
source `law_completion`

Development

Developing with Docker

docker run -ti -p 8082:8082 riga/law
git pull && law db

# or when passing a local checkout as a volume

docker run -ti -p 8082:8082 -v /path/to/law:/root/law riga/law

# the config can be passed as well by adding (e.g.)
-v $HOME/.law/config:/root/.law/config

For particular tags, see riga/law on DockerHub.

Developing without Docker

source dev.sh
law db

Authors

License

The MIT License (MIT)

Copyright (c) 2016-2017 Marcel R.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

High-level extension layer for Luigi analysis workflows.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.7%
  • Shell 2.3%