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.6.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78a19d92df0e703f0e7d7d567458724013766de15d6cfa8d3e482d7b152de13b |
|
MD5 | 3f6c83b91c4d2cd172471eea5d6975c7 |
|
BLAKE2b-256 | ca97c9fac0ab716aa4656427c503217fab6d66da3d5a0fbd6623ec5c99e639a4 |
Close
Hashes for logiclayer_complexity-0.6.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ede2403402bf45ee3c776c8f9f966c4a9153f20d637e02c0ebdcb76790ee292 |
|
MD5 | 3d5f6ace9bb709dbaa7bafd132c8038e |
|
BLAKE2b-256 | 901d6a736095185b1a1ddafb76cec059d13732a807b04d9ae3ae0ca767d8ba46 |