Skip to content

Demonstrates how to extend your Python code with faster C++ code.

License

Notifications You must be signed in to change notification settings

DahlitzFlorian/python-with-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python with C++

Description

This repository contains an example project demonstrating how to extend Python code with faster C++ code. To simplify the dependency management this is build inside of a docker container. The whole project was inspired by a Medium article.

version 1.0.2

Using Docker-Compose

To build and run this project in the correct order and see some sample could being executed, simply use docker-compose:

$ docker-compose up --build

If you want further to enter an interacting Python REPL and play around with the C++-based module, use the following command:

$ docker-compose run app python3 -i math_addition.py