Skip to main content

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


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)

Uploaded Source

Built Distribution

fishnet_cod-1.1.0-py3-none-any.whl (45.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page