Skip to content

SprocketBot/datasets

Repository files navigation

data

Running Locally:

  • Use Python 3.11

    • You can use a docker container to get the correct version of python: docker run -it --rm --volume .:/app --workdir /app --volume ~/.prefect:/root/.prefect python:3.11 bash
  • (Only for first time setup) Create a virtual environment: python -m venv env

  • Enter your virtual environment: source ./env/bin/activate

  • (Only for first time setup) Install dependencies pip install -r requirements.txt

  • Ensure you have RolyPoly credentials

    • Use the /set-password command in the #commands channel of the Sprocket Discord server if you need to set a password
    • Can check and reset your password using the /test-login and /update-password commands respectively if you don't remember your password
  • Configure Prefect to talk to Sprocket Prefect

    • prefect config set PREFECT_API_URL="https://[discord username]:[rolypoly password]@prefect.spr.ocket.dev/api"
    • Note that if you have special characters in your password you will need to URL encode them
      • For example, a ! will become %21
  • Test connection with: prefect deployment ls

    • There should be at least one item here
  • Now you can test all runs with: python ./src/flows/process-query-directory.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published