Skip to main content

Allows to merge the results of other LogicLayer modules in a single response.

Project description

Getting started

This module must be used with LogicLayer. An instance of OlapServer from the tesseract_olap package is optional to retrieve the data.

# app.py

__title__ = "logiclayer-merge"
__description__ = "Logiclayer-Merge instance"

import os
import logging

from logiclayer import LogicLayer
from src.logiclayer_merge import MergeModule
from tesseract_olap import OlapServer

logging.basicConfig(level=logging.DEBUG)

olap_backend = os.environ["TESSERACT_BACKEND"]
olap_schema = os.environ["TESSERACT_SCHEMA"]
allowed_domains = os.environ.get("ALLOWED_DOMAINS", "")

olap = OlapServer(backend=olap_backend, schema=olap_schema)
mod = MergeModule(olap=olap, allowed_domains=allowed_domains)
mod.startup_tasks()
layer = LogicLayer()
layer.add_module('/merge', mod)

© 2022 Datawheel, LLC.
This project is licensed under MIT.

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

logiclayer_merge-0.1.0.tar.gz (148.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

logiclayer_merge-0.1.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file logiclayer_merge-0.1.0.tar.gz.

File metadata

  • Download URL: logiclayer_merge-0.1.0.tar.gz
  • Upload date:
  • Size: 148.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.3 Linux/6.11.0-1018-azure

File hashes

Hashes for logiclayer_merge-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4676ca9d89dc45a10ba2a72fa45cd62ecac5cdc6094cfef7317372097c430894
MD5 15459dd927ea10eaf7d366340d293012
BLAKE2b-256 a9c4494a183b151ee57ff10b7ff4c38b314ef541066e6e175e27914e960dc64b

See more details on using hashes here.

File details

Details for the file logiclayer_merge-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: logiclayer_merge-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.3 Linux/6.11.0-1018-azure

File hashes

Hashes for logiclayer_merge-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cfdb997dbe1962832a31a128acc7bcc409838d8789290c5758c2afeb71aa8d91
MD5 cf4b9a591463979b5edd71f4d8c22669
BLAKE2b-256 42e2f4e3251f8e56df6163f34708f757a5de07e1b034ed19e1334fd0548b9611

See more details on using hashes here.

Supported by

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