Package API¶
The version of the installed commol and the commit it was built from. Save them with a result to name the code that made it. Guide: Check the installation.
commol.__version__ is the PEP 440 version, the same as
build_info().version: the version of a release, or the placeholder
version with the commit as a local version (0.1.0+g<first 7 characters of
the commit>) for a build that is not a release.
Commol logs to the logger commol and its children, and adds only a
logging.NullHandler. Your application chooses where the messages go. Guide:
Log messages.
build_info ¶
build_info() -> BuildInfo
Return the version of the installed commol and the commit it was built from.
Save it with a result to name the code that made it.
Returns:
| Type | Description |
|---|---|
BuildInfo
|
The version and the full commit, read when the extension was built. |
Source code in commol/api/build_info.py
BuildInfo ¶
Bases: BaseModel
The version of the installed commol and the commit it was built from.
Attributes:
| Name | Type | Description |
|---|---|---|
version |
str
|
The PEP 440 version, the one |
commit |
str | None
|
The full hash of the git commit of the source, or None when the source has no git metadata, such as a source distribution. |