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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84e09a785178242cbf130288b819ba79ba174b9009bcb45a37a6cb1389c158cf |
|
MD5 | 8a5bb3fa42a9af14ea5c1dbc08975c2c |
|
BLAKE2b-256 | 1d41f6c6a55bfc196fdc24910037dcdf7fa573b2e58f03e23924ff512cf43214 |
Close
Hashes for logiclayer_complexity-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d1eb805947f8012bdd9b1f207be39abea7dc5e9fef80e00525a13848eda6d7a |
|
MD5 | 6856228e2a2ded923ba07163e75c6ad7 |
|
BLAKE2b-256 | ea1e2eded90bd38b952ac1c33cb433dc02aa7eade35f8336fe61325e13b78ea2 |