Options

efos.conf
 log-level=50

Base Options

archive

Tells the Parser whether or not to archive the original file.

Default:True

config

Path to a config file.

delete

Tells the Parser whether or not to delete the original file after processing.

Default:True

delay

Adds a delay (seconds) between getting notified of a new file and processing of the file. If the delay is 0 the Processor will check 6 times if the file exists and can be opened. Between each try there is a 1 second delay. That gives the scanner up to six seconds to copy the file to the folder.

Default:0

file-format

This is how efos should name each parsed file. It uses pythons old % formatting with the barcode data.

filename = self.options.filename_format % self.barcode.data

Note

This is probably going to change in a later release to the new formatting style.

Default:%(filename)s

handlers

Defines the handlers to use when processing files. Each handler has a process() method for the parsed file. The archive() method is used to archive the orignal file.

Default:['efos.handler.FileHandler', 'efos.handler.HttpHandler']

log-level

Pythons logging level.

Default:11

port

Webserver port.

Default:8081

watch

This tells efos which director to watch for changes.

Required:True

DropboxHandler Options

dbx-key

Dropbox Application key.

Default:None

dbx-secret

Dropbox Application secret.

Default:None

dbx-token

Application access token.

Default:None

dbx-path

File path in Dropbox account.

Default:/output

dbx-archive

Archive path in Dropbox account

Default:/archive

dbx-autorename

Rename file if it already exists.

Default:True

FileHandler Options

output-path

Path to save processed files. If this path is a relative path (./out/dir or out/dir) it will be appended to the watch path.

Default:output

archive-path

Path to save original files after processing. If this path is a relative path (./archive/dir or archive/dir) it will be appended to the watch path.

Default:archive

disable-output

Will disable the output of processed files, but will still archive originals.

Default:False

HttpHandler Options

url

The url to send the file. If this option is left out no upload will be tried.

Default:None

http-timeout

Time to wait to find the server.

Default:10

form-data

Additional form data to send to server. In the config file you can specify multiple like so:

form-data=id=something
form-data=auth_token=somethingelse
Default:None

disable-http

Will disable this file handler.

Default:False

file-form-name

Uploads the file with a custom form param name.

Default:file