Skip to main content

Minimalist LiTOY task sorting algorithm based on ELO scores

Project description

mini_LiTOY.md

Minimalist approach to the LiTOY task sorting algorithm based on ELO scores.

Features

  • Minimalist
  • Statically typed via typeguard
  • Made to be extensible
  • Supports callbacks

Questions

What is LiTOY?

LiTOY was a personal project. The idea is to dump all your TODOs in one place, then rank them using ELO scores based on how important they are and of how fast they are.

Why make mini_LiTOY?

mini_LiTOY's idea is to keep the code idea but this time in a minimalist python script. As long as the user takes care of storing the tasks in a text files, the LiTOY algorithm will update an output json based on the score. The first use for this will be to rank my Omnivore reading queue by downloading titles of articles to read via their API, then uploading the ELO score as a label. This can be found in the examples folder.

Usage

  • python -m pip install mini_LiTOY or python -m pip install git+https://github.com/thiswillbeyourgithub/mini_LiTOY.git
  • python -m mini_LiTOY --input_file my_text_file.txt --output_json output_file.json
  • Note: each new (nonempty nor commented) line in input_file will be added to the input_file.json with the default values. Each answer from the user will update the json file.
  • In case anything goes wrong, you can see the recovery files and logs using --verbose.

Examples

  • To sort the elements by ELO score: cat output_file.json | jq 'sort_by(.ELO)'

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

mini_litoy-0.1.1.tar.gz (20.6 kB view hashes)

Uploaded Source

Built Distribution

mini_LiTOY-0.1.1-py3-none-any.whl (22.0 kB view hashes)

Uploaded Python 3

Supported by

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