Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thp/pyotherside
Python Bindings for Qt 5 and Qt 6. Allows you to access a CPython 3 interpreter directly from your Qt QML user interface code.
https://github.com/thp/pyotherside
python3 qt6
Last synced: about 1 month ago
JSON representation
Python Bindings for Qt 5 and Qt 6. Allows you to access a CPython 3 interpreter directly from your Qt QML user interface code.
- Host: GitHub
- URL: https://github.com/thp/pyotherside
- Owner: thp
- License: other
- Created: 2011-05-30T18:43:45.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2024-05-31T06:50:10.000Z (6 months ago)
- Last Synced: 2024-09-29T07:41:54.222Z (about 2 months ago)
- Topics: python3, qt6
- Language: C++
- Homepage: https://thp.io/2011/pyotherside/
- Size: 654 KB
- Stars: 364
- Watchers: 32
- Forks: 49
- Open Issues: 27
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
PyOtherSide: Python 3 QML Plugin for Qt 5 and Qt 6
==================================================[![Build and test](https://github.com/thp/pyotherside/actions/workflows/build.yaml/badge.svg)](https://github.com/thp/pyotherside/actions/workflows/build.yaml) [![Documentation](https://readthedocs.org/projects/pyotherside/badge/?version=latest&style=flat)](https://pyotherside.readthedocs.io/en/latest/)
A Qt plugin providing access to a Python 3 interpreter from QML
for creating asynchronous mobile and Desktop UIs with Python.Requirements
------------* Qt 5.1.0 or newer (Qt 6.x also supported)
* Python 3.8.0 or newerBuilding
--------To build and install the QML plugin:
```
qmake # use "qmake6" for Qt 6
make
make install
```To build against a specific Python version, use:
```
qmake PYTHON_CONFIG=python3.8-config # use "qmake6" for Qt 6
make
make install
```To manually update the qmltypes file on x64 Linux (TODO: make this automated):
```
qmake # use "qmake6" for Qt 6
make
make INSTALL_ROOT=$(pwd)/tmp/
QML2_IMPORT_PATH=$(pwd)/tmp/usr/lib/x86_64-linux-gnu/qt5/qml \
make -C src qmltypes
```Unit Testing
------------To run the included unit tests after building, use:
```
./tests/tests
```Static Linking
--------------If you want to link PyOtherSide statically against Python 3, you can include
the Python Standard Library in PyOtherSide as Qt Resource and have it extracted
automatically on load, for this, zip up the Standard Library and place the .zip
file as "pythonlib.zip" into src/ before running qmake.More information
----------------- Project page: https://thp.io/2011/pyotherside/
- Git repo: http://github.com/thp/pyotherside/
- Bug tracker: https://github.com/thp/pyotherside/issues
- Documentation: http://pyotherside.readthedocs.org/