Skip to main content

Xeppelin Contest Watcher

Project description

Xeppelin Contest Watcher

Xeppelin is a contest watcher software that keeps track of file modifications during a contest and creates visualizations of your activity.

Installation

pip install xeppelin

Workflow

  1. Prior to the contest, create a new contest directory. Let's say it's called icpc-wf.
  2. Run xeppelin start icpc-wf to start watching the directory.
  3. Start the contest by writing a template file. Xeppelin team uses template.cpp.
  4. When solving a problem, create a new file with the problem letter. For example, if you're solving problem A, create a file named A.cpp.
  5. When you compile the code, use -o flag to specify the problem letter. For example, g++ A.cpp -o A.
  6. After the contest, run xeppelin stop icpc-wf to stop watching the directory.
  7. Looking through your submissions, you can see the time of each successful submission. Add them manually to the log file with xeppelin log icpc-wf "A solved 1:30".
  8. Run xeppelin show icpc-wf to see the visualization and get the image on your disk.

Commands

  • Start Watching: xeppelin start <contest_name> Starts watching the current directory for file modifications and logs them to <contest_name>.log.

  • Stop Watching: xeppelin stop <contest_name> Stops watching for the specified contest.

  • Show Visualization: xeppelin show <contest_name> [--duration MINUTES] [--freeze TIME] Displays a visualization of the activities logged for the specified contest.

    Options:

    • --duration MINUTES: Sets the maximum time (in minutes) to show on the visualization axis (default: 300)
    • --freeze TIME: Adds a freeze period indicator starting at specified time (format: HH:MM or minutes)

    Examples:

    xeppelin show icpc-wf --duration 240
    xeppelin show icpc-wf --freeze 4:00
    xeppelin show icpc-wf --duration 240 --freeze 180
    
  • Log Submissions: xeppelin log-submissions <contest_name> <submission_info> Adds additional submission information to the log file for the specified contest. Usually should be used to log the time of the submission. Example:

    xeppelin log-submissions test "A solved 1:30"
    
  • Help: xeppelin --help xeppelin <command> --help Shows help information about Xeppelin commands and their options.

Format

All problems are coded in files named A.cpp, B.cpp, etc. The compiled binary is named A, B, etc. Some additional files for the contest (stress-testing, additional solutions, etc.) are also allowed, if their filename starts with letter that matches the problem letter.

Requirements

  • inotify-tools for file watching.
  • Python packages: pandas, matplotlib, numpy.
  • Verified to work on Ubuntu and WSL2.
sudo apt install inotify-tools

pip install pandas matplotlib numpy

Contributing

Contributions are welcome! Please feel free to submit a pull request. In the ideal scenario, the feature should be optional and could be turned on/off with a flag.

License

This project is open-sourced under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xeppelin-0.2.1.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xeppelin-0.2.1-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file xeppelin-0.2.1.tar.gz.

File metadata

  • Download URL: xeppelin-0.2.1.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for xeppelin-0.2.1.tar.gz
Algorithm Hash digest
SHA256 515a49ca5ab0f6b717cda765326b1eb76e847496fd597c32f4f767d9e4a68fe9
MD5 5e42eec188bd69c5630c87a4172d2a85
BLAKE2b-256 c8f5c19f57826ea835d888c0c02b5cbf12a33b9e863ccc089e8445848e4b14fc

See more details on using hashes here.

File details

Details for the file xeppelin-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: xeppelin-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for xeppelin-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2c2b3d630fb11be3aae43b715030398b2503cb1b6a0797c6e02ab8fa0a76d63d
MD5 a9636465e4566d9dcf1b157ae82306f9
BLAKE2b-256 6e99c9bbd29d9d43c937cf32e7068ab449e5e3d26f77493df41b8609ba5f54ea

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page