-
Notifications
You must be signed in to change notification settings - Fork 0
yonilevy/pywrp
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
pywrp is a thin C++ wrapper around the pythoncore library.
Usage example:
===============
#include <iostream>
#include <string>
#include "pywrp/py.h"
int main() {
py::Python python;
auto os(python.import("os"));
auto pardir(os->get<std::string>("pardir"));
auto files(os->call<py::ObjectPtrList>("listdir", pardir));
for (auto file = files.begin() ; file != files.end() ; ++file) {
std::cout << "file: " << file->get()->asString() << std::endl;
}
return 0;
}
About
A thin C++ wrapper around the pythoncore library
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published