https://github.com/qoretechnologies/module-python
module for providing bidirectional API support for Qore APIs in Python and vice-versa
https://github.com/qoretechnologies/module-python
Last synced: 5 months ago
JSON representation
module for providing bidirectional API support for Qore APIs in Python and vice-versa
- Host: GitHub
- URL: https://github.com/qoretechnologies/module-python
- Owner: qoretechnologies
- Created: 2020-04-26T14:09:33.000Z (about 6 years ago)
- Default Branch: develop
- Last Pushed: 2025-12-29T14:36:22.000Z (5 months ago)
- Last Synced: 2026-01-01T03:59:44.327Z (5 months ago)
- Language: C++
- Size: 526 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Qore Python Module
This module provides bidirectional integration between Qore and Python, allowing:
- **Qore code to call Python**: Import Python modules, classes, and functions into Qore programs
- **Python code to call Qore**: Use the `qoreloader` module to import Qore APIs into Python programs
- **Cross-language inheritance**: Qore classes can inherit Python classes and vice-versa
## Requirements
- Qore 1.0+
- Python 3.7 - 3.11
- CMake 3.5+
- C++11 compatible compiler
## Building
```bash
mkdir build && cd build
cmake ..
make
make install
```
## Quick Start
### Using Python from Qore
```qore
%requires python
# Import Python's math module
%module-cmd(python) import math
# Use Python functions in Qore
float result = math::sin(1.0);
```
### Using Qore from Python
```python
import qoreloader
from qore.SqlUtil import Table
# Use Qore classes in Python
t = Table("pgsql:user/pass@db", "my_table")
```
## Documentation
Full documentation is available in the module's Doxygen documentation, generated during the build process.
## License
MIT License - see COPYING.MIT for details.
## Links
- [Qore Programming Language](https://qore.org)
- [Issue Tracker](https://github.com/qorelanguage/qore/issues)