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.5.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2b9a5195579d73734d66ad4fa0f3878ff4078bc2a6bf09065677c2f9996ffcc |
|
MD5 | a2fbcc21d79fc1d569edf02cdbf03207 |
|
BLAKE2b-256 | ed9b5269940237399361d8735a43f376bcfaad2a329bedfffc4ff1d5e6fc6ab1 |
Close
Hashes for logiclayer_complexity-0.5.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8332004f03adc602d9ad12486cc1532eb8bac8f5d7364f2fc4c11eaa453fe113 |
|
MD5 | 7e87ef0e5b56a96a0179bd82a2647dad |
|
BLAKE2b-256 | 11c83d2bd21555d52610b768b2b32346f2990f83acff736270910f590bb6f10d |