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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cf942e46c9c80874d2f0eca33d28a450548fe79c0e3cf4408ea42c401e1909b |
|
MD5 | e6da7c308af560667ee9bfcef19e7e7b |
|
BLAKE2b-256 | d1a68a3a28fb96cf04c0c4c7e0d8d2b7d1c96eae66bd425a3c40d8a5818a0aa7 |
File details
Details for the file logiclayer_complexity-0.6.3-py3-none-any.whl
.
File metadata
- Download URL: logiclayer_complexity-0.6.3-py3-none-any.whl
- Upload date:
- Size: 28.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab951e56352af50c06531d0f673dc6239c2273ec2acb66011bd9858b78148e38 |
|
MD5 | b8b5adeab002eb65be46487b75171c74 |
|
BLAKE2b-256 | ec47af1439460454ad92f467a844e555aa729230a3e09db4c02a379d25871692 |