Constants¶
Setup strings¶
These strings are used for version control and setup.py for distribution.
__numversion__¶
- burger.__numversion__ = (1, 2, 7)¶
Numeric version.
__version__¶
- burger.__version__ = ".".join([str(num) for num in __numversion__])¶
Current version of the library.
__title__¶
- burger.__title__ = "burger"¶
Name of the module.
__summary__¶
- burger.__summary__ = "Burger Becky's shared python library."¶
Summary of the module’s use.
__uri__¶
- burger.__uri__ = "http://pyburger.readthedocs.io"¶
Home page.
__email__¶
- burger.__email__ = "becky@burgerbecky.com"¶
Email address for bug reports.
__license__¶
- burger.__license__ = "MIT License"¶
Type of license used for distribution.
__copyright__¶
- burger.__copyright__ = "Copyright 2013-2022 Rebecca Ann Heineman"¶
Copyright owner.
Configurations¶
Detect the version of the Python interpreter
strutils.PY2¶
- burger.strutils.PY2 = 2¶
True if the interpreter is Python 2.x.
strutils.PY3_OR_HIGHER¶
- burger.strutils.PY3_OR_HIGHER = 3¶
True if the interpreter is Python 3.x or higher.
strutils.PY3_3_OR_HIGHER¶
- burger.strutils.PY3_3_OR_HIGHER = (3, 3, 0)¶
True if the interpreter is Python 3.3 or higher.
strutils.PY3_4_OR_HIGHER¶
- burger.strutils.PY3_4_OR_HIGHER = (3, 4, 0)¶
True if the interpreter is Python 3.4 or higher.
strutils.PY3_5_OR_HIGHER¶
- burger.strutils.PY3_5_OR_HIGHER = (3, 5, 0)¶
True if the interpreter is Python 3.5 or higher.
strutils.PYPY¶
- burger.strutils.PYPY = "PyPy"¶
True if the interpreter is PyPy.
strutils.IS_LINUX¶
- burger.strutils.IS_LINUX = sys.platform.startswith("linux")¶
Running on linux?
strutils.IS_MACOSX¶
- burger.strutils.IS_MACOSX = sys.platform.startswith("darwin")¶
Running on macOS X.
strutils.IS_CYGWIN¶
- burger.strutils.IS_CYGWIN = sys.platform.startswith("cygwin")¶
Running on Cygwin.
strutils.IS_MSYS¶
- burger.strutils.IS_MSYS = sys.platform.startswith("msys")¶
Running on MSYS.
strutils.IS_WSL¶
- burger.strutils.IS_WSL = IS_LINUX and "icrosoft" in platform.platform()¶
Running on Windows Subsystem for Linux.
strutils.IS_WINDOWS¶
- burger.strutils.IS_WINDOWS = sys.platform.startswith("win")¶
Running on Windows.
strutils.UNICODE¶
- burger.strutils.UNICODE = unicode¶
Class for declaring unicode strings.
strutils.LONG¶
- burger.strutils.LONG = long¶
Class for declaring 64 bit integers.