{"id":19378914,"url":"https://github.com/linbit/python-lbdist","last_synced_at":"2026-05-16T04:04:29.519Z","repository":{"id":44096445,"uuid":"240532032","full_name":"LINBIT/python-lbdist","owner":"LINBIT","description":"LINBIT opinionated Python library for Linux distribution detection","archived":false,"fork":false,"pushed_at":"2022-11-15T09:24:51.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-02-13T00:33:50.396Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LINBIT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-14T14:54:41.000Z","updated_at":"2021-10-27T13:40:40.000Z","dependencies_parsed_at":"2023-01-22T04:00:54.817Z","dependency_job_id":null,"html_url":"https://github.com/LINBIT/python-lbdist","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LINBIT%2Fpython-lbdist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LINBIT%2Fpython-lbdist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LINBIT%2Fpython-lbdist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LINBIT%2Fpython-lbdist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LINBIT","download_url":"https://codeload.github.com/LINBIT/python-lbdist/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240511964,"owners_count":19813385,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T09:07:53.509Z","updated_at":"2026-05-16T04:04:24.487Z","avatar_url":"https://github.com/LINBIT.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lbdist - LINBIT distribution detection library for Python\n\nThis is a opinionated Linux distribution detection library. This was initially written for\n`linbit-manage-node.py` when we made it Python 3 clean. Python 3 dropped `platform.linux_distribution()`, which\nis very much understandable considering the enormous mess Linux distribution detection is. `/etc/os-release`\nhelps, there are still differences even where one would not expect them (RHEL vs. Centos vs. RHEL CoreOS,...).\n\nWhy not use an existing one? We at LINBIT have a pretty specific naming scheme (e.g., how many digits of the\nversion, where and how we mangle service pack levels,...), so existing ones are not a perfect fit. We also care\nabout distributions that others might not, and we don't care about others not relevant to us. All in all,\nproviding a mapping from `$library` to \"LINBIT notation\" did not look like a good idea.\n\nThe `Distribution` class might be handy for more general cases, but is already slightly opinionated,\n`LinbitDistribution` extends this class and provides highly LINBIT specific methods.\n\nThis library should still work on very old Python (2.6 as of RHEL6).\n\n`distribution.py` is written in a way that it can be used as a library and a standalone program. We will try\nto keep the output of the standalone version compatible. New fields will be printed after the existing ones.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinbit%2Fpython-lbdist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinbit%2Fpython-lbdist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinbit%2Fpython-lbdist/lists"}