Skip to content

yonilevy/pywrp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

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

No packages published

Languages