naturedynamics — A Comprehensive Physics Library in Python
naturedynamics is a Python library that offers an extensive collection of physical constants, equations, and formulas. It is a fork of https://github.com/reumer06/fphysics. @reumer06 did an amazing job in compiling an exhaustive collection of laws and formulas. This was exactly what I envisioned too, so I am very grateful to build on that and extend it in all kind of directions.
Key Features
Constants Database
Includes essential physical constants — SI base units, quantum constants, astronomical parameters, and more.
Modular Formula Collections
Separate modules for mechanics, thermodynamics, electromagnetism, atomic physics, nuclear physics, relativity, statistical mechanics, and beyond.
Unit Conversion
Convert seamlessly between SI, CGS, and natural units.
Built for Learning and Worldbuilding
Perfect for integration into scientific calculators, simulations and teaching aids.
Quick Start
import naturedynamics as nd
from naturedynamics.relativity.general import schwarzschild_radius
from naturedynamics.thermodynamics.heat_engines import carnot_efficiency
# Access fundamental constants
print(nd.constants.SPEED_OF_LIGHT)
# Calculate Schwarzschild radius
print(schwarzschild_radius(10))
#Calulate the Carnot Efficiency
print(carnot_efficiency(500, 300))
Contributing
I welcome all contributions — from adding new formulas to refining documentation.
- Fork the repository
- Create a feature branch
- Submit a pull request
- Report issues or suggest enhancements
License
MIT License - see LICENSE file for details.
Release files for naturedynamics 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| naturedynamics-1.1.tar.gz | 137.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| naturedynamics-1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 314.6 kB
Release files / naturedynamics-1.1.tar.gz
| Download URL | naturedynamics-1.1.tar.gz |
|---|---|
| Size | 137.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f2bcbccccc5184cf48c924201230a66dfa4debf575a3f89ed6f0f4fd078fd8c
|
|
BLAKE2b-256 checksum How to use checksums |
5dbd249172063fabf64d23ca0a19eacdf38d0eff7c785d060b25a04bf2deb001
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / naturedynamics-1.1-py3-none-any.whl
| Download URL | naturedynamics-1.1-py3-none-any.whl |
|---|---|
| Size | 177.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5f71a6a6b9cd1c637725b5bc040930b733d5c1b5aced88db1c252a5f3a79f3b4
|
|
BLAKE2b-256 checksum How to use checksums |
cbd81cd1fef7aa158d9f8877c82ef46918d0a3ff8b539093d285438dfddda92a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|