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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e67e2c2d5c8c4524b881eebfc5a253207d5cda186a318a260d0e369552efe932 |
|
MD5 | f677e294860b457dbf7161851b2cfc23 |
|
BLAKE2b-256 | 78c226a247ab7eaaed7d0c5bf7a98368c0bc51179a43f3876f46f5aed362b94c |
Close
Hashes for logiclayer_complexity-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c05e2c64aaa84f503ddf6803ae2d3c1817f2697ca14ec90e5e09fda5f89088f |
|
MD5 | f4fddb0aa322ca2f175b9392ca133386 |
|
BLAKE2b-256 | 53da16411476d9830d79017ffa58efcb7a6938bf1cb2d8d6ed1a200c6685f80a |