lynxkite / README.md
Chema
Adding backend tests (#58)
2601533 unverified
|
raw
history blame
1.88 kB

LynxKite 2024

This is an experimental rewrite of LynxKite. It is not compatible with the original LynxKite. The primary goals of this rewrite are:

  • Target GPU clusters instead of Hadoop clusters. We use Python instead of Scala, RAPIDS instead of Apache Spark.
  • More extensible backend. Make it easy to add new LynxKite boxes. Make it easy to use our frontend for other purposes, configuring and executing other pipelines.

Structure

  • lynxkite-core: Core types and utilities. Depend on this lightweight package if you are writing LynxKite plugins.
  • lynxkite-app: The LynxKite web application. Install some plugins then run this to use LynxKite.
  • lynxkite-graph-analytics: Graph analytics plugin. The classical LynxKite experience!
  • lynxkite-pillow: A simple example plugin.
  • lynxkite-lynxscribe: A plugin for building and running LynxScribe applications.
  • docs: User-facing documentation. It's shared between all packages.

Development

Install everything like this:

uv venv
source .venv/bin/activate
# The [dev] tag is only needed if you intend on running tests
uv pip install -e lynxkite-core/[dev] lynxkite-app/[dev] lynxkite-graph-analytics/[dev] lynxkite-lynxscribe/ lynxkite-pillow-example/

This also builds the frontend, hopefully very quickly. To run it:

cd lynxkite-app # just because the "data" directory with the examples is here
LYNXKITE_RELOAD=1 lynxkite

If you also want to make changes to the frontend with hot reloading:

cd lynxkite-app/web
npm run dev

Executing tests

Just go into each directory and execute pytest.

# Same thing for lynxkite-core and lynxkite-graph-analytics
$ cd lynxkite-app
$ pytest

Documentation

To work on the documentation:

uv pip install mkdocs-material mkdocstrings[python]
mkdocs serve