physics-gabri432
A library containing several physics formulas and constants for making various calculations.
Project structure
- root
- .gitignore
- license (MIT)
- pyproject.toml
- README.md
- setup.py
- tests (folder)
- src/physics (folder)
Description
Body.py, a class to ease the use of some formulas;classical.py, collection of formulas from Cinematics and Dynamics fields;constants.py, collection of constants from all fields;electromagnetism.py, collection of formulas from Electromagnetism field;fluids.py, collection of formulas from Fluids field;gravity.py, collection of formulas from Gravitation field;mathem.py, collection of utility math formulas;relativity.py, collection of formulas from Relativity field;thermodynamics.py, collection of formulas from Thermodynamics field;
How to install it
pip install physics-gabri432
How to use the library
Use functions
import physics
from physics import classical #importing the classical module
print(classical.force(3,4)) #using a function from the classical module
Result
>>> (12, 'N') // Respectevely, the result and the measurement unit
Or create a custom object and use its methods
from physics.Body import Body #importing the Body class
earth = Body('Earth', 5.97e24, 0) #Initializing a variable 'earth' with its name, mass and speed.
print(earth) #Showing the string representation of the class.
print(earth.grav_field(6.371e6)) #using a function from the classical module
Result
>>> Name: Earth // The string representation of a Body object
Mass: 5.97e+24 kg
Speed: 0 m/s.
>>> (9.810360234523877, 'm/s^2') // Respectevely, the result and the measurement unit
Metadata
Release files for physics-gabri432 0.2.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 | Provenance | Actions |
|---|---|---|---|---|
| physics-gabri432-0.2.1.tar.gz | 3.2 kB | Without provenance | Details for physics-gabri432-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| physics_gabri432-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for physics_gabri432-0.2.1-py3-none-any.whl |
Total release size: 6.3 kB
Release files / physics-gabri432-0.2.1.tar.gz
| Download URL | physics-gabri432-0.2.1.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
860e2203f1bc359cb342179c167bcf322d0caf5c6079f54127befae14b724f0a
|
|
BLAKE2b-256 checksum How to use checksums |
cb9e237a60646593c373f88b15cbc64309c30e3b123f4863044e299fdb485811
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.0
|
Release files / physics_gabri432-0.2.1-py3-none-any.whl
| Download URL | physics_gabri432-0.2.1-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
348e817c95877deb1e2f226aeec339948c7623e375cbb5a198c86db8083931a4
|
|
BLAKE2b-256 checksum How to use checksums |
035006da19db8d1e3e218c297aa614361c3b31560d129c07389d0df29554f80e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.0
|
Security for physics-gabri432 0.2.1
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.