fishnet-cod-1.1.0
توضیحات
Compute-over-Data (CoD) network for time series data on Aleph.im
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | fishnet-cod-1.1.0 |
| نام | fishnet-cod |
| نسخه کتابخانه | 1.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Mike Hukiewitz |
| ایمیل نویسنده | mike.hukiewitz@robotter.ai |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/fishnet-cod/ |
| مجوز | AGPL-3.0 |
# fishnet-cod
P2P Financial Signal Hosting Network on Aleph
## Initial setup
Install the FastAPI library and Uvicorn:
```shell
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:
```shell
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.
```shell
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` |
نیازمندی
| مقدار | نام |
|---|---|
| >=2.30.0,<3.0.0 | requests |
| >=2.0.1,<3.0.0 | pandas |
| >=1.5.0,<2.0.0 | PyNaCl |
| >=2.1.1,<3.0.0 | base58 |
| >=3.0.0,<4.0.0 | semver |
| >=1.10.7,<2.0.0 | pydantic |
| >=0.95.1,<0.96.0 | fastapi |
| >=0.6.0,<0.7.0 | aleph-sdk-python |
| >=3.8.4,<4.0.0 | aiohttp |
| >=0.5.8,<0.6.0 | aars |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9,<4.0 | Python |
نحوه نصب
نصب پکیج whl fishnet-cod-1.1.0:
pip install fishnet-cod-1.1.0.whl
نصب پکیج tar.gz fishnet-cod-1.1.0:
pip install fishnet-cod-1.1.0.tar.gz