Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

fishnet-cod

P2P Financial Signal Hosting Network on Aleph

Initial setup

Install the FastAPI library and Uvicorn:

pip install -r ./api/requirements.txt

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:

python -m uvicorn api: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

Upload on Aleph

The same app we just used with Gunicorn can be used by Aleph to run the web app, since Aleph attempts to be compatible with ASGI.

To upload the app, we can use the aleph command line tool.

aleph program api app

Testing

Open the HTTP interface of a node running the VM Supervisor:

http://ip-of-supervisor:4020/vm/{message_hash}/

Deployment

You can deploy your own Fishnet instance using the fishnet_cod.deployment package.

from pathlib import Path

import asyncio

from aleph.sdk.client import AuthenticatedAlephClient
from aleph.sdk.chains.sol import get_fallback_account
from aleph.sdk.conf import settings

from fishnet_cod.deployment import deploy_api, deploy_executors

async def main():
    aleph_session = AuthenticatedAlephClient(
        get_fallback_account(),
        settings.API_HOST
    )  # you'll need tons of $ALEPH
    
    executors = await deploy_executors(
        executor_path=Path("/your/executor/folder"),
        time_slices=[0, -1],  # one executor for all data
        deployer_session=aleph_session,
        channel="MY_DEPLOYMENT_CHANNEL",
    )
    
    await deploy_api(
        api_path=Path("/your/api/folder"),
        deployer_session=aleph_session,
        executors=executors,
        channel="MY_DEPLOYMENT_CHANNEL",
    )

asyncio.run(main())

Metadata

Release files for fishnet-cod 1.0.0b2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fishnet-cod 1.0.0b2
File Size Uploaded Provenance Actions
fishnet_cod-1.0.0b2.tar.gz 56.8 MB Without provenance Details for fishnet_cod-1.0.0b2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fishnet-cod 1.0.0b2
File Interpreter ABI Platform Actions
fishnet_cod-1.0.0b2-py3-none-any.whl Python 3 none any Details for fishnet_cod-1.0.0b2-py3-none-any.whl

Total release size: 56.8 MB

Release files / fishnet_cod-1.0.0b2.tar.gz

Download URL fishnet_cod-1.0.0b2.tar.gz
Size 56.8 MB
Tags Source
SHA-256 checksum
How to use checksums
dc39ccb7ef2f4f06afd0770ba50d98ed0ce7444028665fa054db43876d03b393
BLAKE2b-256 checksum
How to use checksums
99d59fb3ef0361b67ddaee60067f8d0bc87640b2bad39e9133a3efed5f6f0527
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / fishnet_cod-1.0.0b2-py3-none-any.whl

Download URL fishnet_cod-1.0.0b2-py3-none-any.whl
Size 30.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5b8ff5473a907b1c5030132414729b3fff9f90720e5b78451d5719c31776f0ae
BLAKE2b-256 checksum
How to use checksums
70fc61d93b1cd68f4b80114dd2122c1ca3b185a1ace03e960758bb382d6517c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Security for fishnet-cod 1.0.0b2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page