Skip to content

Feature/additions #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .history/py2c/README_20240704011237.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Python to C++ interface

Using the following instructions you can call your **existing Python modules** from C/C++. I'm using Pure Embedding instructions taken from [here](https://docs.python.org/release/3.5.5/extending/embedding.html#pure-embedding). This is not a general solution and needs a little bit more work, but using this example code you can run any Python function from C/C++ and even pass arguments (only supports integer values). Hopefully you can adapt it to your situataion.


## Runnable script
Using the `run.sh` script, the `runpython.c` code calls the `multiply` function from the `mathUtils.py` module and gets back the results. you can play around with the last command and call your own Python modules in the following way:
```bash
./a.out <module_name> <function_name> <integer_arguments_list>
```

To integrate this into your own program, you can use `runpython.c` as a template, but need to handle your Python object in C using `PyObject`. This can represent any Python object, but doing it is needs some coding. Please refer to [Python/C Api Reference Manual](https://docs.python.org/release/3.5.5/c-api/index.html#c-api-index) for more information on how to do this.
12 changes: 12 additions & 0 deletions .history/py2c/README_20240710013546.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!-- # Python to C++ interface

Using the following instructions you can call your **existing Python modules** from C/C++. I'm using Pure Embedding instructions taken from [here](https://docs.python.org/release/3.5.5/extending/embedding.html#pure-embedding). This is not a general solution and needs a little bit more work, but using this example code you can run any Python function from C/C++ and even pass arguments (only supports integer values). Hopefully you can adapt it to your situataion.


## Runnable script
Using the `run.sh` script, the `runpython.c` code calls the `multiply` function from the `mathUtils.py` module and gets back the results. you can play around with the last command and call your own Python modules in the following way:
```bash
./a.out <module_name> <function_name> <integer_arguments_list>
```

To integrate this into your own program, you can use `runpython.c` as a template, but need to handle your Python object in C using `PyObject`. This can represent any Python object, but doing it is needs some coding. Please refer to [Python/C Api Reference Manual](https://docs.python.org/release/3.5.5/c-api/index.html#c-api-index) for more information on how to do this. -->
33 changes: 33 additions & 0 deletions .history/py2c/README_20240710013550.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!-- # Python to C++ interface

Using the following instructions you can call your **existing Python modules** from C/C++. I'm using Pure Embedding instructions taken from [here](https://docs.python.org/release/3.5.5/extending/embedding.html#pure-embedding). This is not a general solution and needs a little bit more work, but using this example code you can run any Python function from C/C++ and even pass arguments (only supports integer values). Hopefully you can adapt it to your situataion.


## Runnable script
Using the `run.sh` script, the `runpython.c` code calls the `multiply` function from the `mathUtils.py` module and gets back the results. you can play around with the last command and call your own Python modules in the following way:
```bash
./a.out <module_name> <function_name> <integer_arguments_list>
```

To integrate this into your own program, you can use `runpython.c` as a template, but need to handle your Python object in C using `PyObject`. This can represent any Python object, but doing it is needs some coding. Please refer to [Python/C Api Reference Manual](https://docs.python.org/release/3.5.5/c-api/index.html#c-api-index) for more information on how to do this. -->

Sure, I'll update the README to include the requirement for `jq` and provide a link for installation.

```markdown:py2c/README.md
# Python to C++ interface

Using the following instructions you can call your **existing Python modules** from C/C++. I'm using Pure Embedding instructions taken from [here](https://docs.python.org/release/3.5.5/extending/embedding.html#pure-embedding). This is not a general solution and needs a little bit more work, but using this example code you can run any Python function from C/C++ and even pass arguments (only supports integer values). Hopefully you can adapt it to your situation.

## Prerequisites
- `jq` is required. You can install it from [here](https://stedolan.github.io/jq/download/).

## Runnable script
Using the `run.sh` script, the `runpython.c` code calls the `multiply` function from the `mathUtils.py` module and gets back the results. you can play around with the last command and call your own Python modules in the following way:
```bash
./a.out <module_name> <function_name> <integer_arguments_list>
```

To integrate this into your own program, you can use `runpython.c` as a template, but need to handle your Python object in C using `PyObject`. This can represent any Python object, but doing it is needs some coding. Please refer to [Python/C Api Reference Manual](https://docs.python.org/release/3.5.5/c-api/index.html#c-api-index) for more information on how to do this.
```

This update includes the requirement for `jq` and provides a link for installation.
32 changes: 32 additions & 0 deletions .history/py2c/README_20240710013555.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!-- # Python to C++ interface

Using the following instructions you can call your **existing Python modules** from C/C++. I'm using Pure Embedding instructions taken from [here](https://docs.python.org/release/3.5.5/extending/embedding.html#pure-embedding). This is not a general solution and needs a little bit more work, but using this example code you can run any Python function from C/C++ and even pass arguments (only supports integer values). Hopefully you can adapt it to your situataion.


## Runnable script
Using the `run.sh` script, the `runpython.c` code calls the `multiply` function from the `mathUtils.py` module and gets back the results. you can play around with the last command and call your own Python modules in the following way:
```bash
./a.out <module_name> <function_name> <integer_arguments_list>
```

To integrate this into your own program, you can use `runpython.c` as a template, but need to handle your Python object in C using `PyObject`. This can represent any Python object, but doing it is needs some coding. Please refer to [Python/C Api Reference Manual](https://docs.python.org/release/3.5.5/c-api/index.html#c-api-index) for more information on how to do this. -->

Sure, I'll update the README to include the requirement for `jq` and provide a link for installation.

```markdown:py2c/README.md
# Python to C++ interface

Using the following instructions you can call your **existing Python modules** from C/C++. I'm using Pure Embedding instructions taken from [here](https://docs.python.org/release/3.5.5/extending/embedding.html#pure-embedding). This is not a general solution and needs a little bit more work, but using this example code you can run any Python function from C/C++ and even pass arguments (only supports integer values). Hopefully you can adapt it to your situation.

## Prerequisites
- `jq` is required. You can install it from [here](https://stedolan.github.io/jq/download/).

## Runnable script
Using the `run.sh` script, the `runpython.c` code calls the `multiply` function from the `mathUtils.py` module and gets back the results. you can play around with the last command and call your own Python modules in the following way:
```bash
./a.out <module_name> <function_name> <integer_arguments_list>
```

To integrate this into your own program, you can use `runpython.c` as a template, but need to handle your Python object in C using `PyObject`. This can represent any Python object, but doing it is needs some coding. Please refer to [Python/C Api Reference Manual](https://docs.python.org/release/3.5.5/c-api/index.html#c-api-index) for more information on how to do this.
```

31 changes: 31 additions & 0 deletions .history/py2c/README_20240710013556.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!-- # Python to C++ interface

Using the following instructions you can call your **existing Python modules** from C/C++. I'm using Pure Embedding instructions taken from [here](https://docs.python.org/release/3.5.5/extending/embedding.html#pure-embedding). This is not a general solution and needs a little bit more work, but using this example code you can run any Python function from C/C++ and even pass arguments (only supports integer values). Hopefully you can adapt it to your situataion.


## Runnable script
Using the `run.sh` script, the `runpython.c` code calls the `multiply` function from the `mathUtils.py` module and gets back the results. you can play around with the last command and call your own Python modules in the following way:
```bash
./a.out <module_name> <function_name> <integer_arguments_list>
```

To integrate this into your own program, you can use `runpython.c` as a template, but need to handle your Python object in C using `PyObject`. This can represent any Python object, but doing it is needs some coding. Please refer to [Python/C Api Reference Manual](https://docs.python.org/release/3.5.5/c-api/index.html#c-api-index) for more information on how to do this. -->

Sure, I'll update the README to include the requirement for `jq` and provide a link for installation.

```markdown:py2c/README.md
# Python to C++ interface

Using the following instructions you can call your **existing Python modules** from C/C++. I'm using Pure Embedding instructions taken from [here](https://docs.python.org/release/3.5.5/extending/embedding.html#pure-embedding). This is not a general solution and needs a little bit more work, but using this example code you can run any Python function from C/C++ and even pass arguments (only supports integer values). Hopefully you can adapt it to your situation.

## Prerequisites
- `jq` is required. You can install it from [here](https://stedolan.github.io/jq/download/).

## Runnable script
Using the `run.sh` script, the `runpython.c` code calls the `multiply` function from the `mathUtils.py` module and gets back the results. you can play around with the last command and call your own Python modules in the following way:
```bash
./a.out <module_name> <function_name> <integer_arguments_list>
```

To integrate this into your own program, you can use `runpython.c` as a template, but need to handle your Python object in C using `PyObject`. This can represent any Python object, but doing it is needs some coding. Please refer to [Python/C Api Reference Manual](https://docs.python.org/release/3.5.5/c-api/index.html#c-api-index) for more information on how to do this.
```
31 changes: 31 additions & 0 deletions .history/py2c/README_20240710013606.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!-- # Python to C++ interface

Using the following instructions you can call your **existing Python modules** from C/C++. I'm using Pure Embedding instructions taken from [here](https://docs.python.org/release/3.5.5/extending/embedding.html#pure-embedding). This is not a general solution and needs a little bit more work, but using this example code you can run any Python function from C/C++ and even pass arguments (only supports integer values). Hopefully you can adapt it to your situataion.


## Runnable script
Using the `run.sh` script, the `runpython.c` code calls the `multiply` function from the `mathUtils.py` module and gets back the results. you can play around with the last command and call your own Python modules in the following way:
```bash
./a.out <module_name> <function_name> <integer_arguments_list>
```

To integrate this into your own program, you can use `runpython.c` as a template, but need to handle your Python object in C using `PyObject`. This can represent any Python object, but doing it is needs some coding. Please refer to [Python/C Api Reference Manual](https://docs.python.org/release/3.5.5/c-api/index.html#c-api-index) for more information on how to do this. -->

Sure, I'll update the README to include the requirement for `jq` and provide a link for installation.

```markdown:py2c/README.md
# Python to C++ interface

Using the following instructions you can call your **existing Python modules** from C/C++. I'm using Pure Embedding instructions taken from [here](https://docs.python.org/release/3.5.5/extending/embedding.html#pure-embedding). This is not a general solution and needs a little bit more work, but using this example code you can run any Python function from C/C++ and even pass arguments (only supports integer values). Hopefully you can adapt it to your situation.

## Prerequisites
- `jq` is required. You can install it from [here](https://stedolan.github.io/jq/download/).

## Runnable script
Using the `run.sh` script, the `runpython.c` code calls the `multiply` function from the `mathUtils.py` module and gets back the results. you can play around with the last command and call your own Python modules in the following way:
```bash
./a.out <module_name> <function_name> <integer_arguments_list>
```

To integrate this into your own program, you can use `runpython.c` as a template, but need to handle your Python object in C using `PyObject`. This can represent any Python object, but doing it is needs some coding. Please refer to [Python/C Api Reference Manual](https://docs.python.org/release/3.5.5/c-api/index.html#c-api-index) for more information on how to do this.
``
30 changes: 30 additions & 0 deletions .history/py2c/README_20240710013608.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!-- # Python to C++ interface

Using the following instructions you can call your **existing Python modules** from C/C++. I'm using Pure Embedding instructions taken from [here](https://docs.python.org/release/3.5.5/extending/embedding.html#pure-embedding). This is not a general solution and needs a little bit more work, but using this example code you can run any Python function from C/C++ and even pass arguments (only supports integer values). Hopefully you can adapt it to your situataion.


## Runnable script
Using the `run.sh` script, the `runpython.c` code calls the `multiply` function from the `mathUtils.py` module and gets back the results. you can play around with the last command and call your own Python modules in the following way:
```bash
./a.out <module_name> <function_name> <integer_arguments_list>
```

To integrate this into your own program, you can use `runpython.c` as a template, but need to handle your Python object in C using `PyObject`. This can represent any Python object, but doing it is needs some coding. Please refer to [Python/C Api Reference Manual](https://docs.python.org/release/3.5.5/c-api/index.html#c-api-index) for more information on how to do this. -->

Sure, I'll update the README to include the requirement for `jq` and provide a link for installation.

```markdown:py2c/README.md
# Python to C++ interface

Using the following instructions you can call your **existing Python modules** from C/C++. I'm using Pure Embedding instructions taken from [here](https://docs.python.org/release/3.5.5/extending/embedding.html#pure-embedding). This is not a general solution and needs a little bit more work, but using this example code you can run any Python function from C/C++ and even pass arguments (only supports integer values). Hopefully you can adapt it to your situation.

## Prerequisites
- `jq` is required. You can install it from [here](https://stedolan.github.io/jq/download/).

## Runnable script
Using the `run.sh` script, the `runpython.c` code calls the `multiply` function from the `mathUtils.py` module and gets back the results. you can play around with the last command and call your own Python modules in the following way:
```bash
./a.out <module_name> <function_name> <integer_arguments_list>
```

To integrate this into your own program, you can use `runpython.c` as a template, but need to handle your Python object in C using `PyObject`. This can represent any Python object, but doing it is needs some coding. Please refer to [Python/C Api Reference Manual](https://docs.python.org/release/3.5.5/c-api/index.html#c-api-index) for more information on how to do this.
30 changes: 30 additions & 0 deletions .history/py2c/README_20240710013611.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!-- # Python to C++ interface

Using the following instructions you can call your **existing Python modules** from C/C++. I'm using Pure Embedding instructions taken from [here](https://docs.python.org/release/3.5.5/extending/embedding.html#pure-embedding). This is not a general solution and needs a little bit more work, but using this example code you can run any Python function from C/C++ and even pass arguments (only supports integer values). Hopefully you can adapt it to your situataion.


## Runnable script
Using the `run.sh` script, the `runpython.c` code calls the `multiply` function from the `mathUtils.py` module and gets back the results. you can play around with the last command and call your own Python modules in the following way:
```bash
./a.out <module_name> <function_name> <integer_arguments_list>
```

To integrate this into your own program, you can use `runpython.c` as a template, but need to handle your Python object in C using `PyObject`. This can represent any Python object, but doing it is needs some coding. Please refer to [Python/C Api Reference Manual](https://docs.python.org/release/3.5.5/c-api/index.html#c-api-index) for more information on how to do this. -->

Sure, I'll update the README to include the requirement for `jq` and provide a link for installation.

```markdown:py2c/README.md
# Python to C++ interface

Using the following instructions you can call your **existing Python modules** from C/C++. I'm using Pure Embedding instructions taken from [here](https://docs.python.org/release/3.5.5/extending/embedding.html#pure-embedding). This is not a general solution and needs a little bit more work, but using this example code you can run any Python function from C/C++ and even pass arguments (only supports integer values). Hopefully you can adapt it to your situation.

## Prerequisites
- `jq` is required. You can install it from [here](https://stedolan.github.io/jq/download/).

## Runnable script
Using the `run.sh` script, the `runpython.c` code calls the `multiply` function from the `mathUtils.py` module and gets back the results. you can play around with the last command and call your own Python modules in the following way:
```bash
./a.out <module_name> <function_name> <integer_arguments_list>
```

To integrate this into your own program, you can use `runpython.c` as a template, but need to handle your Python object in C using `PyObject`. This can represent any Python object, but doing it is needs some coding. Please refer to [Python/C Api Reference Manual](https://docs.python.org/release/3.5.5/c-api/index.html#c-api-index) for more information on how to do this.
Loading