Debian Codegraph @

testing/mozbase/mozinfo/mozinfo/__init__.py

raw
1 # flake8: noqa
2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 # You can obtain one at http://mozilla.org/MPL/2.0/.
5
6 """
7 interface to transform introspected system information to a format palatable to
8 Mozilla
9
10 Module variables:
11
12 .. attribute:: bits
13
14 32 or 64
15
16 .. attribute:: isLinux
17
18 Returns ``True`` if the operating system is Linux
19
20 .. attribute:: isMac
21
22 Returns ``True`` if the operating system is Mac
23
24 .. attribute:: isWin
25
26 Returns ``True`` if the operating system is Windows
27
28 .. attribute:: os
29
30 Operating system [``'win'``, ``'mac'``, ``'linux'``, ...]
31
32 .. attribute:: processor
33
34 Processor architecture [``'x86'``, ``'x86_64'``, ``'aarch64'``, ...]
35
36 .. attribute:: version
37
38 Operating system version string. For windows, the service pack information is also included
39
40 .. attribute:: info
41
42 Returns information identifying the current system.
43
44 * :attr:`bits`
45 * :attr:`os`
46 * :attr:`processor`
47 * :attr:`version`
48
49 """
50
51 from . import mozinfo
52 from .mozinfo import *
53
54 __all__ = mozinfo.__all__