Startseite » 2025 » November
Archiv des Monats: November 2025
pybind11 – Python in C++

https://pybind11.readthedocs.io/en/stable/advanced/embedding.html
CMake
cmake_minimum_required(VERSION 3.15...4.0)
project(example)
find_package(pybind11 REQUIRED) # or `add_subdirectory(pybind11)`
add_executable(example main.cpp)
target_link_libraries(example PRIVATE pybind11::embed)C++
#include <pybind11/embed.h> // everything needed for embedding
namespace py = pybind11;
int main() {
py::scoped_interpreter guard{}; // start the interpreter and keep it alive
py::print("Hello, World!"); // use the Python API
}C++
#include <pybind11/embed.h>
namespace py = pybind11;
int main() {
py::scoped_interpreter guard{};
py::exec(R"(
kwargs = dict(name="World", number=42)
message = "Hello, {name}! The answer is {number}".format(**kwargs)
print(message)
)");
}C++
#include <pybind11/embed.h>
#include <iostream>
namespace py = pybind11;
using namespace py::literals;
int main() {
py::scoped_interpreter guard{};
auto locals = py::dict("name"_a="World", "number"_a=42);
py::exec(R"(
message = "Hello, {name}! The answer is {number}".format(**locals())
)", py::globals(), locals);
auto message = locals["message"].cast<std::string>();
std::cout << message;
}https://pybind11.readthedocs.io/en/stable/advanced/embedding.html
httraqt – Webseitenkopie
Linux und Windows
Webseiten spiegeln …
Windows: https://www.httrack.com/
Linux: https://sourceforge.net/projects/httraqt
Bash
bla@bla-linux-desktop:/xxx$ sudo apt-cache search httrack
[sudo] Passwort für bla:
httraqt - program for downloading of internet sites
webhttrack-common - webhttrack common files
httrack - Offline-Browser - kopiert Webpräsenzen auf Ihren Computer
httrack-doc - Httrack-Webseitenkopierer - zusätzliche Dokumentation
libhttrack-dev - Httrack Website Kopierer-Include- und Entwicklungsdateien
libhttrack2 - Webseiten-Kopier-Bibliothek Httrack
proxytrack - Erstellt HTTP-Caches mit von HTTrack archivierten Websites
webhttrack - Kopiert Webseiten auf Ihren Computer, httrack mit einer Web-GUI
bla@bla-linux-desktop:/xxx$ sudo apt install httraqt
bla@bla-linux-desktop:/xxx$ httrack
Welcome to HTTrack Website Copier (Offline Browser) 3.49-5
Copyright (C) 1998-2017 Xavier Roche and other contributors
To see the option list, enter a blank line or try httrack --help












