Skip to main content

A simple business reporting library

Project description

Laika

laika_stamp

laika is a business reporting library that allows you to request data from different sources and send it to someone 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.

Check out the documentation at readthedocs.

Laika was tested on Python 2.7 and 3.5 or higher.

Installation

You can install it directly using pip:

$ pip install laika-lib

You can specify extra dependencies. To find out what dependencies you need to install, check out reports and results documentation. For example, to install libraries to use Google Drive and Amazon S3 in your reports you must run:

$ pip install laika-lib[drive, s3]

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:

$ pip install laika-lib[test]

Then, run test from laika directory:

$ cd path/to/laika
$ python -m unittest discover

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

laika-lib-1.4.0.tar.gz (27.4 kB view details)

Uploaded Source

Built Distribution

laika_lib-1.4.0-py3-none-any.whl (28.4 kB view details)

Uploaded Python 3

File details

Details for the file laika-lib-1.4.0.tar.gz.

File metadata

  • Download URL: laika-lib-1.4.0.tar.gz
  • Upload date:
  • Size: 27.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.6

File hashes

Hashes for laika-lib-1.4.0.tar.gz
Algorithm Hash digest
SHA256 ab404f8cb8e902abad4560f889e881075a8353c8a394447e15ca5c59f4c2e52e
MD5 ed538c51428afc7863700dee6a52f906
BLAKE2b-256 503303aac297eedee31d85281f05097ea2f016d00cf52a7e934beb8bc963f77c

See more details on using hashes here.

File details

Details for the file laika_lib-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: laika_lib-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 28.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.6

File hashes

Hashes for laika_lib-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 677a196faae04f639cf8b2936e6bc0ce89d2c3f45277f1f57e3d7ce4a7757292
MD5 846f1ec9acb41f5d65dde113f3caca0c
BLAKE2b-256 447239148a1b0127468692f86795d40a53fac0a454a27d1955c097bc86e311c6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page