{ "info": { "author": "Luca Cappelletti", "author_email": "cappelletti.luca94@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3" ], "description": "silence_tensorflow\n=========================================================================================\n|travis| |sonar_quality| |sonar_maintainability| |codacy| |code_climate_maintainability| |pip| |downloads|\n\nSimple python package to shut up Tensorflow warnings and logs.\n\nHow do I install this package?\n----------------------------------------------\nAs usual, just download it using pip:\n\n.. code:: shell\n\n pip install silence_tensorflow\n\nTests Coverage\n----------------------------------------------\nSince some software handling coverages sometime get slightly different results, here's three of them:\n\n|coveralls| |sonar_coverage| |code_climate_coverage|\n\nHow do I use it?\n----------------------------------------\nYou only need to import the package before import Tensorflow:\n\n.. code:: python\n\n import silence_tensorflow\n import tensorflow as tf\n\n ...\n\n # your code\n\nHow does this work under the hood?\n----------------------------------------\nThis package will set the `KMP_AFFINITY` system variable to `\"noverbose\"`, `TF_CPP_MIN_LOG_LEVEL` to level `2` (only errors logged) and silence both `FutureWarning` and `DeprecationWarning`.\n\nIf you need a custom value for `KMP_AFFINITY` you should reset it after importing the package, as follows:\n\n.. code:: python\n\n import os\n backup = os.environ[\"KMP_AFFINITY\"]\n import silence_tensorflow\n os.environ[\"KMP_AFFINITY\"] = backup\n\n.. |travis| image:: https://travis-ci.org/LucaCappelletti94/silence_tensorflow.png\n :target: https://travis-ci.org/LucaCappelletti94/silence_tensorflow\n :alt: Travis CI build\n\n.. |sonar_quality| image:: https://sonarcloud.io/api/project_badges/measure?project=LucaCappelletti94_silence_tensorflow&metric=alert_status\n :target: https://sonarcloud.io/dashboard/index/LucaCappelletti94_silence_tensorflow\n :alt: SonarCloud Quality\n\n.. |sonar_maintainability| image:: https://sonarcloud.io/api/project_badges/measure?project=LucaCappelletti94_silence_tensorflow&metric=sqale_rating\n :target: https://sonarcloud.io/dashboard/index/LucaCappelletti94_silence_tensorflow\n :alt: SonarCloud Maintainability\n\n.. |sonar_coverage| image:: https://sonarcloud.io/api/project_badges/measure?project=LucaCappelletti94_silence_tensorflow&metric=coverage\n :target: https://sonarcloud.io/dashboard/index/LucaCappelletti94_silence_tensorflow\n :alt: SonarCloud Coverage\n\n.. |coveralls| image:: https://coveralls.io/repos/github/LucaCappelletti94/silence_tensorflow/badge.svg?branch=master\n :target: https://coveralls.io/github/LucaCappelletti94/silence_tensorflow?branch=master\n :alt: Coveralls Coverage\n\n.. |pip| image:: https://badge.fury.io/py/silence_tensorflow.svg\n :target: https://badge.fury.io/py/silence_tensorflow\n :alt: Pypi project\n\n.. |downloads| image:: https://pepy.tech/badge/silence-tensorflow\n :target: https://pepy.tech/badge/silence-tensorflow\n :alt: Pypi total project downloads \n\n.. |codacy| image:: https://api.codacy.com/project/badge/Grade/e6fe64db1c9042bbaa4c0a20bde585dc\n :target: https://www.codacy.com/app/LucaCappelletti94/silence_tensorflow?utm_source=github.com&utm_medium=referral&utm_content=LucaCappelletti94/silence_tensorflow&utm_campaign=Badge_Grade\n :alt: Codacy Maintainability\n\n.. |code_climate_maintainability| image:: https://api.codeclimate.com/v1/badges/c2c6e147021b6855351e/maintainability\n :target: https://codeclimate.com/github/LucaCappelletti94/silence_tensorflow/maintainability\n :alt: Maintainability\n\n.. |code_climate_coverage| image:: https://api.codeclimate.com/v1/badges/c2c6e147021b6855351e/test_coverage\n :target: https://codeclimate.com/github/LucaCappelletti94/silence_tensorflow/test_coverage\n :alt: Code Climate Coverate", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/LucaCappelletti94/silence_tensorflow", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "silence-tensorflow", "package_url": "https://pypi.org/project/silence-tensorflow/", "platform": "", "project_url": "https://pypi.org/project/silence-tensorflow/", "project_urls": { "Homepage": "https://github.com/LucaCappelletti94/silence_tensorflow" }, "release_url": "https://pypi.org/project/silence-tensorflow/1.0.2/", "requires_dist": null, "requires_python": "", "summary": "Simple python package to shut up Tensorflow warnings and logs.", "version": "1.0.2" }, "last_serial": 5650411, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "58e0104b468b975d2d6424e1274360ad", "sha256": "91cb4a6bda2350e8622c6451422ffdf85c4a2d599f85b3ae3509c37a1b28ad24" }, "downloads": -1, "filename": "silence_tensorflow-1.0.0.tar.gz", "has_sig": false, "md5_digest": "58e0104b468b975d2d6424e1274360ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2956, "upload_time": "2019-05-25T06:39:02", "url": "https://files.pythonhosted.org/packages/71/6d/a34b9c8d1c905e68b32c667370a253e391b287e80a2db21cce75bd144a07/silence_tensorflow-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "846f6e103e6bdf69d765cedbffa5636a", "sha256": "9a2dd14f8dcc53bed6d05b862f87e7b195287fc1ee3d9ad83bb4d7fb84ad7926" }, "downloads": -1, "filename": "silence_tensorflow-1.0.1.tar.gz", "has_sig": false, "md5_digest": "846f6e103e6bdf69d765cedbffa5636a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3013, "upload_time": "2019-06-02T18:01:52", "url": "https://files.pythonhosted.org/packages/52/39/a1dd1077d31c6a06903c6a30ec6b2c7332904d7894ef38413c23fb2078f4/silence_tensorflow-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "16272660bd3faa6f41fa0f2c1ca98046", "sha256": "cc34d1e3d6aa410ac0c1009568d4f51e78ffb9a0215696ddf65386b1fcccb015" }, "downloads": -1, "filename": "silence_tensorflow-1.0.2.tar.gz", "has_sig": false, "md5_digest": "16272660bd3faa6f41fa0f2c1ca98046", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3035, "upload_time": "2019-08-08T14:09:13", "url": "https://files.pythonhosted.org/packages/80/27/8d619da6abad8832d62abdc39fe5b10261c9b6c7e0d5a92c6b27eb56e945/silence_tensorflow-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "16272660bd3faa6f41fa0f2c1ca98046", "sha256": "cc34d1e3d6aa410ac0c1009568d4f51e78ffb9a0215696ddf65386b1fcccb015" }, "downloads": -1, "filename": "silence_tensorflow-1.0.2.tar.gz", "has_sig": false, "md5_digest": "16272660bd3faa6f41fa0f2c1ca98046", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3035, "upload_time": "2019-08-08T14:09:13", "url": "https://files.pythonhosted.org/packages/80/27/8d619da6abad8832d62abdc39fe5b10261c9b6c7e0d5a92c6b27eb56e945/silence_tensorflow-1.0.2.tar.gz" } ] }