![](https://github.com/geddy11/sysloss/raw/main/docs/sysloss.svg)
<p align="center">
<a href="https://github.com/geddy11/sysloss/actions"><img alt="Actions Status" src="https://github.com/geddy11/sysloss/actions/workflows/ci-cd.yml/badge.svg"></a>
<a href="https://codecov.io/github/geddy11/sysloss"><img src="https://codecov.io/github/geddy11/sysloss/graph/badge.svg?token=9L1ZMN0UET"/></a>
<a><img alt="PyPI" src="https://img.shields.io/pypi/v/sysloss"></a>
<a href="https://github.com/psf/black"><img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>
<a href="https://www.conventionalcommits.org"><img alt="Conv. commits" src="https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196?logo=conventionalcommits&logoColor=white"></a>
<a href="https://doi.org/10.5281/zenodo.11086060"><img src="https://zenodo.org/badge/DOI/10.5281/zenodo.11086060.svg" alt="DOI"></a>
</p>
# sysLoss
sysLoss is a tool for analyzing system power and losses. From the smallest IoT sensor to large industrial installations. The tool is efficient and easy to use, the analysis result provides a detailed report on voltages, currents, power and efficiency for every component defined in the system. Output format is Pandas DataFrame: Create charts, plots and export to Excel and other formats.
## Installation
```bash
$ pip install sysloss
```
or
```bash
$ conda install conda-forge::sysloss
```
## Usage
```python
from sysloss.components import *
from sysloss.system import System
bts = System("Bluetooth sensor", Source("CR2032", vo=3.0, rs=10))
bts.add_comp("CR2032", comp=Converter("Buck 1.8V", vo=1.8, eff=0.87))
bts.add_comp("Buck 1.8V", comp=PLoad("MCU", pwr=13e-3))
bts.add_comp("CR2032", comp=Converter("Boost 5V", vo=5.0, eff=0.82))
bts.add_comp("Boost 5V", comp=RLoss("RC filter", rs=6.8))
bts.add_comp("RC filter", comp=ILoad("Sensor", ii=6e-3))
bts.tree()
```
```
Bluetooth sensor
└── CR2032
├── Boost 5V
│ └── RC filter
│ └── Sensor
└── Buck 1.8V
└── MCU
```
```python
bts.solve()
```
![result](https://github.com/geddy11/sysloss/raw/main/docs/bts.png)
## Documentation
The [documentation](https://sysloss.readthedocs.io/en/latest/Getting%20started.html) includes tutorials in the form of Jupyter notebooks, located in docs/nb.
## Contributing
Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.
## License
`sysloss` was created by Geir Drange. It is licensed under the terms of the MIT license.
Raw data
{
"_id": null,
"home_page": "https://github.com/geddy11/sysloss",
"name": "sysloss",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.10",
"maintainer_email": null,
"keywords": "system, power, loss, efficiency, energy, component, battery",
"author": "Geir Drange",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/6c/8a/8099efdfeb1138c3cca62b947a6a511e128fe9614b01291bd3583c33b94e/sysloss-1.3.0.tar.gz",
"platform": null,
"description": "\n![](https://github.com/geddy11/sysloss/raw/main/docs/sysloss.svg)\n\n<p align=\"center\">\n<a href=\"https://github.com/geddy11/sysloss/actions\"><img alt=\"Actions Status\" src=\"https://github.com/geddy11/sysloss/actions/workflows/ci-cd.yml/badge.svg\"></a>\n<a href=\"https://codecov.io/github/geddy11/sysloss\"><img src=\"https://codecov.io/github/geddy11/sysloss/graph/badge.svg?token=9L1ZMN0UET\"/></a>\n<a><img alt=\"PyPI\" src=\"https://img.shields.io/pypi/v/sysloss\"></a>\n<a href=\"https://github.com/psf/black\"><img alt=\"Code style: black\" src=\"https://img.shields.io/badge/code%20style-black-000000.svg\"></a>\n<a href=\"https://www.conventionalcommits.org\"><img alt=\"Conv. commits\" src=\"https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196?logo=conventionalcommits&logoColor=white\"></a>\n<a href=\"https://doi.org/10.5281/zenodo.11086060\"><img src=\"https://zenodo.org/badge/DOI/10.5281/zenodo.11086060.svg\" alt=\"DOI\"></a>\n</p>\n\n# sysLoss\nsysLoss is a tool for analyzing system power and losses. From the smallest IoT sensor to large industrial installations. The tool is efficient and easy to use, the analysis result provides a detailed report on voltages, currents, power and efficiency for every component defined in the system. Output format is Pandas DataFrame: Create charts, plots and export to Excel and other formats. \n\n## Installation\n```bash\n$ pip install sysloss\n```\nor\n```bash\n$ conda install conda-forge::sysloss\n```\n\n## Usage\n```python\nfrom sysloss.components import *\nfrom sysloss.system import System\n\nbts = System(\"Bluetooth sensor\", Source(\"CR2032\", vo=3.0, rs=10))\nbts.add_comp(\"CR2032\", comp=Converter(\"Buck 1.8V\", vo=1.8, eff=0.87))\nbts.add_comp(\"Buck 1.8V\", comp=PLoad(\"MCU\", pwr=13e-3))\nbts.add_comp(\"CR2032\", comp=Converter(\"Boost 5V\", vo=5.0, eff=0.82))\nbts.add_comp(\"Boost 5V\", comp=RLoss(\"RC filter\", rs=6.8))\nbts.add_comp(\"RC filter\", comp=ILoad(\"Sensor\", ii=6e-3))\nbts.tree()\n```\n```\nBluetooth sensor\n\u2514\u2500\u2500 CR2032\n \u251c\u2500\u2500 Boost 5V\n \u2502 \u2514\u2500\u2500 RC filter\n \u2502 \u2514\u2500\u2500 Sensor\n \u2514\u2500\u2500 Buck 1.8V\n \u2514\u2500\u2500 MCU\n```\n```python\nbts.solve()\n```\n![result](https://github.com/geddy11/sysloss/raw/main/docs/bts.png)\n\n## Documentation\nThe [documentation](https://sysloss.readthedocs.io/en/latest/Getting%20started.html) includes tutorials in the form of Jupyter notebooks, located in docs/nb.\n\n## Contributing\n\nInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.\n\n## License\n\n`sysloss` was created by Geir Drange. It is licensed under the terms of the MIT license.\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Power analysis of circuits and systems.",
"version": "1.3.0",
"project_urls": {
"Documentation": "https://sysloss.readthedocs.io/en/latest/Getting%20started.html#",
"Homepage": "https://github.com/geddy11/sysloss",
"Repository": "https://github.com/geddy11/sysloss"
},
"split_keywords": [
"system",
" power",
" loss",
" efficiency",
" energy",
" component",
" battery"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "2545edbc97e2362484afcb37a280106514ecf0a1fdb074c06491690e30e48d7c",
"md5": "bfb7cabcbf6011eace77234e5e811100",
"sha256": "350e70f6c32afa075d3dbc0e26c2dfff56a5148cb0eb3a029782fc76269ec43f"
},
"downloads": -1,
"filename": "sysloss-1.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "bfb7cabcbf6011eace77234e5e811100",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.10",
"size": 20400,
"upload_time": "2024-06-19T18:54:02",
"upload_time_iso_8601": "2024-06-19T18:54:02.188229Z",
"url": "https://files.pythonhosted.org/packages/25/45/edbc97e2362484afcb37a280106514ecf0a1fdb074c06491690e30e48d7c/sysloss-1.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6c8a8099efdfeb1138c3cca62b947a6a511e128fe9614b01291bd3583c33b94e",
"md5": "3f542cd16ec1c39aeab992009fe602e1",
"sha256": "32042df91d1d2fe7e66abd6ca1fe518a33dc1fc4d18be243d895415aadaef51c"
},
"downloads": -1,
"filename": "sysloss-1.3.0.tar.gz",
"has_sig": false,
"md5_digest": "3f542cd16ec1c39aeab992009fe602e1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.10",
"size": 20260,
"upload_time": "2024-06-19T18:54:04",
"upload_time_iso_8601": "2024-06-19T18:54:04.477085Z",
"url": "https://files.pythonhosted.org/packages/6c/8a/8099efdfeb1138c3cca62b947a6a511e128fe9614b01291bd3583c33b94e/sysloss-1.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-19 18:54:04",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "geddy11",
"github_project": "sysloss",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "sysloss"
}