Skip to main content

LogicLayer module to enable Economic Complexity calculations, using data from a tesseract-olap server.

Project description

Getting started

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

# app.py

from logiclayer import LogicLayer
from logiclayer_complexity import EconomicComplexityModule
from tesseract_olap import OlapServer
from tesseract_olap.logiclayer import TesseractModule

layer = LogicLayer()
olap = OlapServer(backend="clickhouse://...", schema="./schema/")

cmplx = EconomicComplexityModule(olap)
layer.add_module("/complexity", cmplx)

# You can reuse the `olap` object with an instace of `TesseractModule`
tsrc = TesseractModule(olap)
layer.add_module("/tesseract", tsrc)

You can also use the module with a FastAPI instance:

cmplx = EconomicComplexityModule(olap)

app = FastAPI()
app.include_router(cmplx.router, prefix="/complexity")

© 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_complexity-0.6.3.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

logiclayer_complexity-0.6.3-py3-none-any.whl (28.6 kB view details)

Uploaded Python 3

File details

Details for the file logiclayer_complexity-0.6.3.tar.gz.

File metadata

  • Download URL: logiclayer_complexity-0.6.3.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for logiclayer_complexity-0.6.3.tar.gz
Algorithm Hash digest
SHA256 0cf942e46c9c80874d2f0eca33d28a450548fe79c0e3cf4408ea42c401e1909b
MD5 e6da7c308af560667ee9bfcef19e7e7b
BLAKE2b-256 d1a68a3a28fb96cf04c0c4c7e0d8d2b7d1c96eae66bd425a3c40d8a5818a0aa7

See more details on using hashes here.

File details

Details for the file logiclayer_complexity-0.6.3-py3-none-any.whl.

File metadata

File hashes

Hashes for logiclayer_complexity-0.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ab951e56352af50c06531d0f673dc6239c2273ec2acb66011bd9858b78148e38
MD5 b8b5adeab002eb65be46487b75171c74
BLAKE2b-256 ec47af1439460454ad92f467a844e555aa729230a3e09db4c02a379d25871692

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