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
Close
Hashes for logiclayer_complexity-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9106bb6bd89fbca80c057c8d961336acfdfeed5ac8e2605cd38493efb7bbc418 |
|
MD5 | a8da0f4de8a241abd23c71b8c6f9aefc |
|
BLAKE2b-256 | 4f3fcbffcb4d071053a5f55f1349868d045a35e1a71700f0c03e1ffe0dfe44f7 |
Close
Hashes for logiclayer_complexity-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cb9cea33ceadc8662d838db6126c2f0989b45edc34189fdc70d77aec47ecad7 |
|
MD5 | 9ab4662f55bd0da6f5ef947b96148280 |
|
BLAKE2b-256 | 83fffb8a1718aca77e309656621030dde2e4d4014247521376b4a319a975a992 |