Skip to main content

A Python library containing common physics utilities for education and quick calculations.

Project description

VectoriumPy

License Build

Vectorium logo

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 utilities
    • Force/ — force-related formulas
    • Energy/ — energy helpers
    • Electricity/ — circuits and electric-field helpers
    • Waves/ — light and sound calculations
    • Magnetism/ — magnetic field helpers
    • Thermodynamics/ — thermodynamics utilities
    • examples/ — runnable examples
    • Tests/ — unit tests

Contributing

Contributions are welcome. Suggested workflow:

  1. Fork the repo and create a feature branch.
  2. Add tests for new functions under src/vectoriumPy/Tests.
  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vectoriumpy-0.1.0.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

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

vectoriumpy-0.1.0-py3-none-any.whl (29.3 kB view details)

Uploaded Python 3

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

Hashes for vectoriumpy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 00d54388464b047607c5560f90a0161623827afd5b01558407183b697c9d1c75
MD5 f51c5e98ccd3a98c3390827e4e4b3d8c
BLAKE2b-256 9f2d08310d3077665a4edfd72e644462037062a95e6bda53c654728f43123325

See more details on using hashes here.

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

Hashes for vectoriumpy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 357b45ce3c5ec4176c41758db68a58bbcc5d4608d0e97b0094c58f12060bfc08
MD5 31cf2579b62eb4e3b57482fda0ef4b93
BLAKE2b-256 1ce2fe11d73fd6453e10dc8ffe499e91f1d5422e43c95981a4b8bf1191234f28

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