diff --git a/setup.py b/setup.py
index 055ec32e21f08b207addb110342d75669e8b0db4..c0211cb36466b5da02707d620cc716d54b3142b6 100644
--- a/setup.py
+++ b/setup.py
@@ -208,7 +208,7 @@ with open("README.md", "r") as fh:
 
 setup(
     name='pybgs',
-    version='3.2.0.post0',
+    version='3.2.0.post1',
     author='Andrews Sobral',
     author_email='andrewssobral@gmail.com',
     url='https://github.com/andrewssobral/bgslibrary',
diff --git a/wrapper/python/bgslibrary_module.cpp b/wrapper/python/bgslibrary_module.cpp
index 7e996b5e705d827eb56d60128c07ca9346f49e12..36f5609fdda683b715288655e6b388e215a54ec9 100644
--- a/wrapper/python/bgslibrary_module.cpp
+++ b/wrapper/python/bgslibrary_module.cpp
@@ -35,6 +35,8 @@ PYBIND11_MODULE(pybgs, m)
 {
   NDArrayConverter::init_numpy();
   m.doc() = "python wrapper for bgslibrary using pybind11";
+  py::object version = py::cast("3.2.0");
+  m.attr("__version__") = version;
 
   // Basic test
   m.def("read_image", &read_image, "A function that read an image", py::arg("image"));