Skip to main content

Utility library by Optimal Matrix Platform

Project description

OMPUtil

A simple Python utility library developed by OMP (Optimal Matrix Platform).

Features

  • Calculator
  • Password Generator
  • QR Code Generator
  • Text Utilities
  • Timer
  • AI-Powered Interview Question Generator
  • AI Interview Answer Evaluation
  • Mock Interview Sessions

Installation

pip install omputil

Requirements

For AI Interview features:

pip install ollama

Install and run Ollama:

ollama serve

Pull a model:

ollama pull qwen3

Usage

Calculator

from omputil import add

print(add(5, 3))

Output:

8

Password Generator

from omputil import generate_password

print(generate_password(12))

Text Utilities

from omputil import reverse_text

print(reverse_text("OMP"))

Output:

PMO

QR Code Generator

from omputil.qr import create_qr

create_qr("https://github.com")

AI Interview Module

Generate Interview Question

from omputil.interview import generate

question = generate(
    topic="Python",
    difficulty="medium"
)

print(question)

Example Output:

What is the difference between a list and a tuple in Python?

Generate Question with Answer

from omputil.interview import generate

result = generate(
    topic="SQL",
    difficulty="hard",
    answer=True
)

print(result)

Mock Interview

from omputil.interview import mock_interview

print(
    mock_interview(
        topic="Java",
        count=5
    )
)

Evaluate Candidate Answer

from omputil.interview import evaluate_answer

feedback = evaluate_answer(
    question="What is a Python dictionary?",
    user_answer="""
A dictionary stores data in key-value pairs.
Keys are unique.
"""
)

print(feedback)

Example Output:

Score: 8/10

Strengths:
- Correctly identified key-value structure.
- Mentioned unique keys.

Weaknesses:
- Did not explain mutability.
- Missing common methods.

Ideal Answer:
A dictionary is a mutable data structure...

Follow-Up Question:
How is a dictionary implemented internally?

Section_G Information Utility

Retrieve student information instantly using roll numbers.

from omputil.sec import info

info(40)

Output:

Student Details

Name : Abinash RegNo : 250301370040

Another example:

Invalid roll number:

info(100)

Output:

Student not found.

Roadmap

Upcoming Features:

  • Project Roadmap Generator
  • Attendance Calculator
  • CGPA Calculator
  • Resume Builder
  • Team Name Generator
  • Hackathon Idea Generator
  • Learning Path Generator

Developed By

OMP — Optimal Matrix Platform

Building the Future, Optimally.

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

omputil-1.0.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

omputil-1.0.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file omputil-1.0.0.tar.gz.

File metadata

  • Download URL: omputil-1.0.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for omputil-1.0.0.tar.gz
Algorithm Hash digest
SHA256 195cb147e1ebb3ff654cfb404cb9afccfe52d40de53476a48a0b47f481816dbb
MD5 06ded5aece4a01925ef44df1dd032de3
BLAKE2b-256 e0c43420a832c4acd5e8a27dab347d713b4b0480bdbcc8d032865985ba4ecd50

See more details on using hashes here.

File details

Details for the file omputil-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: omputil-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for omputil-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2671619fae4102cc15978dda7b7b4336669214f4997116ad3aa3ca0b93399e47
MD5 5b75441e01e28103f3dd26bdddca4c8a
BLAKE2b-256 3892e910698aff604f338ab5335cb932cf98f34c2a5ed568a6cfb43ed5b86aec

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