A Python library for classical mechanical engineering calculations
Project description
pymechanics
A small Python library for classical mechanical engineering calculations. Provides utilities for fluid properties and common constants useful in engineering analyses.
Features
- Fluid property helpers (in
pymechanics.fluids) - Common engineering constants (in
pymechanics.utils)
Requirements
- Python 3.9+
- Runtime dependencies:
numpy,scipy(declared inpyproject.toml)
Installation
Install from the project root:
python -m pip install .
# or for editable install while developing
python -m pip install -e .
To build distribution artifacts:
python -m build
Quick usage
Import modules from the package and call the provided helpers. Function names are defined in the source modules under pymechanics/.
from pymechanics.fluids import properties
# Example (replace with real function names from `properties.py`):
# result = properties.some_property_function(args)
NB: All calculations are done using S.I. units
Project layout
pyproject.toml— project and build metadatapymechanics/— package sourcefluids/— fluid-related helpers and propertiesutils/— shared constants and utilities
tests/— unit tests
Running tests
Install test requirements (if any), then run:
pip install -e .
pytest -q
Contributing
Contributions are welcome. Open an issue to discuss changes or submit a pull request with tests for new functionality.
License
MIT — see pyproject.toml for author and license metadata.
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 pymechanics-0.2.0.tar.gz.
File metadata
- Download URL: pymechanics-0.2.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f04f6cb8a81dde47b3cbedfbaa9a125f580c591f579943558a9a8ade76e94aa
|
|
| MD5 |
c41706daf4c545ca2dcbea8709f91327
|
|
| BLAKE2b-256 |
c8182737f85ddc616f515b977392c5c28b0452e92779060c30f3c0be0115bb45
|
File details
Details for the file pymechanics-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pymechanics-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa38c9c72bfff044c809158a3b48a9e308c4f4a05c1caf70edf92b7f931eeb76
|
|
| MD5 |
7a8b4a7735ceddba0a3b57e5f9eb0a65
|
|
| BLAKE2b-256 |
498f1a50890558232495c8e0fe97ec6f07e330897504fbaed8661d371acba4be
|