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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2894b00c80975dd7049d31f4976166d32580688cee1b27215e173780c939ee6b |
|
MD5 | b91f9d22acdf2dd0588bd37f72538897 |
|
BLAKE2b-256 | d419f63d10dccc61710b10c31bc6976de70b3f164d343f6c1e19f3ed80cc4a76 |
Close
Hashes for logiclayer_complexity-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a0ef389186dcb737024f386b44b845cc1c40bb6837e51d8c7f8e3f035697df9 |
|
MD5 | bf03344b62b546d76a2631136ab7f0e5 |
|
BLAKE2b-256 | 740e5356b39d416cde8f6277c89e51b621bbd2a53d6e9d10693fd568cdc2e0ca |