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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32ac4f348d4408bb766511183bcfe3033fa7655e073c29948eae11777a6eb4dc |
|
MD5 | 45504c9af9e00429d6e79b46799c4e33 |
|
BLAKE2b-256 | f75a2648867b6a08ad130c9e171fb1394c0fa41912f95ba2df909114c44b9f7f |
Close
Hashes for logiclayer_complexity-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8513b20d7888b519b5ce8dcacdc0da91337707ce5a055a1cfcf5a8badbd921d2 |
|
MD5 | 6e3d18359f92bdfac3ca65feed2c83f9 |
|
BLAKE2b-256 | 4dfd3ee2d99645c6a74f6ce1caa3d6aa6b037796304e7eed6c88c8613239976e |