{ "info": { "author": "Alberto Sottile", "author_email": "asottile@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: BSD License", "Operating System :: MacOS :: MacOS X", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# Darkdetect\n\nThis package allows to detect if macOS 10.14+ is running with the [Dark Mode](https://support.apple.com/en-us/HT208976) enabled. The main application of this package is to detect the Dark mode from your GUI Python application (Tkinter/wx/pyqt/qt for python (pyside)/...) and apply the needed adjustments to your interface. Darkdetect is particularly useful if your GUI library **does not** provide a public API for this detection (I am looking at you, Qt). In addition, this package does not depend on other modules or packages that are not already included in standard Python distributions.\n\n## Usage\n\n```\nimport darkdetect\n\n>>> darkdetect.theme()\n'Dark'\n\n>>> darkdetect.isDark()\nTrue\n\n>>> darkdetect.isLight()\nFalse\n```\nIt's that easy.\n\n## Install\n\nThe preferred channel is PyPI:\n```\npip install darkdetect\n```\n\nAlternatively, you are free to vendor directly a copy of Darkdetect in your app. Further information on vendoring can be found [here](https://medium.com/underdog-io-engineering/vendoring-python-dependencies-with-pip-b9eb6078b9c0).\n\n## Notes\n\n- This software is licensed under the terms of the 3-clause BSD License.\n- This package can be installed on any operative system, but it will always return `None` unless executed on macOS 10.14 Mojave or newer versions. This package is designed to work also with older versions of macOS and in those cases it will also return `None`. Detection of the dark menu bar and dock option (available from 10.10) is not supported.\n- [Details](https://stackoverflow.com/questions/25207077/how-to-detect-if-os-x-is-in-dark-mode) on the detection method used.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "http://github.com/albertosottile/darkdetect/releases", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/albertosottile/darkdetect", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "darkdetect", "package_url": "https://pypi.org/project/darkdetect/", "platform": "", "project_url": "https://pypi.org/project/darkdetect/", "project_urls": { "Download": "http://github.com/albertosottile/darkdetect/releases", "Homepage": "http://github.com/albertosottile/darkdetect" }, "release_url": "https://pypi.org/project/darkdetect/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "Detect macOS Mojave Dark Mode from Python", "version": "0.1.1" }, "last_serial": 5323849, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "ba29fc6c145563124526911f38ead0c6", "sha256": "4d3dc27bedc1cfaae9bc9bb9345cf85d526a2fb62bccc4c11161b9b38c914b29" }, "downloads": -1, "filename": "darkdetect-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "ba29fc6c145563124526911f38ead0c6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4877, "upload_time": "2019-05-13T20:18:19", "url": "https://files.pythonhosted.org/packages/bd/20/898af0c8dee832ba9b8066139de6d90e777952aff5401ab9d57d09b49884/darkdetect-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bd3ac70b2b49ddcb4988dd8f14ed0c14", "sha256": "df5712bd7193e13df8b282fa9cf07f865d0001d06a6cb11b137abefbedf47851" }, "downloads": -1, "filename": "darkdetect-0.1.0.tar.gz", "has_sig": false, "md5_digest": "bd3ac70b2b49ddcb4988dd8f14ed0c14", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4033, "upload_time": "2019-05-13T20:18:21", "url": "https://files.pythonhosted.org/packages/36/62/36ca9e3d61605bf6e2497591aa0e26a29c30457d311a84473a08e2387397/darkdetect-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "9914b7eb2d95ee7f8bea4d6bbccd330e", "sha256": "ea7b0fbe2679d6ca4151ea601930743707a699a73c7c519a595c3bd2be90578b" }, "downloads": -1, "filename": "darkdetect-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9914b7eb2d95ee7f8bea4d6bbccd330e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4545, "upload_time": "2019-05-27T20:51:46", "url": "https://files.pythonhosted.org/packages/f5/a7/e723dcfdc9081c0b196666c3877f67e6c5317d19ad8495474689aa13c405/darkdetect-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b11d069637cf353257815af9be4128fd", "sha256": "a868f23ae6647fcb2ecea9b5045b61964cc87ab0639e12b59e15d14b5136259f" }, "downloads": -1, "filename": "darkdetect-0.1.1.tar.gz", "has_sig": false, "md5_digest": "b11d069637cf353257815af9be4128fd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3780, "upload_time": "2019-05-27T20:51:47", "url": "https://files.pythonhosted.org/packages/18/a2/d223700cf71cfad03366504a310441dd1663d76cc12ac62e0a97e759b398/darkdetect-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9914b7eb2d95ee7f8bea4d6bbccd330e", "sha256": "ea7b0fbe2679d6ca4151ea601930743707a699a73c7c519a595c3bd2be90578b" }, "downloads": -1, "filename": "darkdetect-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9914b7eb2d95ee7f8bea4d6bbccd330e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4545, "upload_time": "2019-05-27T20:51:46", "url": "https://files.pythonhosted.org/packages/f5/a7/e723dcfdc9081c0b196666c3877f67e6c5317d19ad8495474689aa13c405/darkdetect-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b11d069637cf353257815af9be4128fd", "sha256": "a868f23ae6647fcb2ecea9b5045b61964cc87ab0639e12b59e15d14b5136259f" }, "downloads": -1, "filename": "darkdetect-0.1.1.tar.gz", "has_sig": false, "md5_digest": "b11d069637cf353257815af9be4128fd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3780, "upload_time": "2019-05-27T20:51:47", "url": "https://files.pythonhosted.org/packages/18/a2/d223700cf71cfad03366504a310441dd1663d76cc12ac62e0a97e759b398/darkdetect-0.1.1.tar.gz" } ] }