title: Calling a C++ Functions through a Python Script
body: <p>I have a scenario where I have some functions in C++ classes and I want to be able to call them using a python script. Let's say I have a function</p>
  
  <pre><code>void greet(_msg);
      std::cout &gt;&gt; _msg &gt;&gt; std::endl;
  </code></pre>
  
  <p>I want to be able to call it trough a custom Python call and pass arguments to it, for example using</p>
  
  <pre><code>saySomething("Hello")
  </code></pre>
  
  <p>As a .py file I want it to call the greet function and pass "Hello" as an argument.</p>
  
  <p>I know it's a subject that has been throughly discussed, and I've done a share of research on embedding python in C++, I've managed to read values from a python script using the standard Python/C API and run a function in Python from C++ and pass argument to it, but I can't seem to get my head around how to achieve this specific outcome.</p>
  
  <p>I've had a look at ctypes and various wrappin libraries such as boost:python or swig, but I can't seem to understand to which degree they could help me achieve want I want.</p>