{ "info": { "author": "TU Wien", "author_email": "christoph.paulik@geo.tuwien.ac.at", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Programming Language :: Python" ], "description": "=====\nmemon\n=====\n\nVery simple memory monitor that records the percent of memory used. This can be\nuseful if you want to dump data to disk if memory consumptions becomes too high.\n\nDescription and Usage\n=====================\n\nThe MemoryMonitor class takes an interval and a memory_limit in percent.\n\nTo start recording memory usage:\n\n.. code::\n\n from memon import MemoryMonitor\n import time\n memmon = MemoryMonitor(interval=0.1)\n memmon.start()\n memmon.start_recording()\n time.sleep(1)\n memmon.stop_recording()\n assert len(memmon.history) == 10\n\nIf historical data is recorded this can be used to query if memory usage will\nkeep under the memory limit. This is done by calling:\n\n.. code::\n\n memmon.memory_available()\n\nThis function makes some assumptions:\n\n- The Python process is the main memory user on the system.\n- Any big fluctuations in memory usage are because of memory\n allocation/deallocation of the process running the memon.\n- We want to fit the average fluctuation that occurs during processing under the\n memory limit.\n\nBecause of these assumptions the ``memory_available()`` function calculates:\n\n.. code::\n\n delta = max(history) - min(history)\n level = mean(history) + delta\n level < memory_limit\n\nNote\n====\n\nThis project has been set up using PyScaffold 2.5.7. For details and usage\ninformation on PyScaffold see http://pyscaffold.readthedocs.org/.\n\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://...", "keywords": "", "license": "BSD-3 Clause", "maintainer": "", "maintainer_email": "", "name": "memon", "package_url": "https://pypi.org/project/memon/", "platform": "", "project_url": "https://pypi.org/project/memon/", "project_urls": { "Homepage": "http://..." }, "release_url": "https://pypi.org/project/memon/0.1/", "requires_dist": [ "psutil" ], "requires_python": "", "summary": "Simple Memory Monitor that helps to decide if it is time to dump data to disk.", "version": "0.1" }, "last_serial": 5149767, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "6da8d6b6b2089ab31fcaa6900fb7d7d1", "sha256": "dd40cc1c922d39953efbc71dbd95b9282dbc89ea308ed1dd715da2cfbdaa3e56" }, "downloads": -1, "filename": "memon-0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6da8d6b6b2089ab31fcaa6900fb7d7d1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5427, "upload_time": "2017-03-29T14:36:41", "url": "https://files.pythonhosted.org/packages/3f/ba/584cb98878479d39a08d1ef042f6838fb90703ee2f53e7b2b2b407d82bbd/memon-0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f5135a16a7a3d916e78d187803cd1e93", "sha256": "6b5201f0a4655448e7d1ae42a4c1d3b640d1c9d60178482524edbebf915757fb" }, "downloads": -1, "filename": "memon-0.1.tar.gz", "has_sig": false, "md5_digest": "f5135a16a7a3d916e78d187803cd1e93", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12582, "upload_time": "2017-03-29T14:36:43", "url": "https://files.pythonhosted.org/packages/73/6a/2b36bae40a3fd55ecfb78d7b7f66bbd5d51c8755fde044645791bded703b/memon-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6da8d6b6b2089ab31fcaa6900fb7d7d1", "sha256": "dd40cc1c922d39953efbc71dbd95b9282dbc89ea308ed1dd715da2cfbdaa3e56" }, "downloads": -1, "filename": "memon-0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6da8d6b6b2089ab31fcaa6900fb7d7d1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5427, "upload_time": "2017-03-29T14:36:41", "url": "https://files.pythonhosted.org/packages/3f/ba/584cb98878479d39a08d1ef042f6838fb90703ee2f53e7b2b2b407d82bbd/memon-0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f5135a16a7a3d916e78d187803cd1e93", "sha256": "6b5201f0a4655448e7d1ae42a4c1d3b640d1c9d60178482524edbebf915757fb" }, "downloads": -1, "filename": "memon-0.1.tar.gz", "has_sig": false, "md5_digest": "f5135a16a7a3d916e78d187803cd1e93", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12582, "upload_time": "2017-03-29T14:36:43", "url": "https://files.pythonhosted.org/packages/73/6a/2b36bae40a3fd55ecfb78d7b7f66bbd5d51c8755fde044645791bded703b/memon-0.1.tar.gz" } ] }