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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14ca5eded408d970074fed5b55eabcf7fe42c7153687c50da84f811f2da9c28c |
|
MD5 | e16ee9f98273eb9b7e189ad318be6092 |
|
BLAKE2b-256 | 936800d84dba95106ecaff5d8609aab84edb69a93e9a8462e6e09c945cd86fb8 |
Close
Hashes for logiclayer_complexity-0.5.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61569f56e0c0220127c2416bbb1209781472970861c0a44ed15378bb70eb72ac |
|
MD5 | 3da62e0f7dd7d336e520533e1eb42023 |
|
BLAKE2b-256 | 0861c792673beaf1d55d9cf7ac3dc12f292534c01d588e2e7a09022d4a93402e |