Comprehensive Python suite: Math, Physics, Chemistry, Computer Science, Algorithms, String & LaTeX utilities, GUI tools (link checker, notepad, slide extractor)
Project description
Priyam: A Comprehensive Python Package for Mathematics, Science, and Utilities
Priyam is an advanced open-source Python package designed to streamline and supercharge mathematical, scientific, algorithmic, and utility tasks. With comprehensive modules for mathematics, physics, chemistry, computer science, LaTeX generation, and daily utilities, Priyam is ideal for students, educators, researchers, and developers.
Table of Contents
- Features
- Modules & Capabilities
- Installation
- Quick Usage Examples
- Applications (GUI Tools)
- LaTeX/Pretty Printing
- Documentation
- Contributing
- License & Credits
- Support
Features
- Algebra (linear, quadratic, cubic equations, symbolic math, calculus)
- Probability, statistics, number theory, and matrices
- Physics (kinematics, dynamics, thermodynamics, electromagnetism, optics)
- Chemistry helpers (molar mass, stoichiometry, pH, gas laws, equilibrium)
- Computer science (classic algorithms, sorting, graph theory, DP)
- String utilities (title case, slugs, reverse words)
- LaTeX utilities (matrices, equations, fractions)
- Built-in Desktop Utilities:
- Broken Link Checker (with JS rendering)
- Notepad clone (dark-mode, multi-tab)
- Slide extractor from YouTube videos (OCR, PDF export)
- Date/time, timezone converters, working days calculator
Modules & Capabilities
1. pmath: Advanced Mathematics
- Equation solvers (linear, quadratic, cubic, symbolic)
- Calculus (differentiation, integration, Taylor/series expansion, limits)
- Probability and statistics (mean, median, mode, variance, regression, binomial)
- Number theory (primes, prime factorization, perfect numbers, GCD, LCM)
- Linear algebra (matrices, determinants, eigenvalues/solutions)
- ODEs and systems solver
- Utility tools (Newton-Raphson, time zones, working days, countdown timer)
2. physics: Physics Formulas and Simulators
- Kinematics, dynamics, projectiles, forces, energy, momentum
- Wave/optics: Snell's law, wave speed, refraction
- Electromagnetism: Coulomb’s law, electric/magnetic fields, Lorentz force
- Thermodynamics: ideal gas, internal energy, work, heat, first law
3. chemistry: Chemistry Problem Solvers
- Compute molar mass, convert grams-to-moles, moles-to-grams
- Ideal gas volume calculations
- Acid-base pH, buffer calculations (Henderson-Hasselbalch)
- Equilibrium for reactions: extent-of-reaction, numeric solver
4. cs: Computer Science Algorithms
- Classic graph algorithms (BFS, DFS, Dijkstra, topo-sort)
- Searching and sorting: binary search, quicksort, mergesort
- DP patterns: knapsack, longest subsequence, edit distance, LIS
- Greedy patterns: activity selection, interval scheduling
- Complexity helpers: Big-O lookups
5. string_utils: String Utilities
- Smart title-casing (with custom exceptions)
- Reverse word order
- Slugify (convert strings for URLs)
6. latex_support: LaTeX Helpers
- Pretty-print matrices, equations, fractions for papers and reports
7. Applications (Desktop GUI in apps and external):
- linkchecker: Graphical broken link checker (JS/CSS support, bulk export)
- notepad: Multi-tab, dark-mode modern notepad/editor
- slide_extract: Extracts slides from YouTube (OCR, similarity), batch PDF export
Installation
pip install priyam
# or install dependencies for full functionality including GUI apps and slide extraction:
pip install -r requirements.txt
Quick Usage Examples
from priyam import pmath, physics, chemistry, cs, string_utils
# Math: Solve quadratic
roots = pmath.MathSolver.solve_quadratic(1, -3, 2) # (2.0, 1.0)
# Physics: projectile range
r = physics.ProjectileMotion.range(10, 0.5)
# Chemistry: Molar mass
mm = chemistry.ChemistrySolver.molar_mass('H2SO4')
# CS: Dijkstra's shortest path
graph = {'A': [('B', 1), ('C', 5)], 'B': [('C', 2)], 'C': []}
dist = cs.GraphAlgorithms.dijkstra(graph, 'A')
# String utils: Slugify
slug = string_utils.slugify('Hello World!')
Applications (GUI Tools)
- Broken Link Checker
- GUI:
python -m priyam.linkchecker - JS/React support, export/bulk, dark mode
- GUI:
- Advanced Notepad
- GUI:
python -m priyam.notepad - Features: Tabs, dark mode, autosave, find/replace, formatting
- GUI:
- Slide Extractor
- GUI:
python -m priyam.slide_extract - Extract slides from YouTube lectures, convert to PDF (requires dependencies)
- GUI:
LaTeX/Pretty Printing
Generate LaTeX for fractions, matrices, and equations for reports:
from priyam import latex_support as ls
print(ls.latex_fraction(1, 2)) # \frac{1}{2}
Documentation
Full API documentation, usage tutorials, and examples: https://github.com/shreyazh/priyam/docs
Contributing
We welcome contributions! Fork, submit pull requests, and file issues at: https://github.com/shreyazh/priyam
License & Credits
Priyam is MIT licensed. Developed by The Priyam Team. Major contributions by @justshreyash. Initial author: Shreyash Srivastva
Support
Issues, questions, and community: https://github.com/shreyazh/priyam/issues
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file priyam-0.0.1.tar.gz.
File metadata
- Download URL: priyam-0.0.1.tar.gz
- Upload date:
- Size: 74.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8daa3969915c281d45aea432fc82cbb854d95a41198dba396f8f1612dfc296de
|
|
| MD5 |
22046daef137070f21c3bfb5d30b3e88
|
|
| BLAKE2b-256 |
1accbcb9331ff1cd569ac0046665e6c0add3ad257e641717bbe0cb4a484cb86a
|
File details
Details for the file priyam-0.0.1-py3-none-any.whl.
File metadata
- Download URL: priyam-0.0.1-py3-none-any.whl
- Upload date:
- Size: 62.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd8a12f6f1a5fa7877974da575934ef58a8f99c477b3e77a1ca7488ea7483447
|
|
| MD5 |
685eac1275b2cc65e2d8459ecfc83679
|
|
| BLAKE2b-256 |
b635030e0ccd01c5c3556e9068b90f2394efe16228328da8124d2407be156f18
|