Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More โ†’
Socket
Sign inDemoInstall
Socket

extra-platforms

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

extra-platforms

Detect platforms and group them by family

  • 1.7.0
  • PyPI
  • Socket score

Maintainers
1

Extra Platforms

Last release Python versions Downloads Unittests status Coverage status Documentation status DOI

What is Extra Platforms?

  • Provides a list of all known platforms
  • Detect the current platform, at the distribution level
  • Gather current platform metadata (version, codename, etc.)
  • Group platforms into families
  • Manage collection of platforms and groups
  • Associate each platform and group to an emoji symbol
  • New conditional markers for pytest:
    • @skip_linux, @skip_macos and @skip_windows
    • @unless_linux, @unless_macos and @unless_windows
  • Address distro#177 issue (support for Windows and Mac OS)

Examples

Get the current platform, from which you can access lots of metadata:

>>> from extra_platforms import current_os

>>> my_os = current_os()
>>> my_os
Platform(id='macos', name='macOS', current=True)

>>> my_os.id
'macos'
>>> my_os.name
'macOS'
>>> my_os.icon
'๐ŸŽ'

>>> my_os.info()
{
    "id": "macos",
    "name": "macOS",
    "icon": "๐ŸŽ",
    "current": True,
    "distro_id": "darwin",
    "version": "23.6.0",
    "version_parts": {"major": "23", "minor": "6", "build_number": "0"},
    "like": None,
    "codename": None,
}

Check if a platform is a specific system:

>>> from extra_platforms import is_gentoo

>>> is_gentoo()
False

Use groups to check if the current platform is part of a specific family:

>>> from extra_platforms import UNIX, current_os

>>> current_os() in UNIX
False

Or directly use the boolean variables available for each family:

>>> from extra_platforms import is_unix

>>> is_unix
False

List all platforms of a family:

>>> from extra_platforms import LINUX

>>> LINUX
Group(id='linux', name='Any Linux', platform_ids=frozenset({'ibm_powerkvm', 'rocky', 'debian', 'tuxedo', 'ubuntu', 'mageia', 'xenserver', 'opensuse', 'buildroot', 'rhel', 'parallels', 'pidora', 'sles', 'amzn', 'scientific', 'linuxmint', 'centos', 'android', 'gentoo', 'raspbian', 'unknown_linux', 'mandriva', 'exherbo', 'cloudlinux', 'fedora', 'guix', 'arch', 'altlinux', 'slackware', 'oracle', 'kvmibm'}))

>>> print("\n".join([p.name for p in LINUX]))
ALT Linux
Amazon Linux
Android
Arch Linux
Buildroot
CentOS
CloudLinux OS
Debian
Exherbo Linux
Fedora
Gentoo Linux
Guix System
IBM PowerKVM
KVM for IBM z Systems
Linux Mint
Mageia
Mandriva Linux
openSUSE
Oracle Linux
Parallels
Pidora
Raspbian
RedHat Enterprise Linux
Rocky Linux
Scientific Linux
Slackware
SUSE Linux Enterprise Server
Tuxedo OS
Ubuntu
Unknown Linux
XenServer

Reduce a disparate collection of groups and platforms into a minimal descriptive set, by grouping all platforms into families:

>>> from extra_platforms import AIX, MACOS, SOLARIS, reduce

>>> reduce([AIX, MACOS])
{
    Platform(id='aix', name='IBM AIX', current=False),
    Platform(id='macos', name='macOS', current=True),
}

>>> reduce([AIX, MACOS, SOLARIS])
{
    Group(id='system_v', name='Any Unix derived from AT&T System Five', platform_ids=frozenset({'aix', 'solaris'})),
    Platform(id='macos', name='macOS', current=True),
}

Groups โ†’ Platforms mapping

Relationships between groups and platforms:

---
config: {"sankey": {"showValues": false, "width": 800, "height": 400}}
---
sankey-beta

ALL_PLATFORMS,aix,1
ALL_PLATFORMS,altlinux,1
ALL_PLATFORMS,amzn,1
ALL_PLATFORMS,android,1
ALL_PLATFORMS,arch,1
ALL_PLATFORMS,buildroot,1
ALL_PLATFORMS,centos,1
ALL_PLATFORMS,cloudlinux,1
ALL_PLATFORMS,cygwin,1
ALL_PLATFORMS,debian,1
ALL_PLATFORMS,exherbo,1
ALL_PLATFORMS,fedora,1
ALL_PLATFORMS,freebsd,1
ALL_PLATFORMS,gentoo,1
ALL_PLATFORMS,guix,1
ALL_PLATFORMS,hurd,1
ALL_PLATFORMS,ibm_powerkvm,1
ALL_PLATFORMS,kvmibm,1
ALL_PLATFORMS,linuxmint,1
ALL_PLATFORMS,macos,1
ALL_PLATFORMS,mageia,1
ALL_PLATFORMS,mandriva,1
ALL_PLATFORMS,midnightbsd,1
ALL_PLATFORMS,netbsd,1
ALL_PLATFORMS,openbsd,1
ALL_PLATFORMS,opensuse,1
ALL_PLATFORMS,oracle,1
ALL_PLATFORMS,parallels,1
ALL_PLATFORMS,pidora,1
ALL_PLATFORMS,raspbian,1
ALL_PLATFORMS,rhel,1
ALL_PLATFORMS,rocky,1
ALL_PLATFORMS,scientific,1
ALL_PLATFORMS,slackware,1
ALL_PLATFORMS,sles,1
ALL_PLATFORMS,solaris,1
ALL_PLATFORMS,sunos,1
ALL_PLATFORMS,tumbleweed,1
ALL_PLATFORMS,tuxedo,1
ALL_PLATFORMS,ubuntu,1
ALL_PLATFORMS,unknown_linux,1
ALL_PLATFORMS,windows,1
ALL_PLATFORMS,wsl1,1
ALL_PLATFORMS,wsl2,1
ALL_PLATFORMS,xenserver,1
UNIX,aix,1
UNIX,altlinux,1
UNIX,amzn,1
UNIX,android,1
UNIX,arch,1
UNIX,buildroot,1
UNIX,centos,1
UNIX,cloudlinux,1
UNIX,cygwin,1
UNIX,debian,1
UNIX,exherbo,1
UNIX,fedora,1
UNIX,freebsd,1
UNIX,gentoo,1
UNIX,guix,1
UNIX,hurd,1
UNIX,ibm_powerkvm,1
UNIX,kvmibm,1
UNIX,linuxmint,1
UNIX,macos,1
UNIX,mageia,1
UNIX,mandriva,1
UNIX,midnightbsd,1
UNIX,netbsd,1
UNIX,openbsd,1
UNIX,opensuse,1
UNIX,oracle,1
UNIX,parallels,1
UNIX,pidora,1
UNIX,raspbian,1
UNIX,rhel,1
UNIX,rocky,1
UNIX,scientific,1
UNIX,slackware,1
UNIX,sles,1
UNIX,solaris,1
UNIX,sunos,1
UNIX,tumbleweed,1
UNIX,tuxedo,1
UNIX,ubuntu,1
UNIX,unknown_linux,1
UNIX,wsl1,1
UNIX,wsl2,1
UNIX,xenserver,1
UNIX_WITHOUT_MACOS,aix,1
UNIX_WITHOUT_MACOS,altlinux,1
UNIX_WITHOUT_MACOS,amzn,1
UNIX_WITHOUT_MACOS,android,1
UNIX_WITHOUT_MACOS,arch,1
UNIX_WITHOUT_MACOS,buildroot,1
UNIX_WITHOUT_MACOS,centos,1
UNIX_WITHOUT_MACOS,cloudlinux,1
UNIX_WITHOUT_MACOS,cygwin,1
UNIX_WITHOUT_MACOS,debian,1
UNIX_WITHOUT_MACOS,exherbo,1
UNIX_WITHOUT_MACOS,fedora,1
UNIX_WITHOUT_MACOS,freebsd,1
UNIX_WITHOUT_MACOS,gentoo,1
UNIX_WITHOUT_MACOS,guix,1
UNIX_WITHOUT_MACOS,hurd,1
UNIX_WITHOUT_MACOS,ibm_powerkvm,1
UNIX_WITHOUT_MACOS,kvmibm,1
UNIX_WITHOUT_MACOS,linuxmint,1
UNIX_WITHOUT_MACOS,mageia,1
UNIX_WITHOUT_MACOS,mandriva,1
UNIX_WITHOUT_MACOS,midnightbsd,1
UNIX_WITHOUT_MACOS,netbsd,1
UNIX_WITHOUT_MACOS,openbsd,1
UNIX_WITHOUT_MACOS,opensuse,1
UNIX_WITHOUT_MACOS,oracle,1
UNIX_WITHOUT_MACOS,parallels,1
UNIX_WITHOUT_MACOS,pidora,1
UNIX_WITHOUT_MACOS,raspbian,1
UNIX_WITHOUT_MACOS,rhel,1
UNIX_WITHOUT_MACOS,rocky,1
UNIX_WITHOUT_MACOS,scientific,1
UNIX_WITHOUT_MACOS,slackware,1
UNIX_WITHOUT_MACOS,sles,1
UNIX_WITHOUT_MACOS,solaris,1
UNIX_WITHOUT_MACOS,sunos,1
UNIX_WITHOUT_MACOS,tumbleweed,1
UNIX_WITHOUT_MACOS,tuxedo,1
UNIX_WITHOUT_MACOS,ubuntu,1
UNIX_WITHOUT_MACOS,unknown_linux,1
UNIX_WITHOUT_MACOS,wsl1,1
UNIX_WITHOUT_MACOS,wsl2,1
UNIX_WITHOUT_MACOS,xenserver,1
LINUX_LIKE,altlinux,1
LINUX_LIKE,amzn,1
LINUX_LIKE,android,1
LINUX_LIKE,arch,1
LINUX_LIKE,buildroot,1
LINUX_LIKE,centos,1
LINUX_LIKE,cloudlinux,1
LINUX_LIKE,debian,1
LINUX_LIKE,exherbo,1
LINUX_LIKE,fedora,1
LINUX_LIKE,gentoo,1
LINUX_LIKE,guix,1
LINUX_LIKE,ibm_powerkvm,1
LINUX_LIKE,kvmibm,1
LINUX_LIKE,linuxmint,1
LINUX_LIKE,mageia,1
LINUX_LIKE,mandriva,1
LINUX_LIKE,opensuse,1
LINUX_LIKE,oracle,1
LINUX_LIKE,parallels,1
LINUX_LIKE,pidora,1
LINUX_LIKE,raspbian,1
LINUX_LIKE,rhel,1
LINUX_LIKE,rocky,1
LINUX_LIKE,scientific,1
LINUX_LIKE,slackware,1
LINUX_LIKE,sles,1
LINUX_LIKE,tumbleweed,1
LINUX_LIKE,tuxedo,1
LINUX_LIKE,ubuntu,1
LINUX_LIKE,unknown_linux,1
LINUX_LIKE,wsl1,1
LINUX_LIKE,wsl2,1
LINUX_LIKE,xenserver,1
LINUX,altlinux,1
LINUX,amzn,1
LINUX,android,1
LINUX,arch,1
LINUX,buildroot,1
LINUX,centos,1
LINUX,cloudlinux,1
LINUX,debian,1
LINUX,exherbo,1
LINUX,fedora,1
LINUX,gentoo,1
LINUX,guix,1
LINUX,ibm_powerkvm,1
LINUX,kvmibm,1
LINUX,linuxmint,1
LINUX,mageia,1
LINUX,mandriva,1
LINUX,opensuse,1
LINUX,oracle,1
LINUX,parallels,1
LINUX,pidora,1
LINUX,raspbian,1
LINUX,rhel,1
LINUX,rocky,1
LINUX,scientific,1
LINUX,slackware,1
LINUX,sles,1
LINUX,tumbleweed,1
LINUX,tuxedo,1
LINUX,ubuntu,1
LINUX,unknown_linux,1
LINUX,xenserver,1
BSD,freebsd,1
BSD,macos,1
BSD,midnightbsd,1
BSD,netbsd,1
BSD,openbsd,1
BSD,sunos,1
BSD_WITHOUT_MACOS,freebsd,1
BSD_WITHOUT_MACOS,midnightbsd,1
BSD_WITHOUT_MACOS,netbsd,1
BSD_WITHOUT_MACOS,openbsd,1
BSD_WITHOUT_MACOS,sunos,1
SYSTEM_V,aix,1
SYSTEM_V,solaris,1
LINUX_LAYERS,wsl1,1
LINUX_LAYERS,wsl2,1
UNIX_LAYERS,cygwin,1
OTHER_UNIX,hurd,1
ANY_WINDOWS,windows,1

OS families

Each platform is assigned to a group of non-overlpaping families:

---
config: {"mindmap": {"padding": 5}}
---
mindmap
    ((Extra Platforms))
        )โ‰› UNIX_LAYERS(
            (ฯพ cygwin)
        )โ…ค SYSTEM_V(
            (โžฟ aix)
            (๐ŸŒž solaris)
        )โŠŽ OTHER_UNIX(
            (๐Ÿƒ hurd)
        )โ‰š LINUX_LAYERS(
            (โŠž wsl1)
            (โŠž wsl2)
        )๐Ÿง LINUX(
            (๐Ÿง altlinux)
            (๐Ÿ™‚ amzn)
            (๐Ÿค– android)
            (๐ŸŽ—๏ธ arch)
            (โ›‘๏ธ buildroot)
            (๐Ÿ’  centos)
            (๊ฉœ cloudlinux)
            (๐ŸŒ€ debian)
            (๐Ÿฝ exherbo)
            (๐ŸŽฉ fedora)
            (๐Ÿ—œ๏ธ gentoo)
            (๐Ÿƒ guix)
            (๐Ÿคน ibm_powerkvm)
            (๐Ÿคน kvmibm)
            (๐ŸŒฟ linuxmint)
            (โฅ mageia)
            (๐Ÿ’ซ mandriva)
            (๐ŸฆŽ opensuse)
            (๐Ÿฆด oracle)
            (โˆฅ parallels)
            (๐Ÿ“ pidora)
            (๐Ÿ“ raspbian)
            (๐ŸŽฉ rhel)
            (โ›ฐ๏ธ rocky)
            (โš›๏ธ scientific)
            (๐Ÿšฌ slackware)
            (๐ŸฆŽ sles)
            (โ†ป tumbleweed)
            (๐Ÿคต tuxedo)
            (๐ŸŽฏ ubuntu)
            (๐Ÿง unknown_linux)
            (โ“ xenserver)
        )๐Ÿ…ฑ๏ธ+ BSD(
            (๐Ÿ˜ˆ freebsd)
            (๐ŸŽ macos)
            (๐ŸŒ˜ midnightbsd)
            (๐Ÿšฉ netbsd)
            (๐Ÿก openbsd)
            (โ˜€๏ธ sunos)
        )๐ŸชŸ ANY_WINDOWS(
            (๐ŸชŸ windows)
---
title: <code>extra_platforms.NON_OVERLAPPING_GROUPS</code> - Non-overlapping groups.
---
flowchart

    subgraph "<code>extra_platforms.ANY_WINDOWS</code><br/>๐ŸชŸ <em>Any Windows</em>"
        any_windows_windows(<code>windows</code><br/>๐ŸชŸ <em>Windows</em>)
    end
    subgraph "<code>extra_platforms.BSD</code><br/>๐Ÿ…ฑ๏ธ+ <em>Any BSD</em>"
        bsd_freebsd(<code>freebsd</code><br/>๐Ÿ˜ˆ <em>FreeBSD</em>)
        bsd_macos(<code>macos</code><br/>๐ŸŽ <em>macOS</em>)
        bsd_midnightbsd(<code>midnightbsd</code><br/>๐ŸŒ˜ <em>MidnightBSD</em>)
        bsd_netbsd(<code>netbsd</code><br/>๐Ÿšฉ <em>NetBSD</em>)
        bsd_openbsd(<code>openbsd</code><br/>๐Ÿก <em>OpenBSD</em>)
        bsd_sunos(<code>sunos</code><br/>โ˜€๏ธ <em>SunOS</em>)
    end
    subgraph "<code>extra_platforms.LINUX</code><br/>๐Ÿง <em>Any Linux distribution</em>"
        linux_altlinux(<code>altlinux</code><br/>๐Ÿง <em>ALT Linux</em>)
        linux_amzn(<code>amzn</code><br/>๐Ÿ™‚ <em>Amazon Linux</em>)
        linux_android(<code>android</code><br/>๐Ÿค– <em>Android</em>)
        linux_arch(<code>arch</code><br/>๐ŸŽ—๏ธ <em>Arch Linux</em>)
        linux_buildroot(<code>buildroot</code><br/>โ›‘๏ธ <em>Buildroot</em>)
        linux_centos(<code>centos</code><br/>๐Ÿ’  <em>CentOS</em>)
        linux_cloudlinux(<code>cloudlinux</code><br/>๊ฉœ <em>CloudLinux OS</em>)
        linux_debian(<code>debian</code><br/>๐ŸŒ€ <em>Debian</em>)
        linux_exherbo(<code>exherbo</code><br/>๐Ÿฝ <em>Exherbo Linux</em>)
        linux_fedora(<code>fedora</code><br/>๐ŸŽฉ <em>Fedora</em>)
        linux_gentoo(<code>gentoo</code><br/>๐Ÿ—œ๏ธ <em>Gentoo Linux</em>)
        linux_guix(<code>guix</code><br/>๐Ÿƒ <em>Guix System</em>)
        linux_ibm_powerkvm(<code>ibm_powerkvm</code><br/>๐Ÿคน <em>IBM PowerKVM</em>)
        linux_kvmibm(<code>kvmibm</code><br/>๐Ÿคน <em>KVM for IBM z Systems</em>)
        linux_linuxmint(<code>linuxmint</code><br/>๐ŸŒฟ <em>Linux Mint</em>)
        linux_mageia(<code>mageia</code><br/>โฅ <em>Mageia</em>)
        linux_mandriva(<code>mandriva</code><br/>๐Ÿ’ซ <em>Mandriva Linux</em>)
        linux_opensuse(<code>opensuse</code><br/>๐ŸฆŽ <em>openSUSE</em>)
        linux_oracle(<code>oracle</code><br/>๐Ÿฆด <em>Oracle Linux</em>)
        linux_parallels(<code>parallels</code><br/>โˆฅ <em>Parallels</em>)
        linux_pidora(<code>pidora</code><br/>๐Ÿ“ <em>Pidora</em>)
        linux_raspbian(<code>raspbian</code><br/>๐Ÿ“ <em>Raspbian</em>)
        linux_rhel(<code>rhel</code><br/>๐ŸŽฉ <em>RedHat Enterprise Linux</em>)
        linux_rocky(<code>rocky</code><br/>โ›ฐ๏ธ <em>Rocky Linux</em>)
        linux_scientific(<code>scientific</code><br/>โš›๏ธ <em>Scientific Linux</em>)
        linux_slackware(<code>slackware</code><br/>๐Ÿšฌ <em>Slackware</em>)
        linux_sles(<code>sles</code><br/>๐ŸฆŽ <em>SUSE Linux Enterprise Server</em>)
        linux_tumbleweed(<code>tumbleweed</code><br/>โ†ป <em>openSUSE Tumbleweed</em>)
        linux_tuxedo(<code>tuxedo</code><br/>๐Ÿคต <em>Tuxedo OS</em>)
        linux_ubuntu(<code>ubuntu</code><br/>๐ŸŽฏ <em>Ubuntu</em>)
        linux_unknown_linux(<code>unknown_linux</code><br/>๐Ÿง <em>Unknown Linux</em>)
        linux_xenserver(<code>xenserver</code><br/>โ“ <em>XenServer</em>)
    end
    subgraph "<code>extra_platforms.LINUX_LAYERS</code><br/>โ‰š <em>Any Linux compatibility layers</em>"
        linux_layers_wsl1(<code>wsl1</code><br/>โŠž <em>Windows Subsystem for Linux v1</em>)
        linux_layers_wsl2(<code>wsl2</code><br/>โŠž <em>Windows Subsystem for Linux v2</em>)
    end
    subgraph "<code>extra_platforms.OTHER_UNIX</code><br/>โŠŽ <em>Any other Unix</em>"
        other_unix_hurd(<code>hurd</code><br/>๐Ÿƒ <em>GNU/Hurd</em>)
    end
    subgraph "<code>extra_platforms.SYSTEM_V</code><br/>โ…ค <em>Any Unix derived from AT&amp;T System Five</em>"
        system_v_aix(<code>aix</code><br/>โžฟ <em>IBM AIX</em>)
        system_v_solaris(<code>solaris</code><br/>๐ŸŒž <em>Solaris</em>)
    end
    subgraph "<code>extra_platforms.UNIX_LAYERS</code><br/>โ‰› <em>Any Unix compatibility layers</em>"
        unix_layers_cygwin(<code>cygwin</code><br/>ฯพ <em>Cygwin</em>)
    end

Other groups

Other groups are available for convenience, but these overlaps:

---
title: <code>extra_platforms.EXTRA_GROUPS</code> - Overlapping groups, defined for convenience.
---
flowchart

    subgraph "<code>extra_platforms.ALL_PLATFORMS</code><br/>๐Ÿ–ฅ๏ธ <em>All platforms</em>"
        all_platforms_aix(<code>aix</code><br/>โžฟ <em>IBM AIX</em>)
        all_platforms_altlinux(<code>altlinux</code><br/>๐Ÿง <em>ALT Linux</em>)
        all_platforms_amzn(<code>amzn</code><br/>๐Ÿ™‚ <em>Amazon Linux</em>)
        all_platforms_android(<code>android</code><br/>๐Ÿค– <em>Android</em>)
        all_platforms_arch(<code>arch</code><br/>๐ŸŽ—๏ธ <em>Arch Linux</em>)
        all_platforms_buildroot(<code>buildroot</code><br/>โ›‘๏ธ <em>Buildroot</em>)
        all_platforms_centos(<code>centos</code><br/>๐Ÿ’  <em>CentOS</em>)
        all_platforms_cloudlinux(<code>cloudlinux</code><br/>๊ฉœ <em>CloudLinux OS</em>)
        all_platforms_cygwin(<code>cygwin</code><br/>ฯพ <em>Cygwin</em>)
        all_platforms_debian(<code>debian</code><br/>๐ŸŒ€ <em>Debian</em>)
        all_platforms_exherbo(<code>exherbo</code><br/>๐Ÿฝ <em>Exherbo Linux</em>)
        all_platforms_fedora(<code>fedora</code><br/>๐ŸŽฉ <em>Fedora</em>)
        all_platforms_freebsd(<code>freebsd</code><br/>๐Ÿ˜ˆ <em>FreeBSD</em>)
        all_platforms_gentoo(<code>gentoo</code><br/>๐Ÿ—œ๏ธ <em>Gentoo Linux</em>)
        all_platforms_guix(<code>guix</code><br/>๐Ÿƒ <em>Guix System</em>)
        all_platforms_hurd(<code>hurd</code><br/>๐Ÿƒ <em>GNU/Hurd</em>)
        all_platforms_ibm_powerkvm(<code>ibm_powerkvm</code><br/>๐Ÿคน <em>IBM PowerKVM</em>)
        all_platforms_kvmibm(<code>kvmibm</code><br/>๐Ÿคน <em>KVM for IBM z Systems</em>)
        all_platforms_linuxmint(<code>linuxmint</code><br/>๐ŸŒฟ <em>Linux Mint</em>)
        all_platforms_macos(<code>macos</code><br/>๐ŸŽ <em>macOS</em>)
        all_platforms_mageia(<code>mageia</code><br/>โฅ <em>Mageia</em>)
        all_platforms_mandriva(<code>mandriva</code><br/>๐Ÿ’ซ <em>Mandriva Linux</em>)
        all_platforms_midnightbsd(<code>midnightbsd</code><br/>๐ŸŒ˜ <em>MidnightBSD</em>)
        all_platforms_netbsd(<code>netbsd</code><br/>๐Ÿšฉ <em>NetBSD</em>)
        all_platforms_openbsd(<code>openbsd</code><br/>๐Ÿก <em>OpenBSD</em>)
        all_platforms_opensuse(<code>opensuse</code><br/>๐ŸฆŽ <em>openSUSE</em>)
        all_platforms_oracle(<code>oracle</code><br/>๐Ÿฆด <em>Oracle Linux</em>)
        all_platforms_parallels(<code>parallels</code><br/>โˆฅ <em>Parallels</em>)
        all_platforms_pidora(<code>pidora</code><br/>๐Ÿ“ <em>Pidora</em>)
        all_platforms_raspbian(<code>raspbian</code><br/>๐Ÿ“ <em>Raspbian</em>)
        all_platforms_rhel(<code>rhel</code><br/>๐ŸŽฉ <em>RedHat Enterprise Linux</em>)
        all_platforms_rocky(<code>rocky</code><br/>โ›ฐ๏ธ <em>Rocky Linux</em>)
        all_platforms_scientific(<code>scientific</code><br/>โš›๏ธ <em>Scientific Linux</em>)
        all_platforms_slackware(<code>slackware</code><br/>๐Ÿšฌ <em>Slackware</em>)
        all_platforms_sles(<code>sles</code><br/>๐ŸฆŽ <em>SUSE Linux Enterprise Server</em>)
        all_platforms_solaris(<code>solaris</code><br/>๐ŸŒž <em>Solaris</em>)
        all_platforms_sunos(<code>sunos</code><br/>โ˜€๏ธ <em>SunOS</em>)
        all_platforms_tumbleweed(<code>tumbleweed</code><br/>โ†ป <em>openSUSE Tumbleweed</em>)
        all_platforms_tuxedo(<code>tuxedo</code><br/>๐Ÿคต <em>Tuxedo OS</em>)
        all_platforms_ubuntu(<code>ubuntu</code><br/>๐ŸŽฏ <em>Ubuntu</em>)
        all_platforms_unknown_linux(<code>unknown_linux</code><br/>๐Ÿง <em>Unknown Linux</em>)
        all_platforms_windows(<code>windows</code><br/>๐ŸชŸ <em>Windows</em>)
        all_platforms_wsl1(<code>wsl1</code><br/>โŠž <em>Windows Subsystem for Linux v1</em>)
        all_platforms_wsl2(<code>wsl2</code><br/>โŠž <em>Windows Subsystem for Linux v2</em>)
        all_platforms_xenserver(<code>xenserver</code><br/>โ“ <em>XenServer</em>)
    end
    subgraph "<code>extra_platforms.BSD_WITHOUT_MACOS</code><br/>๐Ÿ…ฑ๏ธ <em>Any BSD but macOS</em>"
        bsd_without_macos_freebsd(<code>freebsd</code><br/>๐Ÿ˜ˆ <em>FreeBSD</em>)
        bsd_without_macos_midnightbsd(<code>midnightbsd</code><br/>๐ŸŒ˜ <em>MidnightBSD</em>)
        bsd_without_macos_netbsd(<code>netbsd</code><br/>๐Ÿšฉ <em>NetBSD</em>)
        bsd_without_macos_openbsd(<code>openbsd</code><br/>๐Ÿก <em>OpenBSD</em>)
        bsd_without_macos_sunos(<code>sunos</code><br/>โ˜€๏ธ <em>SunOS</em>)
    end
    subgraph "<code>extra_platforms.LINUX_LIKE</code><br/>๐Ÿง+ <em>Any Linux and compatibility layers</em>"
        linux_like_altlinux(<code>altlinux</code><br/>๐Ÿง <em>ALT Linux</em>)
        linux_like_amzn(<code>amzn</code><br/>๐Ÿ™‚ <em>Amazon Linux</em>)
        linux_like_android(<code>android</code><br/>๐Ÿค– <em>Android</em>)
        linux_like_arch(<code>arch</code><br/>๐ŸŽ—๏ธ <em>Arch Linux</em>)
        linux_like_buildroot(<code>buildroot</code><br/>โ›‘๏ธ <em>Buildroot</em>)
        linux_like_centos(<code>centos</code><br/>๐Ÿ’  <em>CentOS</em>)
        linux_like_cloudlinux(<code>cloudlinux</code><br/>๊ฉœ <em>CloudLinux OS</em>)
        linux_like_debian(<code>debian</code><br/>๐ŸŒ€ <em>Debian</em>)
        linux_like_exherbo(<code>exherbo</code><br/>๐Ÿฝ <em>Exherbo Linux</em>)
        linux_like_fedora(<code>fedora</code><br/>๐ŸŽฉ <em>Fedora</em>)
        linux_like_gentoo(<code>gentoo</code><br/>๐Ÿ—œ๏ธ <em>Gentoo Linux</em>)
        linux_like_guix(<code>guix</code><br/>๐Ÿƒ <em>Guix System</em>)
        linux_like_ibm_powerkvm(<code>ibm_powerkvm</code><br/>๐Ÿคน <em>IBM PowerKVM</em>)
        linux_like_kvmibm(<code>kvmibm</code><br/>๐Ÿคน <em>KVM for IBM z Systems</em>)
        linux_like_linuxmint(<code>linuxmint</code><br/>๐ŸŒฟ <em>Linux Mint</em>)
        linux_like_mageia(<code>mageia</code><br/>โฅ <em>Mageia</em>)
        linux_like_mandriva(<code>mandriva</code><br/>๐Ÿ’ซ <em>Mandriva Linux</em>)
        linux_like_opensuse(<code>opensuse</code><br/>๐ŸฆŽ <em>openSUSE</em>)
        linux_like_oracle(<code>oracle</code><br/>๐Ÿฆด <em>Oracle Linux</em>)
        linux_like_parallels(<code>parallels</code><br/>โˆฅ <em>Parallels</em>)
        linux_like_pidora(<code>pidora</code><br/>๐Ÿ“ <em>Pidora</em>)
        linux_like_raspbian(<code>raspbian</code><br/>๐Ÿ“ <em>Raspbian</em>)
        linux_like_rhel(<code>rhel</code><br/>๐ŸŽฉ <em>RedHat Enterprise Linux</em>)
        linux_like_rocky(<code>rocky</code><br/>โ›ฐ๏ธ <em>Rocky Linux</em>)
        linux_like_scientific(<code>scientific</code><br/>โš›๏ธ <em>Scientific Linux</em>)
        linux_like_slackware(<code>slackware</code><br/>๐Ÿšฌ <em>Slackware</em>)
        linux_like_sles(<code>sles</code><br/>๐ŸฆŽ <em>SUSE Linux Enterprise Server</em>)
        linux_like_tumbleweed(<code>tumbleweed</code><br/>โ†ป <em>openSUSE Tumbleweed</em>)
        linux_like_tuxedo(<code>tuxedo</code><br/>๐Ÿคต <em>Tuxedo OS</em>)
        linux_like_ubuntu(<code>ubuntu</code><br/>๐ŸŽฏ <em>Ubuntu</em>)
        linux_like_unknown_linux(<code>unknown_linux</code><br/>๐Ÿง <em>Unknown Linux</em>)
        linux_like_wsl1(<code>wsl1</code><br/>โŠž <em>Windows Subsystem for Linux v1</em>)
        linux_like_wsl2(<code>wsl2</code><br/>โŠž <em>Windows Subsystem for Linux v2</em>)
        linux_like_xenserver(<code>xenserver</code><br/>โ“ <em>XenServer</em>)
    end
    subgraph "<code>extra_platforms.UNIX</code><br/>โจท <em>Any Unix</em>"
        unix_aix(<code>aix</code><br/>โžฟ <em>IBM AIX</em>)
        unix_altlinux(<code>altlinux</code><br/>๐Ÿง <em>ALT Linux</em>)
        unix_amzn(<code>amzn</code><br/>๐Ÿ™‚ <em>Amazon Linux</em>)
        unix_android(<code>android</code><br/>๐Ÿค– <em>Android</em>)
        unix_arch(<code>arch</code><br/>๐ŸŽ—๏ธ <em>Arch Linux</em>)
        unix_buildroot(<code>buildroot</code><br/>โ›‘๏ธ <em>Buildroot</em>)
        unix_centos(<code>centos</code><br/>๐Ÿ’  <em>CentOS</em>)
        unix_cloudlinux(<code>cloudlinux</code><br/>๊ฉœ <em>CloudLinux OS</em>)
        unix_cygwin(<code>cygwin</code><br/>ฯพ <em>Cygwin</em>)
        unix_debian(<code>debian</code><br/>๐ŸŒ€ <em>Debian</em>)
        unix_exherbo(<code>exherbo</code><br/>๐Ÿฝ <em>Exherbo Linux</em>)
        unix_fedora(<code>fedora</code><br/>๐ŸŽฉ <em>Fedora</em>)
        unix_freebsd(<code>freebsd</code><br/>๐Ÿ˜ˆ <em>FreeBSD</em>)
        unix_gentoo(<code>gentoo</code><br/>๐Ÿ—œ๏ธ <em>Gentoo Linux</em>)
        unix_guix(<code>guix</code><br/>๐Ÿƒ <em>Guix System</em>)
        unix_hurd(<code>hurd</code><br/>๐Ÿƒ <em>GNU/Hurd</em>)
        unix_ibm_powerkvm(<code>ibm_powerkvm</code><br/>๐Ÿคน <em>IBM PowerKVM</em>)
        unix_kvmibm(<code>kvmibm</code><br/>๐Ÿคน <em>KVM for IBM z Systems</em>)
        unix_linuxmint(<code>linuxmint</code><br/>๐ŸŒฟ <em>Linux Mint</em>)
        unix_macos(<code>macos</code><br/>๐ŸŽ <em>macOS</em>)
        unix_mageia(<code>mageia</code><br/>โฅ <em>Mageia</em>)
        unix_mandriva(<code>mandriva</code><br/>๐Ÿ’ซ <em>Mandriva Linux</em>)
        unix_midnightbsd(<code>midnightbsd</code><br/>๐ŸŒ˜ <em>MidnightBSD</em>)
        unix_netbsd(<code>netbsd</code><br/>๐Ÿšฉ <em>NetBSD</em>)
        unix_openbsd(<code>openbsd</code><br/>๐Ÿก <em>OpenBSD</em>)
        unix_opensuse(<code>opensuse</code><br/>๐ŸฆŽ <em>openSUSE</em>)
        unix_oracle(<code>oracle</code><br/>๐Ÿฆด <em>Oracle Linux</em>)
        unix_parallels(<code>parallels</code><br/>โˆฅ <em>Parallels</em>)
        unix_pidora(<code>pidora</code><br/>๐Ÿ“ <em>Pidora</em>)
        unix_raspbian(<code>raspbian</code><br/>๐Ÿ“ <em>Raspbian</em>)
        unix_rhel(<code>rhel</code><br/>๐ŸŽฉ <em>RedHat Enterprise Linux</em>)
        unix_rocky(<code>rocky</code><br/>โ›ฐ๏ธ <em>Rocky Linux</em>)
        unix_scientific(<code>scientific</code><br/>โš›๏ธ <em>Scientific Linux</em>)
        unix_slackware(<code>slackware</code><br/>๐Ÿšฌ <em>Slackware</em>)
        unix_sles(<code>sles</code><br/>๐ŸฆŽ <em>SUSE Linux Enterprise Server</em>)
        unix_solaris(<code>solaris</code><br/>๐ŸŒž <em>Solaris</em>)
        unix_sunos(<code>sunos</code><br/>โ˜€๏ธ <em>SunOS</em>)
        unix_tumbleweed(<code>tumbleweed</code><br/>โ†ป <em>openSUSE Tumbleweed</em>)
        unix_tuxedo(<code>tuxedo</code><br/>๐Ÿคต <em>Tuxedo OS</em>)
        unix_ubuntu(<code>ubuntu</code><br/>๐ŸŽฏ <em>Ubuntu</em>)
        unix_unknown_linux(<code>unknown_linux</code><br/>๐Ÿง <em>Unknown Linux</em>)
        unix_wsl1(<code>wsl1</code><br/>โŠž <em>Windows Subsystem for Linux v1</em>)
        unix_wsl2(<code>wsl2</code><br/>โŠž <em>Windows Subsystem for Linux v2</em>)
        unix_xenserver(<code>xenserver</code><br/>โ“ <em>XenServer</em>)
    end
    subgraph "<code>extra_platforms.UNIX_WITHOUT_MACOS</code><br/>โจ‚ <em>Any Unix but macOS</em>"
        unix_without_macos_aix(<code>aix</code><br/>โžฟ <em>IBM AIX</em>)
        unix_without_macos_altlinux(<code>altlinux</code><br/>๐Ÿง <em>ALT Linux</em>)
        unix_without_macos_amzn(<code>amzn</code><br/>๐Ÿ™‚ <em>Amazon Linux</em>)
        unix_without_macos_android(<code>android</code><br/>๐Ÿค– <em>Android</em>)
        unix_without_macos_arch(<code>arch</code><br/>๐ŸŽ—๏ธ <em>Arch Linux</em>)
        unix_without_macos_buildroot(<code>buildroot</code><br/>โ›‘๏ธ <em>Buildroot</em>)
        unix_without_macos_centos(<code>centos</code><br/>๐Ÿ’  <em>CentOS</em>)
        unix_without_macos_cloudlinux(<code>cloudlinux</code><br/>๊ฉœ <em>CloudLinux OS</em>)
        unix_without_macos_cygwin(<code>cygwin</code><br/>ฯพ <em>Cygwin</em>)
        unix_without_macos_debian(<code>debian</code><br/>๐ŸŒ€ <em>Debian</em>)
        unix_without_macos_exherbo(<code>exherbo</code><br/>๐Ÿฝ <em>Exherbo Linux</em>)
        unix_without_macos_fedora(<code>fedora</code><br/>๐ŸŽฉ <em>Fedora</em>)
        unix_without_macos_freebsd(<code>freebsd</code><br/>๐Ÿ˜ˆ <em>FreeBSD</em>)
        unix_without_macos_gentoo(<code>gentoo</code><br/>๐Ÿ—œ๏ธ <em>Gentoo Linux</em>)
        unix_without_macos_guix(<code>guix</code><br/>๐Ÿƒ <em>Guix System</em>)
        unix_without_macos_hurd(<code>hurd</code><br/>๐Ÿƒ <em>GNU/Hurd</em>)
        unix_without_macos_ibm_powerkvm(<code>ibm_powerkvm</code><br/>๐Ÿคน <em>IBM PowerKVM</em>)
        unix_without_macos_kvmibm(<code>kvmibm</code><br/>๐Ÿคน <em>KVM for IBM z Systems</em>)
        unix_without_macos_linuxmint(<code>linuxmint</code><br/>๐ŸŒฟ <em>Linux Mint</em>)
        unix_without_macos_mageia(<code>mageia</code><br/>โฅ <em>Mageia</em>)
        unix_without_macos_mandriva(<code>mandriva</code><br/>๐Ÿ’ซ <em>Mandriva Linux</em>)
        unix_without_macos_midnightbsd(<code>midnightbsd</code><br/>๐ŸŒ˜ <em>MidnightBSD</em>)
        unix_without_macos_netbsd(<code>netbsd</code><br/>๐Ÿšฉ <em>NetBSD</em>)
        unix_without_macos_openbsd(<code>openbsd</code><br/>๐Ÿก <em>OpenBSD</em>)
        unix_without_macos_opensuse(<code>opensuse</code><br/>๐ŸฆŽ <em>openSUSE</em>)
        unix_without_macos_oracle(<code>oracle</code><br/>๐Ÿฆด <em>Oracle Linux</em>)
        unix_without_macos_parallels(<code>parallels</code><br/>โˆฅ <em>Parallels</em>)
        unix_without_macos_pidora(<code>pidora</code><br/>๐Ÿ“ <em>Pidora</em>)
        unix_without_macos_raspbian(<code>raspbian</code><br/>๐Ÿ“ <em>Raspbian</em>)
        unix_without_macos_rhel(<code>rhel</code><br/>๐ŸŽฉ <em>RedHat Enterprise Linux</em>)
        unix_without_macos_rocky(<code>rocky</code><br/>โ›ฐ๏ธ <em>Rocky Linux</em>)
        unix_without_macos_scientific(<code>scientific</code><br/>โš›๏ธ <em>Scientific Linux</em>)
        unix_without_macos_slackware(<code>slackware</code><br/>๐Ÿšฌ <em>Slackware</em>)
        unix_without_macos_sles(<code>sles</code><br/>๐ŸฆŽ <em>SUSE Linux Enterprise Server</em>)
        unix_without_macos_solaris(<code>solaris</code><br/>๐ŸŒž <em>Solaris</em>)
        unix_without_macos_sunos(<code>sunos</code><br/>โ˜€๏ธ <em>SunOS</em>)
        unix_without_macos_tumbleweed(<code>tumbleweed</code><br/>โ†ป <em>openSUSE Tumbleweed</em>)
        unix_without_macos_tuxedo(<code>tuxedo</code><br/>๐Ÿคต <em>Tuxedo OS</em>)
        unix_without_macos_ubuntu(<code>ubuntu</code><br/>๐ŸŽฏ <em>Ubuntu</em>)
        unix_without_macos_unknown_linux(<code>unknown_linux</code><br/>๐Ÿง <em>Unknown Linux</em>)
        unix_without_macos_wsl1(<code>wsl1</code><br/>โŠž <em>Windows Subsystem for Linux v1</em>)
        unix_without_macos_wsl2(<code>wsl2</code><br/>โŠž <em>Windows Subsystem for Linux v2</em>)
        unix_without_macos_xenserver(<code>xenserver</code><br/>โ“ <em>XenServer</em>)
    end

[!IMPORTANT] All the graphs above would be better off if merged. Unfortunately Graphviz is not capable of producing Euler diagrams. Only non-overlapping clusters can be rendered.

There's still a chance to have them supported by Mermaid so we can switch to that if the feature materialize.

Used in

Check these projects to get real-life examples of extra-platforms usage:

Feel free to send a PR to add your project in this list if you are relying on Click Extra in any way.

Development

Development guidelines are the same as parent project Click Extra, from which extra-platforms originated.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc