A simple business reporting library
Project description
Laika
laika is a business reporting library that allows you to request data from different sources and send it to someone as or save it at some destination. For example: you can query your database, send the result as an excel attachment via email and save it on Google Drive or Amazon S3.
TODO: document what it is and what it is not
Installation
TODO: document this
Usage
laika.py
is a script that lets you use laika library. You can run it like this:
$ laika.py some_report
This command will run the report named some_report. This report must be defined in some configuration file. By default laika looks for config.json
in the same directory. You can specify a custom config passing -c
parameter:
$ laika.py -c my_config.json
Path to configuration file can also be specified with the LAIKA_CONFIG_FILE_PATH
environment variable:
$ export LAIKA_CONFIG_FILE_PATH='/home/me/my_config.json'
$ laika.py my_report
Another parameter you can use is --pwd
which serves for specifying working directory. It can also be specified in configuration file or LAIKA_PWD
environment variable.
Arguments
You can check all the predefined laika.py
arguments with --help
.
Undefined arguments will be added to report's definition overwriting default values. Thus, if for example the configuration for my_report
defines field my_field
with value foo
, if you execute it like this:
$ laika.py my_report --my_field bar
my_field
configuration will contain bar
as value.
Testing
To run test, you must install test dependencies:
TODO: document
Then, run test from laika directory:
$ cd path/to/laika
$ python -m unittest discover
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for laika_lib-1.0.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59dae27096ad75202441ba0675d7ce8c4bf298de268eabaa8ba871e45ce78410 |
|
MD5 | 6b06b72d51eba5c1088adf67db91ad14 |
|
BLAKE2b-256 | b3a6be0e2d515e29d7b6d83e25f27b321eaabbcf0f0fb3fec39c536fa20d8ddc |