diff --git a/cognite/neat/_session/_base.py b/cognite/neat/_session/_base.py index eca9494e2..dd609c8f7 100644 --- a/cognite/neat/_session/_base.py +++ b/cognite/neat/_session/_base.py @@ -2,6 +2,7 @@ from cognite.client import CogniteClient +from cognite.neat import _version from cognite.neat._issues import IssueList from cognite.neat._rules import importers from cognite.neat._rules._shared import ReadRules @@ -34,6 +35,10 @@ def __init__( self.prepare = PrepareAPI(self._state, verbose) self.show = ShowAPI(self._state) + @property + def version(self) -> str: + return _version.__version__ + def verify(self) -> IssueList: output = VerifyAnyRules("continue").try_transform(self._state.input_rule) if output.rules: diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 23046ccd4..5bdc560b8 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -20,6 +20,7 @@ Changes are grouped as follows: - Handling of CDM extension ### Added - `neat.prepare.reduce` now support dropping individual views from a `Cognite` model. +- `neat.version` returns the version of the `neat` package. ## [0.95.0] - 29-10-**2024** ### Fixed