No project description provided
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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82f340ce18fe7d5ba8f46b90ab662cddcc7b8b145435bccc3f61f41089c070e0 |
|
MD5 | 09b99bbfd176c280c13163b24eb80e95 |
|
BLAKE2b-256 | aa81428e2573935ea8053b6c80f880107f7b492ceed0b2eb84495ca77af74489 |
Close
Hashes for logiclayer_complexity-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b2d58481aea41ca94a0d0d9a86269d9072cf83b235ee00724d0da9a0002ed33 |
|
MD5 | df2cf113fd7060675fd926e97e7f8d9c |
|
BLAKE2b-256 | c9942c7ea9efce0fc7c955003c9f19f1f3dcd3748d72c3382e8541745619d912 |