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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file mini_litoy-0.1.1.tar.gz.

File metadata

  • Download URL: mini_litoy-0.1.1.tar.gz
  • Upload date:
  • Size: 20.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.19

File hashes

Hashes for mini_litoy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4826bbcadd9e9b26e323b4581c33650838c06798d404fa5e40e551b7c6a26f67
MD5 369df857c1f6fa58554585adcd9052d4
BLAKE2b-256 2016860b75c708036da8fe4e9dfdd23ece1fa9e108ddf6c1791bd15972bcc2b0

See more details on using hashes here.

File details

Details for the file mini_LiTOY-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: mini_LiTOY-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 22.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.19

File hashes

Hashes for mini_LiTOY-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b6d58b2e49ee1af7c55adbc59fa6e0bb00dfcf781b97e03ab062206461eabda0
MD5 e3170c28009120de256384cb285b3ed5
BLAKE2b-256 d4e392c8491e45f1b99e3140b2754fc5a01886d0b68c4b430728db29fe408bb1

See more details on using hashes here.

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