physics-gabri432


Namephysics-gabri432 JSON
Version 0.2.1 PyPI version JSON
download
home_pagehttps://github.com/Gabri432/python-physics
SummaryA package containing Physics formulas and constants for various calculations.
upload_time2023-11-05 23:43:31
maintainer
docs_urlNone
authorGabriele Gatti
requires_python>=3.12
licenseMIT license
keywords physics library lib relativity thermodynamics classical gravity electromagnetism fluids
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## physics-gabri432
![GitHub](https://img.shields.io/github/license/Gabri432/python-physics)

A library containing several physics formulas and constants for making various calculations.

## Project structure
- root
    - .gitignore
    - [license (MIT)](https://github.com/Gabri432/python-physics/blob/master/license)
    - pyproject.toml
    - README.md
    - setup.py
    - tests (folder)
    - src/physics (folder)
        - __init__.py
        - [Body.py](https://github.com/Gabri432/python-physics/blob/master/src/physics/Body.py)
        - [classical.py](https://github.com/Gabri432/python-physics/blob/master/src/physics/classical.py)
        - [constants.py](https://github.com/Gabri432/python-physics/blob/master/src/physics/constants.py)
        - [mathem.py](https://github.com/Gabri432/python-physics/blob/master/physics/mathem.py)
        - [thermodynamics.py](https://github.com/Gabri432/python-physics/blob/master/src/physics/thermodynamics.py)
        - [electromagnetism.py](https://github.com/Gabri432/python-physics/blob/master/src/physics/electromagnetism.py)
        - [gravity.py](https://github.com/Gabri432/python-physics/blob/master/src/physics/gravity.py)
        - [fluids.py](https://github.com/Gabri432/python-physics/blob/master/src/physics/fluids.py)
        - [relativity.py](https://github.com/Gabri432/python-physics/blob/master/src/physics/relativity.py)

## 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
```python
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
```python
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
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Gabri432/python-physics",
    "name": "physics-gabri432",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.12",
    "maintainer_email": "Gabriele Gatti <gabrielegatti432@gmail.com>",
    "keywords": "physics,library,lib,relativity,thermodynamics,classical,gravity,electromagnetism,fluids",
    "author": "Gabriele Gatti",
    "author_email": "Gabriele Gatti <gabrielegatti432@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/cb/9e/237a60646593c373f88b15cbc64309c30e3b123f4863044e299fdb485811/physics-gabri432-0.2.1.tar.gz",
    "platform": null,
    "description": "## physics-gabri432\r\n![GitHub](https://img.shields.io/github/license/Gabri432/python-physics)\r\n\r\nA library containing several physics formulas and constants for making various calculations.\r\n\r\n## Project structure\r\n- root\r\n    - .gitignore\r\n    - [license (MIT)](https://github.com/Gabri432/python-physics/blob/master/license)\r\n    - pyproject.toml\r\n    - README.md\r\n    - setup.py\r\n    - tests (folder)\r\n    - src/physics (folder)\r\n        - __init__.py\r\n        - [Body.py](https://github.com/Gabri432/python-physics/blob/master/src/physics/Body.py)\r\n        - [classical.py](https://github.com/Gabri432/python-physics/blob/master/src/physics/classical.py)\r\n        - [constants.py](https://github.com/Gabri432/python-physics/blob/master/src/physics/constants.py)\r\n        - [mathem.py](https://github.com/Gabri432/python-physics/blob/master/physics/mathem.py)\r\n        - [thermodynamics.py](https://github.com/Gabri432/python-physics/blob/master/src/physics/thermodynamics.py)\r\n        - [electromagnetism.py](https://github.com/Gabri432/python-physics/blob/master/src/physics/electromagnetism.py)\r\n        - [gravity.py](https://github.com/Gabri432/python-physics/blob/master/src/physics/gravity.py)\r\n        - [fluids.py](https://github.com/Gabri432/python-physics/blob/master/src/physics/fluids.py)\r\n        - [relativity.py](https://github.com/Gabri432/python-physics/blob/master/src/physics/relativity.py)\r\n\r\n## Description\r\n- `Body.py`, a class to ease the use of some formulas;\r\n- `classical.py`, collection of formulas from Cinematics and Dynamics fields;\r\n- `constants.py`, collection of constants from all fields;\r\n- `electromagnetism.py`, collection of formulas from Electromagnetism field;\r\n- `fluids.py`, collection of formulas from Fluids field;\r\n- `gravity.py`, collection of formulas from Gravitation field;\r\n- `mathem.py`, collection of utility math formulas;\r\n- `relativity.py`, collection of formulas from Relativity field;\r\n- `thermodynamics.py`, collection of formulas from Thermodynamics field;\r\n\r\n## How to install it\r\n```\r\npip install physics-gabri432\r\n```\r\n\r\n\r\n## How to use the library\r\n\r\n### Use functions\r\n```python\r\nimport physics\r\nfrom physics import classical  #importing the classical module\r\nprint(classical.force(3,4))    #using a function from the classical module\r\n```\r\n### Result\r\n```\r\n>>> (12, 'N') // Respectevely, the result and the measurement unit\r\n```\r\n\r\n### Or create a custom object and use its methods\r\n```python\r\nfrom physics.Body import Body       #importing the Body class\r\nearth = Body('Earth', 5.97e24, 0)   #Initializing a variable 'earth' with its name, mass and speed.\r\nprint(earth)                        #Showing the string representation of the class.\r\nprint(earth.grav_field(6.371e6))    #using a function from the classical module\r\n```\r\n### Result\r\n```\r\n>>> Name: Earth         // The string representation of a Body object\r\n    Mass: 5.97e+24 kg\r\n    Speed: 0 m/s.\r\n>>> (9.810360234523877, 'm/s^2') // Respectevely, the result and the measurement unit\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT license",
    "summary": "A package containing Physics formulas and constants for various calculations.",
    "version": "0.2.1",
    "project_urls": {
        "Github": "https://github.com/Gabri432/python-physics",
        "Github Issues": "https://github.com/Gabri432/python-physics/issues",
        "Homepage": "https://github.com/Gabri432/python-physics"
    },
    "split_keywords": [
        "physics",
        "library",
        "lib",
        "relativity",
        "thermodynamics",
        "classical",
        "gravity",
        "electromagnetism",
        "fluids"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "035006da19db8d1e3e218c297aa614361c3b31560d129c07389d0df29554f80e",
                "md5": "946d797d325d2c9cfb1236fdde58a165",
                "sha256": "348e817c95877deb1e2f226aeec339948c7623e375cbb5a198c86db8083931a4"
            },
            "downloads": -1,
            "filename": "physics_gabri432-0.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "946d797d325d2c9cfb1236fdde58a165",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.12",
            "size": 3071,
            "upload_time": "2023-11-05T23:43:29",
            "upload_time_iso_8601": "2023-11-05T23:43:29.569881Z",
            "url": "https://files.pythonhosted.org/packages/03/50/06da19db8d1e3e218c297aa614361c3b31560d129c07389d0df29554f80e/physics_gabri432-0.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cb9e237a60646593c373f88b15cbc64309c30e3b123f4863044e299fdb485811",
                "md5": "57b2a0550116ef56bd66310eb9ba56e1",
                "sha256": "860e2203f1bc359cb342179c167bcf322d0caf5c6079f54127befae14b724f0a"
            },
            "downloads": -1,
            "filename": "physics-gabri432-0.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "57b2a0550116ef56bd66310eb9ba56e1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.12",
            "size": 3224,
            "upload_time": "2023-11-05T23:43:31",
            "upload_time_iso_8601": "2023-11-05T23:43:31.443835Z",
            "url": "https://files.pythonhosted.org/packages/cb/9e/237a60646593c373f88b15cbc64309c30e3b123f4863044e299fdb485811/physics-gabri432-0.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-05 23:43:31",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Gabri432",
    "github_project": "python-physics",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "physics-gabri432"
}
        
Elapsed time: 1.11523s