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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfea25285707f99c9bd19c8c119e4f74bfb2cce143c914079180b76c0074a55e |
|
MD5 | 0b274131d625eaf46a9ef005712a36b7 |
|
BLAKE2b-256 | ba62708babc2b409ccfdcd5bec8a2f9115ef8bc89c20c165a5ab850085c567c5 |
Close
Hashes for logiclayer_complexity-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8e26099136766232b0d7c967f4e826c9589b3e21a2aa76bf9cc0ad7153c4338 |
|
MD5 | d6caf7e5aac4e653ec7ea45b0c0787af |
|
BLAKE2b-256 | 6cd4c10670e1ec4621486b82488ec36c71d25d629a4b82f9387340f13b2f0240 |