Skip to main content

A simple Python library that lets you check comparisons in order of priority (importance).

Project description

priocomp

A simple Python library that lets you check comparisons in order of priority (importance).

This is my third python library :D

Commands:

priocomp.pc.get() # Returns True if the comparison with the highest importance is true, and False if false.

priocomp.pc.add("comparison",importance) # Adds a comparison with a set importance.

priocomp.pc.clear() # Removes all comparisons.

priocomp.pc.remove(index) # Removes a specific comparison, but the next comparison added will be one index higher than this (if it was the latest). Use priocomp.pc.clear() to restart index from 0 (also erases all comparisons).

priocomp.pc.peek() # Returns the comparison with the highest importance.

priocomp.pc.size() # Returns how many comparisons (that arent removed) are left.

priocomp.pc.is_empty() # Returns True if there are no comparisons, False if there are comparisons left.

!NB!

Use: pip install priocomp

But, to import it to python: import priocomp

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

priocomp-1.1.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

priocomp-1.1.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file priocomp-1.1.1.tar.gz.

File metadata

  • Download URL: priocomp-1.1.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for priocomp-1.1.1.tar.gz
Algorithm Hash digest
SHA256 7d6873d604f685562580acd8ee75bd936723264d116d6a6df481bd7784a919a6
MD5 cb2ba035ec4b2e41cc2e48ad67246fe5
BLAKE2b-256 6941b74be1eabcc798d8ff7750b88df36ff58c7108cb9d9278974376b33cdbb1

See more details on using hashes here.

File details

Details for the file priocomp-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: priocomp-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for priocomp-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1259e6c33b8cc8bfef3b0802e7cba471642daf438ea832fade7486ce24abf654
MD5 2737015b0f5478a036d3e996acd99bb3
BLAKE2b-256 303766964cce36d7b1aa2f320e03eb1550773905db763776cb323b3a46a88192

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