VectoriumPy is a lightweight, modular Python library of common physics formulas, helpers, and small simulation utilities for education and quick calculations.
Goals: clear, well-tested helpers for kinematics, forces, energy, electricity, waves, magnetism, and thermodynamics.
Quick start
Install from PyPI (when published):
pip install vectoriumPyInstall editable from source:
python -m venv .venv
.\.venv\Scripts\activate
pip install -e .from vectoriumPy.Kinematics.motion import avg_velocity
v = avg_velocity(50, 10) # average velocity = displacement / time
print(v)Run the examples:
python src/vectoriumPy/examples/examples.pyRun tests locally:
python -m pip install -r requirements-dev.txt
python -m pytest -q- src/vectoriumPy/
Kinematics/— motion and projectile utilitiesForce/— force-related formulasEnergy/— energy helpersElectricity/— circuits and electric-field helpersWaves/— light and sound calculationsMagnetism/— magnetic field helpersThermodynamics/— thermodynamics utilitiesexamples/— runnable examplesTests/— unit tests
Contributions are welcome. Suggested workflow:
- Fork the repo and create a feature branch.
- Add tests for new functions under src/vectoriumPy/Tests.
- Open a PR with a clear description of changes.
This project is licensed under the MIT License — see LICENSE for details.
