Skip to main content

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 in pyproject.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 metadata
  • pymechanics/ — package source
    • fluids/ — fluid-related helpers and properties
    • utils/ — 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.

Metadata

Release files for pymechanics 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pymechanics 0.2.0
File Size Uploaded
pymechanics-0.2.0.tar.gz 7.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pymechanics 0.2.0
File Interpreter ABI Platform
pymechanics-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.4 kB

Release files / pymechanics-0.2.0.tar.gz

Download URL pymechanics-0.2.0.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1f04f6cb8a81dde47b3cbedfbaa9a125f580c591f579943558a9a8ade76e94aa
BLAKE2b-256 checksum
How to use checksums
c8182737f85ddc616f515b977392c5c28b0452e92779060c30f3c0be0115bb45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release files / pymechanics-0.2.0-py3-none-any.whl

Download URL pymechanics-0.2.0-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fa38c9c72bfff044c809158a3b48a9e308c4f4a05c1caf70edf92b7f931eeb76
BLAKE2b-256 checksum
How to use checksums
498f1a50890558232495c8e0fe97ec6f07e330897504fbaed8661d371acba4be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page