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)
Is not officially supported, but you can also use the module directly 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file logiclayer_complexity-0.7.2.tar.gz.
File metadata
- Download URL: logiclayer_complexity-0.7.2.tar.gz
- Upload date:
- Size: 22.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.1 CPython/3.12.3 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5606602331f5231fbdcca3ab35d8bd08dce7f5a6d60129ea67650b17885c997f
|
|
| MD5 |
27a8672a26512f479903511dcffdd3dd
|
|
| BLAKE2b-256 |
e79ab4b0243bdbccf99ddc2c385f8009e0801684e9b7713f9a21418fc31023c2
|
File details
Details for the file logiclayer_complexity-0.7.2-py3-none-any.whl.
File metadata
- Download URL: logiclayer_complexity-0.7.2-py3-none-any.whl
- Upload date:
- Size: 32.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.1 CPython/3.12.3 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41a60de283d7e18c22d16087682de94d9719f8bfddb7d8ca1914c5aa735471bd
|
|
| MD5 |
f1f3d1f427314b20feef26f23cc72860
|
|
| BLAKE2b-256 |
539bc46bb5b847fc743b96f6d090e940d16b03666f748a91b86e003163fc0f54
|