Skip to content

fmidev/nutshell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NutShell cover NutShell

Service for generating image and data products

Makefile-like concept

  • Given a filename, derives the product generator building the file
  • A product file can require other product files which are generated recursively

Product generators

NutShell delegates making the files to independent product generators

  • Generators are organized as subdirectories
  • Minimally, a generator directory contains script generate.sh
  • Product parameters are communicated as environment variables to the script
  • If a product requires other products as input, they are declared in input.sh
  • Generators can be run independently from NutShell code

Interfaces

Java version

  • Command line: java -cp Nutlet.jar nutshell.ProductServer --config nutshell/nutshell.cnf --request MAKE --product 201708121600_my.product_SIZE=800x800.png
  • HTTP server: http://127.0.0.1:8080/nutshell/NutShell?action=GENERATE&output=STREAM&product=201708121600_my.product_SIZE=800x800.png
  • Java API: Task task = productServer.new Task("201708121600_my.product_SIZE=800x800.png", actions.value, null); task.start()
  • Installation

Python version

  • Command line: python3 -m nutshell.nutshell -c nutshell/nutshell.cnf --request MAKE --product 201708121600_my.product_SIZE=800x800.png
  • HTTP server: http://127.0.0.1:8088/nutshell/server?request=MAKE&product=201708121600_my.product_SIZE=800x800.png
  • Python API: response = product_server.make_request('201708121600_my.product_SIZE=800x800.png', ['MAKE'])

Documentation

About

Software for generating image and data file products

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published