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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8ada852169024d70767f84d01cdab4f25c2225673089c26acaa0bc490182918 |
|
MD5 | f163c61658c9538d19e77bee8bdebf18 |
|
BLAKE2b-256 | f0c4d52af8e614e45ef936235b33e4e784d40feebdbbf29b4e0f5cc99492cc41 |
Close
Hashes for logiclayer_complexity-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc8a5f8d4f811809aa538ddd4187e8d62f37c2f42c37341bbca918a5f4cb4f45 |
|
MD5 | 5b68b685790f7ad21333e6e0ea843e0d |
|
BLAKE2b-256 | d2429d0057b91a0b94de259dfe39687d570042b2d39cb52f4360e4b8106d8c34 |