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.priocomp.get() # Returns True if the comparison with the highest importance is true, and False if false.

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

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

priocomp.priocomp.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.priocomp.peek() # Returns the comparison with the highest importance.

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

priocomp.priocomp.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.2.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.2-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: priocomp-1.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 167d1d7764d852eed928e639d12c45d0a5c64a3a24b692c57eec45bb4f4a6065
MD5 c8cb7e76156f6866c32c093f62a6322f
BLAKE2b-256 8210e05e64c49e13e24b017033b88144677fcf8180aff9fb5829d1291538592c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: priocomp-1.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7797138d6d18162dd6835f412ea1b068a960982016f68642d94c9e614194ce8f
MD5 24a13a1d3bb514c472ab848bd8d5b2cc
BLAKE2b-256 585603ea0a1affdcda62da3229b73f0977a45ed40bda4bd5d0a3c1f98727aade

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