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)

Is not officially supported, but you can also use the module directly 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.8.0.tar.gz (22.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_complexity-0.8.0-py3-none-any.whl (32.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: logiclayer_complexity-0.8.0.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.13.12 Darwin/24.6.0

File hashes

Hashes for logiclayer_complexity-0.8.0.tar.gz
Algorithm Hash digest
SHA256 8da7ef5d7e54d1a446601c4d1fe68655386711f187c4c188334c90a940bd33cb
MD5 0ef9d5d67d7a3fcc433260486e21914b
BLAKE2b-256 0732e94a7b722e59e7cb82fb07f7aa9f1e49813cc6773a44f1c5d1878352fb86

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for logiclayer_complexity-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 77ae9c4ff97821c8e511efd3c70f58168edd4411e00e29a181dacd83667c3814
MD5 4b412da9dda2406363826e72bb7ab45a
BLAKE2b-256 8d0a0f77672ccfd7ef8c906af4f62648892445f9051b6929b6b543f552ab259b

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