Skip to main content

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.

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request
  4. Report issues or suggest enhancements

License

MIT License - see LICENSE file for details.

Metadata

Release files for naturedynamics 1.2

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

Source distribution (sdist)

Source distribution for naturedynamics 1.2
File Size Uploaded Provenance Actions
naturedynamics-1.2.tar.gz 139.4 kB Without provenance Details for naturedynamics-1.2.tar.gz

Built distribution (wheel)

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

Total release size: 318.6 kB

Release files / naturedynamics-1.2.tar.gz

Download URL naturedynamics-1.2.tar.gz
Size 139.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e2163c1473b6c538f33770736e9467bc00e0eb3b6dfca5cc5f6fe57c4ba47b6f
BLAKE2b-256 checksum
How to use checksums
ea03e061dc7c0222a1698f91d60e256800c4270d9cf7abf6db9a81cc927a34dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / naturedynamics-1.2-py3-none-any.whl

Download URL naturedynamics-1.2-py3-none-any.whl
Size 179.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
831a7379b4bfd29375722f0ed5fbcbc39ae3d429c9e5e146972876e53009626f
BLAKE2b-256 checksum
How to use checksums
e7c97ba1c4e284077cb66d64b284966d415ae7b2dda0b76d1016bb22771b60b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for naturedynamics 1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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