myprofiler


Namemyprofiler JSON
Version 0.0.1 PyPI version JSON
download
home_page
SummaryA minimal profiler for calculating memory usage and time
upload_time2023-06-26 15:48:58
maintainer
docs_urlNone
author
requires_python>=3.10
licenseMIT License Copyright (c) 2023 amirbahador Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords profiler memory usage python performance
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h1 align="center">
  <br>
  <a href="https://amirbahador-hub.github.io/myprofiler/"><img src="https://raw.githubusercontent.com/amirbahador-hub/myprofiler/main/small_logo.png" alt="MyProfiler" width="200"></a>
</h1>

<h4 align="center">A minimal profiler for calculating total execution time and memory usage</h4>

<p align="center">
  <a href="https://img.shields.io/badge/test-pass-green">
    <img src="https://img.shields.io/badge/test-pass-brightgreen"
         alt="TestBadge">
  </a>
  <a href="https://img.shields.io/badge/python-3.10-blue">
    <img src="https://img.shields.io/badge/python-3.10-blue"
         alt="PythonVersionBadge">
  </a>


</p>


<p align="center">
  <a href="#installation">Installation</a> •
  <a href="#usage">Usage</a> •
</p>

## Installation
```bash
pip install myprofiler
```

## Usage
```python
from myprofiler import profile

@profile
def main():
    lt = []
    for i in range(0, 100000):
        lt.append(i)

if __name__ == "__main__":
    main()
```
output:
```bash 
========================================
---- Meta Data ----
Function: main
Method: None
---- Memory Usage ----
Current memory usage:	 936.0B
Peak memory usage:	 3.4MiB
---- Time ----
Total Time:	 0:00:00.039728
seconds:	 0
microseconds:	 39728
========================================
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "myprofiler",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "",
    "keywords": "profiler,memory usage,python performance",
    "author": "",
    "author_email": "AmirBahador Bahadori <amirbahador.pv@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/54/e3/42b0f6b1aaacc9e2032bbeb4a4424ab9b7bf34ac6fe8ee2f783ac1c4addb/myprofiler-0.0.1.tar.gz",
    "platform": null,
    "description": "<h1 align=\"center\">\n  <br>\n  <a href=\"https://amirbahador-hub.github.io/myprofiler/\"><img src=\"https://raw.githubusercontent.com/amirbahador-hub/myprofiler/main/small_logo.png\" alt=\"MyProfiler\" width=\"200\"></a>\n</h1>\n\n<h4 align=\"center\">A minimal profiler for calculating total execution time and memory usage</h4>\n\n<p align=\"center\">\n  <a href=\"https://img.shields.io/badge/test-pass-green\">\n    <img src=\"https://img.shields.io/badge/test-pass-brightgreen\"\n         alt=\"TestBadge\">\n  </a>\n  <a href=\"https://img.shields.io/badge/python-3.10-blue\">\n    <img src=\"https://img.shields.io/badge/python-3.10-blue\"\n         alt=\"PythonVersionBadge\">\n  </a>\n\n\n</p>\n\n\n<p align=\"center\">\n  <a href=\"#installation\">Installation</a> \u2022\n  <a href=\"#usage\">Usage</a> \u2022\n</p>\n\n## Installation\n```bash\npip install myprofiler\n```\n\n## Usage\n```python\nfrom myprofiler import profile\n\n@profile\ndef main():\n    lt = []\n    for i in range(0, 100000):\n        lt.append(i)\n\nif __name__ == \"__main__\":\n    main()\n```\noutput:\n```bash \n========================================\n---- Meta Data ----\nFunction: main\nMethod: None\n---- Memory Usage ----\nCurrent memory usage:\t 936.0B\nPeak memory usage:\t 3.4MiB\n---- Time ----\nTotal Time:\t 0:00:00.039728\nseconds:\t 0\nmicroseconds:\t 39728\n========================================\n```\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2023 amirbahador  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "A minimal profiler for calculating memory usage and time",
    "version": "0.0.1",
    "project_urls": {
        "repository": "https://github.com/amirbahador-hub/myprofiler"
    },
    "split_keywords": [
        "profiler",
        "memory usage",
        "python performance"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ab2419bd3f72c8c2ca06f1fe3bb78bca8cc42e5e2b38b22c8502a1596e54fa85",
                "md5": "d6a64139dbbb220849ca0c2a09d0cd2a",
                "sha256": "5b0ac9f6829353c62f3efbfe00a7062ed900dfc6d117acbff49eef3876c35907"
            },
            "downloads": -1,
            "filename": "myprofiler-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d6a64139dbbb220849ca0c2a09d0cd2a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 3926,
            "upload_time": "2023-06-26T15:48:57",
            "upload_time_iso_8601": "2023-06-26T15:48:57.145078Z",
            "url": "https://files.pythonhosted.org/packages/ab/24/19bd3f72c8c2ca06f1fe3bb78bca8cc42e5e2b38b22c8502a1596e54fa85/myprofiler-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "54e342b0f6b1aaacc9e2032bbeb4a4424ab9b7bf34ac6fe8ee2f783ac1c4addb",
                "md5": "929de42867a80b5fb0742e807a14cada",
                "sha256": "84b6f708509a5948a66bc077138d70911e41a89c13cc9b155bfa0e02b328338c"
            },
            "downloads": -1,
            "filename": "myprofiler-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "929de42867a80b5fb0742e807a14cada",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 3359,
            "upload_time": "2023-06-26T15:48:58",
            "upload_time_iso_8601": "2023-06-26T15:48:58.977492Z",
            "url": "https://files.pythonhosted.org/packages/54/e3/42b0f6b1aaacc9e2032bbeb4a4424ab9b7bf34ac6fe8ee2f783ac1c4addb/myprofiler-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-26 15:48:58",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "amirbahador-hub",
    "github_project": "myprofiler",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "myprofiler"
}
        
Elapsed time: 0.08047s