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

Uploaded Python 3

File details

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

File metadata

  • Download URL: priocomp-1.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 9ee11a15d9e770c29851e85e4413513efbd54c48332c7392d2628f72f5aa39b3
MD5 860bd0345acd1017f4d6d5577c3d32c4
BLAKE2b-256 54a6f42a6dee3fba381887e2ce55ca5376e403c5ad28c39f09e42a41d290651e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: priocomp-1.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cc979a4765781a443aea00fc3795666d54702fea13573748f6a822e6f6bbf019
MD5 31fe847248813c996230f78996d4d5b5
BLAKE2b-256 f21e3979b6183262e113f21fc8267a908d4effedb0ba5d777053933b2ab848b5

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