A Python library containing common physics utilities for education and quick calculations.
Project description
VectoriumPy
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 vectoriumPy
Install editable from source:
python -m venv .venv
.\.venv\Scripts\activate
pip install -e .
Usage example:
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.py
Run tests locally:
python -m pip install -r requirements-dev.txt
python -m pytest -q
Project layout
- 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
Contributing
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.
Publishing
This project uses GitHub Actions to run CI. To publish to PyPI create a GitHub release (or push a tag v*) and add PYPI_API_TOKEN to repository secrets.
License
This project is licensed under the MIT License — see LICENSE for details.
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 vectoriumpy-0.1.0.tar.gz.
File metadata
- Download URL: vectoriumpy-0.1.0.tar.gz
- Upload date:
- Size: 22.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00d54388464b047607c5560f90a0161623827afd5b01558407183b697c9d1c75
|
|
| MD5 |
f51c5e98ccd3a98c3390827e4e4b3d8c
|
|
| BLAKE2b-256 |
9f2d08310d3077665a4edfd72e644462037062a95e6bda53c654728f43123325
|
File details
Details for the file vectoriumpy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: vectoriumpy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 29.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
357b45ce3c5ec4176c41758db68a58bbcc5d4608d0e97b0094c58f12060bfc08
|
|
| MD5 |
31cf2579b62eb4e3b57482fda0ef4b93
|
|
| BLAKE2b-256 |
1ce2fe11d73fd6453e10dc8ffe499e91f1d5422e43c95981a4b8bf1191234f28
|