Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dahlitzflorian/python-with-cpp
Demonstrates how to extend your Python code with faster C++ code.
https://github.com/dahlitzflorian/python-with-cpp
cpp docker dockerfile dockerfiles python python-3 python3
Last synced: 1 day ago
JSON representation
Demonstrates how to extend your Python code with faster C++ code.
- Host: GitHub
- URL: https://github.com/dahlitzflorian/python-with-cpp
- Owner: DahlitzFlorian
- License: apache-2.0
- Created: 2018-12-29T15:19:53.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-26T20:44:34.000Z (almost 6 years ago)
- Last Synced: 2024-11-11T00:25:01.619Z (2 months ago)
- Topics: cpp, docker, dockerfile, dockerfiles, python, python-3, python3
- Language: Makefile
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://medium.com/@keithwhitley/using-c-with-python-3-in-2018-480f3e46c8c).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`:```PowerShell
$ 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:
```PowerShell
$ docker-compose run app python3 -i math_addition.py
```