How it is possible save qgis project to GeoPackage in PyQGIS?
the image is user interface but I need in code
How it is possible save qgis project to GeoPackage in PyQGIS?
the image is user interface but I need in code
You need to construct a URI like this:
uri = 'geopackage:/path/to/db.gpkg?projectName=my_gpgk_project'
And then use it to save the project, in this way:
QgsProject.instance().write(uri)