Skip to content

Commit

Permalink
Expose version info (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
wallies authored Sep 23, 2024
1 parent 32d6b6c commit 3ca3fee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ fn tantivy(_py: Python, m: &Bound<PyModule>) -> PyResult<()> {

m.add_wrapped(wrap_pymodule!(query_parser_error))?;

m.add("__version__", tv::version_string())?;

Ok(())
}

Expand Down
3 changes: 3 additions & 0 deletions tantivy/tantivy.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -439,3 +439,6 @@ class SnippetGenerator:

def set_max_num_chars(self, max_num_chars: int) -> None:
pass

__version__: str

0 comments on commit 3ca3fee

Please sign in to comment.