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.5.tar.gz (148.5 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.5-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: logiclayer_merge-0.1.5.tar.gz
  • Upload date:
  • Size: 148.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.12.3 Linux/6.17.0-1010-azure

File hashes

Hashes for logiclayer_merge-0.1.5.tar.gz
Algorithm Hash digest
SHA256 a8b3627c3c80c52563fa03231e927a2dfce5c039447b65b8a600dfb829a691e6
MD5 0818f189374f7ff7cd48372b4d17b4f8
BLAKE2b-256 d13d5202b63460251312e036765b39aae0c8058b0849b68fc7b43384b4895a44

See more details on using hashes here.

File details

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

File metadata

  • Download URL: logiclayer_merge-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.12.3 Linux/6.17.0-1010-azure

File hashes

Hashes for logiclayer_merge-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ab4cb4eec0bf7d974c5817ec024ce5479626f819086e8b8285e8b85d05b80831
MD5 a81b77f6869ec9f4fdfaf295a62b34c1
BLAKE2b-256 52749c8f11abc429e27db5319debc44620cf6eb999af92d20073607e519e82a2

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