ohmslaw


Nameohmslaw JSON
Version 2.1.2 PyPI version JSON
download
home_pageNone
Summarypython3 library for Ohms law.
upload_time2024-07-05 17:09:43
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
licenseGPLv2 license
keywords eletric ohms calc tools
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ohmslaw

![PyPI - Downloads](https://img.shields.io/pypi/dm/ohmslaw)
![PyPI - License](https://img.shields.io/pypi/l/ohmslaw)
[![Documentation Status](https://readthedocs.org/projects/ohmslaw/badge/?version=latest)](https://ohmslaw.readthedocs.io/en/latest/?badge=latest)
![GitHub Tag](https://img.shields.io/github/v/tag/JuanBindez/ohmslaw?include_prereleases&link=https%3A%2F%2Fgithub.com%2FJuanBindez%2Fohmslaw%2Ftags)
<a href="https://pypi.org/project/ohmslaw/"><img src="https://img.shields.io/pypi/v/ohmslaw" /></a>

### Python3 library for calculations using Ohm's law 

#### Ohms law is an important and fundamental rule to remember when working with resistors and electronics in general. It defines the relationship between the components’ current I in amps (A), voltage V in volts (V) and resistance R in ohms (Ω). Ohm’s law consists of three mathematical equations that explain the relationship between current, voltage and resistance. If you know two of these values.

## Quickstart:

### install

    pip install ohmslaw

### import

```python
from ohmslaw import Ohms
```

### you can calculate the resistors in series, passing the values ​​in the series() method

```python
>>> from ohmslaw import Ohms
>>>
>>> R1, R2, R3 = 280, 450, 100
>>>
>>> o = Ohms()
>>> series = o.series(R1, R2, R3)
>>>
>>> print("Resistors in series = ", series)
Resistors in series =  830
>>>
```


### current multiplied by resistance = voltage

```python
>>> o = Ohms()
>>> results = o.volts(I=12, R=4)
>>> 
>>> print(results)
48
>>> 

```

### voltage Divided by resistance = current

```python
>>> o = Ohms()
>>> results = o.current(V=12, R=4)
>>> 
>>> print(results)
3.0
>>> 
```

### voltage divided by current = resistance

```python
>>> o = Ohms()
>>> results = o.resistance(V=48, I=4)
>>> 
>>> print(results)
12.0
>>> 

```

### Watts

```python
>>> o = Ohms()
>>> results = o.watts(I=2, R=15)
>>> 
>>> print(results)
60
>>> 

```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "ohmslaw",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "eletric, ohms, calc, tools",
    "author": null,
    "author_email": "Juan Bindez <juanbindez780@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/06/16/5af7f5ba1c068aa43b16aae9acfbcf489b3e5beb48f2691182ecd993932e/ohmslaw-2.1.2.tar.gz",
    "platform": null,
    "description": "# ohmslaw\n\n![PyPI - Downloads](https://img.shields.io/pypi/dm/ohmslaw)\n![PyPI - License](https://img.shields.io/pypi/l/ohmslaw)\n[![Documentation Status](https://readthedocs.org/projects/ohmslaw/badge/?version=latest)](https://ohmslaw.readthedocs.io/en/latest/?badge=latest)\n![GitHub Tag](https://img.shields.io/github/v/tag/JuanBindez/ohmslaw?include_prereleases&link=https%3A%2F%2Fgithub.com%2FJuanBindez%2Fohmslaw%2Ftags)\n<a href=\"https://pypi.org/project/ohmslaw/\"><img src=\"https://img.shields.io/pypi/v/ohmslaw\" /></a>\n\n### Python3 library for calculations using Ohm's law \n\n#### Ohms law is an important and fundamental rule to remember when working with resistors and electronics in general. It defines the relationship between the components\u2019 current I in amps (A), voltage V in volts (V) and resistance R in ohms (\u03a9). Ohm\u2019s law consists of three mathematical equations that explain the relationship between current, voltage and resistance. If you know two of these values.\n\n## Quickstart:\n\n### install\n\n    pip install ohmslaw\n\n### import\n\n```python\nfrom ohmslaw import Ohms\n```\n\n### you can calculate the resistors in series, passing the values \u200b\u200bin the series() method\n\n```python\n>>> from ohmslaw import Ohms\n>>>\n>>> R1, R2, R3 = 280, 450, 100\n>>>\n>>> o = Ohms()\n>>> series = o.series(R1, R2, R3)\n>>>\n>>> print(\"Resistors in series = \", series)\nResistors in series =  830\n>>>\n```\n\n\n### current multiplied by resistance = voltage\n\n```python\n>>> o = Ohms()\n>>> results = o.volts(I=12, R=4)\n>>> \n>>> print(results)\n48\n>>> \n\n```\n\n### voltage Divided by resistance = current\n\n```python\n>>> o = Ohms()\n>>> results = o.current(V=12, R=4)\n>>> \n>>> print(results)\n3.0\n>>> \n```\n\n### voltage divided by current = resistance\n\n```python\n>>> o = Ohms()\n>>> results = o.resistance(V=48, I=4)\n>>> \n>>> print(results)\n12.0\n>>> \n\n```\n\n### Watts\n\n```python\n>>> o = Ohms()\n>>> results = o.watts(I=2, R=15)\n>>> \n>>> print(results)\n60\n>>> \n\n```\n",
    "bugtrack_url": null,
    "license": "GPLv2 license",
    "summary": "python3 library for Ohms law.",
    "version": "2.1.2",
    "project_urls": {
        "Bug Reports": "https://github.com/juanbindez/ohmslaw/issues",
        "Homepage": "https://github.com/juanbindez/ohmslaw",
        "Read the Docs": "http://ohmslaw.readthedocs.io/"
    },
    "split_keywords": [
        "eletric",
        " ohms",
        " calc",
        " tools"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c95412d017b884170f2a79df489db03dc9d609836bc22ddfd1d8781e81837453",
                "md5": "c2be7cd95ac97b2d190c93b078021ced",
                "sha256": "5d93b48cd6393ac74f271f66ed329ec478c9681c501e6211e93149ccbc3401aa"
            },
            "downloads": -1,
            "filename": "ohmslaw-2.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c2be7cd95ac97b2d190c93b078021ced",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 11625,
            "upload_time": "2024-07-05T17:09:41",
            "upload_time_iso_8601": "2024-07-05T17:09:41.542783Z",
            "url": "https://files.pythonhosted.org/packages/c9/54/12d017b884170f2a79df489db03dc9d609836bc22ddfd1d8781e81837453/ohmslaw-2.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "06165af7f5ba1c068aa43b16aae9acfbcf489b3e5beb48f2691182ecd993932e",
                "md5": "f0b30c2125e66ba2f07c0526a8de49b5",
                "sha256": "131f5e5836069eeb4a9543889e4d0552c7f37e944210c1ac5c75e33eec770d8d"
            },
            "downloads": -1,
            "filename": "ohmslaw-2.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "f0b30c2125e66ba2f07c0526a8de49b5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 10805,
            "upload_time": "2024-07-05T17:09:43",
            "upload_time_iso_8601": "2024-07-05T17:09:43.174141Z",
            "url": "https://files.pythonhosted.org/packages/06/16/5af7f5ba1c068aa43b16aae9acfbcf489b3e5beb48f2691182ecd993932e/ohmslaw-2.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-05 17:09:43",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "juanbindez",
    "github_project": "ohmslaw",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "ohmslaw"
}
        
Elapsed time: 0.36951s