Compute-over-Data (CoD) network for time series data on Aleph.im
Project description
fishnet-cod
P2P Financial Signal Hosting Network on Aleph
Initial setup
Install the FastAPI library and Uvicorn:
pip install -r requirements.txt
Running the API locally
Uvicorn is used to run ASGI compatible web applications, such as the app
web application from the example above. You need to specify it the name of the
Python module to use and the name of the app:
export TEST_CACHE=true # when running locally, use the test cache
cd src # the following command must be run from the src folder
python -m uvicorn fishnet_cod.api.main:app --reload
Then open the app in a web browser on http://localhost:8000
Tip: With
--reload
, Uvicorn will automatically reload your code upon changes
Running the Executor locally
When the API is running, you can run the local executor to automatically process the pending execution requests.
python /src/fishnet_cod/local_executor.py
Environment variables
Name | Description | Type | Default |
---|---|---|---|
TEST_CACHE |
Whether to use the test cache | bool |
false |
TEST_CHANNEL |
Whether to use a fresh test channel | bool |
false |
ALEPH_CHANNEL |
The Aleph channel to use, is superseded by TEST_CHANNEL |
string |
None |
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
fishnet_cod-1.1.0.tar.gz
(36.7 kB
view hashes)
Built Distribution
Close
Hashes for fishnet_cod-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d26da24b8ac3ebc9897eb32543f874d8f440f8511541d309d50f516f66b4dcd2 |
|
MD5 | 9a830a6ef096273b08b5733fcec3773c |
|
BLAKE2b-256 | 21fbf74bdc8162616e394d8cde9716c83ef34c4bf79820c052e1ba1ab8f835f0 |