Skip to content

Latest commit

 

History

45 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WKspel

Run

  1. Download zip https://github.com/r-w-dev/ek_spel/archive/refs/heads/main.zip
  2. Extract
  3. Open Windows command prompt
  4. .\<path to files>\scripts\run.cmd <path to source form file>\wk-2026-speelschema.xlsx <path to invullijsten folder>

Installatie (handmatig)

  • Installeer Python niet ouder dan 3.11
  • Activeer een virtualenv
    • macOS/Linux
      python3 -m venv venv_wkspel
      source venv_wkspel/bin/activate
    • Windows
      python -m venv venv_wkspel
      .\venv_wkspel\Scripts\activate
  • Installeer release
    pip install git+https://github.com/r-w-dev/ek_spel.git
  • Download het WK speelschema 2026 xlsx + 2026 final_mapper.json plaats de bestanden in 'wkspel2026' map
  • Gebruik via de command line: wkspel

Gebruik

  1. Zorg dat je in dezelfde map staat als het speelschema en de final_mapper.json (cd)
  2. Maak map invullijsten en plaats de lijsten in deze map
  3. Specificeer een database in de CONNECTION_STRING environment variabele
    • macOS/linux:
      export CONNECTION_STRING="sqlite:///wkspel2026.db"
    • Windows (powershell):
      $env:CONNECTION_STRING="sqlite:///wkspel2026.db"
    • Windows (CMD):
      set CONNECTION_STRING=sqlite:///wkspel2026.db
  4. Initialiseer
    # Create database
    wkspel create
    
    # load speelschema en invullijsten
    wkspel load --source_file=wk-2026-speelschema.xlsx --source_forms=invullijsten
  5. Update scores in het speelschema + final_mapper.json, daarna importeer de nieuwe scores
    # Update scores
    wkspel update --source_file=wk-2026-speelschema.xlsx
  6. (optioneel) export data
    # print ranking
    wkspel print_ranking
    
    # print poules
    wkspel print_poules
    
    # dump to file in current directory
    wkspel dump --table {User,Team,Ranking,Games}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages