{ "info": { "author": "Nir Cohen", "author_email": "nir36g@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Operating System" ], "description": "Linux Distribution - a Linux OS platform information API\n========================================================\n\nThe `ld` (for: Linux Distribution) package provides information about the\nLinux distribution it runs on, such as a reliable machine-readable ID, or\nversion information.\n\nIt is a renewed alternative implementation for Python's\noriginal `platform.linux_distribution` function, but it also provides much more\nfunctionality.\nAn alternative implementation became necessary because Python 3.5 deprecated\nthis function, and Python 3.7 is expected to remove it altogether.\nIts predecessor function `platform.dist` was already deprecated since\nPython 2.6 and is also expected to be removed in Python 3.7.\nStill, there are many cases in which access to that information is needed.\nSee [Python issue 1322](https://bugs.python.org/issue1322) for more\ninformation.\n\nThe `ld` package implements a robust and inclusive way of retrieving the\ninformation about a Linux distribution based on new standards and old methods,\nnamely from these data sources (from high to low precedence):\n\n* The os-release file `/etc/os-release`, if present.\n* The output of the `lsb_release` command, if available.\n* The distro release file (`/etc/*(-|_)(release|version)`), if present.\n\n\n## Installation\n\n```shell\npip install ld\n```\n\nFor dev:\n\n```shell\npip install https://github.com/nir0s/ld/archive/master.tar.gz\n```\n\n## Python and Distribution Support\n\nThe `ld` package is supported on Python 2.6, 2.7, 3.4 and 3.5, and on\nany Linux distribution that provides one or more of the data sources\nused by this package.\n\nThis package is currently tested on Python 2.6, 2.7 and 3.5, with test\ndata that mimics the exact behavior of the data sources of the following\nLinux distributions:\n\n* Arch Linux\n* CentOS 5/7\n* Debian 8\n* Exherbo\n* Fedora 19/23\n* KVM for IBM z Systems 1\n* Mageia 5\n* openSUSE Leap 42\n* Oracle Linux Server 7\n* RHEL 6/7\n* Slackware 14\n* SUSE Linux Enterprise Server 12\n* Ubuntu 14\n\n\n## Usage\n\n```\npython\n>>> import ld\n>>> ld.linux_distribution(full_distribution_name=False)\n'('centos', '7.1.1503', 'Core')'\n```\n\nSeveral more functions are available. For a complete description of the\nAPI, see the [latest API documentation](http://ld.readthedocs.org/en/latest/).", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nir0s/ld", "keywords": null, "license": "Apache License, Version 2.0", "maintainer": null, "maintainer_email": null, "name": "ld", "package_url": "https://pypi.org/project/ld/", "platform": "All", "project_url": "https://pypi.org/project/ld/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/nir0s/ld" }, "release_url": "https://pypi.org/project/ld/0.5.0/", "requires_dist": null, "requires_python": null, "summary": "Linux Distribution - a Linux OS platform information API", "version": "0.5.0" }, "last_serial": 2032584, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "1cf748ba1761b80d05814d2e922eeb75", "sha256": "bef21e2ec8b8d89f17117aeabd685e8dc4ba5b556e558a6d0ed8cc94c5a119cd" }, "downloads": -1, "filename": "ld-0.0.1.tar.gz", "has_sig": false, "md5_digest": "1cf748ba1761b80d05814d2e922eeb75", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7167, "upload_time": "2015-12-02T10:13:19", "url": "https://files.pythonhosted.org/packages/dc/30/c144c7d30a64eddc4b40ccd987a6706458bfef178ff9edbea993c3c6c9f6/ld-0.0.1.tar.gz" } ], "0.0.2": [], "0.0.3": [ { "comment_text": "", "digests": { "md5": "eb38f0d09b1a835dcd2c4bfdb8bfb715", "sha256": "ce65f728693e99c197b2e74bab7564c02d993f83e7c391f50dba6c55cf574a7e" }, "downloads": -1, "filename": "ld-0.0.3.tar.gz", "has_sig": false, "md5_digest": "eb38f0d09b1a835dcd2c4bfdb8bfb715", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3518, "upload_time": "2015-12-06T19:56:42", "url": "https://files.pythonhosted.org/packages/b9/24/7067f6ffec4ffd5b8c26c04c4db5ac13d4df5268ec5300f53fe19c99b169/ld-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "39aabdee6f113eb564f8b251b9b072dd", "sha256": "86bb3ffc8634c9078d1282e8f9383177dfeb07a63c77a43f169846ad142e4489" }, "downloads": -1, "filename": "ld-0.0.4.tar.gz", "has_sig": false, "md5_digest": "39aabdee6f113eb564f8b251b9b072dd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4589, "upload_time": "2015-12-07T13:28:46", "url": "https://files.pythonhosted.org/packages/c8/81/61e2cc190f1f3a5dddd7938191c9cf9714ad854cad25be0dddee3965ccc9/ld-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "4d5837d679174776d2656838f8ad4796", "sha256": "c5aa86b9b5e9f131d41ba1f2536103ee602e48f440519fc2e059482aa3c9cf32" }, "downloads": -1, "filename": "ld-0.0.5.tar.gz", "has_sig": false, "md5_digest": "4d5837d679174776d2656838f8ad4796", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4805, "upload_time": "2015-12-07T15:43:51", "url": "https://files.pythonhosted.org/packages/31/98/844393ba3ce3cc79be775372c8e56a0e673d0b391d73cec05f4cdfc1e780/ld-0.0.5.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "424a7e4d66e3c20b3a7a098d42095cad", "sha256": "a5d7e921dd292f331288dfbd9930bf17709ea94e7f8a891c72a49bca5d27c796" }, "downloads": -1, "filename": "ld-0.1.0.tar.gz", "has_sig": false, "md5_digest": "424a7e4d66e3c20b3a7a098d42095cad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4792, "upload_time": "2015-12-07T16:42:36", "url": "https://files.pythonhosted.org/packages/32/36/5454649b8af5e2062f343c74feea35a22e0e091a9b9124d93f786ce4f2f5/ld-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "c5275fd9b95c539ff57fdb12292c20bd", "sha256": "127e1d2ec062e691a682dafa4aa2098abff4faaea5631e50b55032fdf61d0bf5" }, "downloads": -1, "filename": "ld-0.1.1.tar.gz", "has_sig": false, "md5_digest": "c5275fd9b95c539ff57fdb12292c20bd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4996, "upload_time": "2015-12-12T09:01:50", "url": "https://files.pythonhosted.org/packages/af/4a/6bae044f54bdc6844ad24653260daa528bb85cc7779979a352af1b856336/ld-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "ea1991134f50c8df4eba788ba52894b0", "sha256": "bc51f155d7c2e7e5312385f0d5d5d1e9b3a9b6213b17c662338883eb6d3f47be" }, "downloads": -1, "filename": "ld-0.1.2.tar.gz", "has_sig": false, "md5_digest": "ea1991134f50c8df4eba788ba52894b0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4995, "upload_time": "2015-12-13T01:56:40", "url": "https://files.pythonhosted.org/packages/bd/ef/f24fbfe52364e9f3ab6b0a38237ee46e1bc1a2733e57a04f749d92092bbd/ld-0.1.2.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "c546c903e0ef628d4d68720f4db54455", "sha256": "272d2236a634b1812a26f535ec4ebe961a026381a843fd7eecf0ae8dda5fb997" }, "downloads": -1, "filename": "ld-0.2.0.tar.gz", "has_sig": false, "md5_digest": "c546c903e0ef628d4d68720f4db54455", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5057, "upload_time": "2015-12-24T18:52:57", "url": "https://files.pythonhosted.org/packages/7c/76/a29f9a79f22cb1c7fe95f21e315af41d7a81bce5b653d65fb3b351e4a5d6/ld-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "1cd93a7a367b43314aa77b5d1a4e78c0", "sha256": "c1df89c7d42c21f37aeb42c7f21f369f265533176f1e472e1131f32d420c21b0" }, "downloads": -1, "filename": "ld-0.2.1.tar.gz", "has_sig": false, "md5_digest": "1cd93a7a367b43314aa77b5d1a4e78c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5099, "upload_time": "2015-12-24T21:48:18", "url": "https://files.pythonhosted.org/packages/31/e8/0a3c6a5271fd6a9c4e0f51c574c9b5cee79441bf93996c52a70d5ef42dcf/ld-0.2.1.tar.gz" } ], "0.2.9": [ { "comment_text": "", "digests": { "md5": "46929e6c5e0de6f34ee2c3f3bf705442", "sha256": "48aa595bcd19a958a9bc71126708b55b931225c83ab61e515be8bc23a9086da6" }, "downloads": -1, "filename": "ld-0.2.9.tar.gz", "has_sig": false, "md5_digest": "46929e6c5e0de6f34ee2c3f3bf705442", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5124, "upload_time": "2016-01-28T17:26:24", "url": "https://files.pythonhosted.org/packages/2a/50/3994194edcdb92de35fc9e980999065f3aa197ea0f76797daf9f52daec0b/ld-0.2.9.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "ab3acccfcc044cd62b4627be7fdab90a", "sha256": "e58798bdff61b214d7dc026eee43952f866800653315b20b4a64cf97cb6d9ecc" }, "downloads": -1, "filename": "ld-0.5.0.tar.gz", "has_sig": false, "md5_digest": "ab3acccfcc044cd62b4627be7fdab90a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11827, "upload_time": "2016-03-28T20:10:59", "url": "https://files.pythonhosted.org/packages/ab/42/3ad1c15d88b9b522058d436457a72f1544175b39b00442f4c93980261ff4/ld-0.5.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ab3acccfcc044cd62b4627be7fdab90a", "sha256": "e58798bdff61b214d7dc026eee43952f866800653315b20b4a64cf97cb6d9ecc" }, "downloads": -1, "filename": "ld-0.5.0.tar.gz", "has_sig": false, "md5_digest": "ab3acccfcc044cd62b4627be7fdab90a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11827, "upload_time": "2016-03-28T20:10:59", "url": "https://files.pythonhosted.org/packages/ab/42/3ad1c15d88b9b522058d436457a72f1544175b39b00442f4c93980261ff4/ld-0.5.0.tar.gz" } ] }