<div dir="ltr"><div>Hi Stephen, </div><div><br></div><div><br></div><div>if I understand your intention well, yes, I think it's possible, since I've used QGIS plugins in a custom PyQGIS application back in the days (namely, 2009!).</div><div><br></div><div>I created a post to show off the results and to indicate the procedure (it's in Spanish). You can find it at [1].</div><div><br></div><div>Perhaps you intend to use those plugins in a non-GUI application, which should also be possible.</div><div><br></div><div>Accessing the underlying plugin's API, if provided, would require an analysis per plugin, which is feasible.</div><div><br></div><div>For instance, QNEAT3 is a "Processing provider" plugin, which is handy for multiple reasons. For instance, you can use it via custom PyQGIS standalone scripts (see "Using QGIS Processing algorithms from PyQGIS standalone scripts (outside of GUI)" at [2]) or the "qgis_process" utility [3].</div><div><br></div><div>On the contrary, QChainage doesn't seem to be a "Processing provider" plugin, so further exploration would be required.<br></div><div><br></div><div>I hope that helps you get started.</div><div><br></div><div><div><br></div><div>Regards, </div><div><br></div><div>Germán</div><div>---------------------</div><div>[1] <a href="https://geotux.tuxfamily.org/2009/08/31/cargando-plugins-de-qgis-en-el-visor-de-pyqgis/" target="_blank">https://geotux.tuxfamily.org/2009/08/31/cargando-plugins-de-qgis-en-el-visor-de-pyqgis/</a></div><div>[2] <a href="https://gis.stackexchange.com/questions/279874/using-qgis-processing-algorithms-from-pyqgis-standalone-scripts-outside-of-gui">https://gis.stackexchange.com/questions/279874/using-qgis-processing-algorithms-from-pyqgis-standalone-scripts-outside-of-gui</a></div><div>[3] <a href="https://docs.qgis.org/3.28/en/docs/user_manual/processing/standalone.html?highlight=qgis_process#using-processing-from-the-command-line">https://docs.qgis.org/3.28/en/docs/user_manual/processing/standalone.html?highlight=qgis_process#using-processing-from-the-command-line</a></div><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El vie, 17 mar 2023 a las 4:28, LI, Xin Stephen [MIT] via QGIS-User (<<a href="mailto:qgis-user@lists.osgeo.org" target="_blank">qgis-user@lists.osgeo.org</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>





<div lang="EN-US">
<div>
<p class="MsoNormal">Hello all QGIS users, <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Is there some approaches to import the QGIS plus-ins (QNEAT3, QChainage) as a library or package in the Python custom applications where PyQGIS imported?
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The functions of QNEAT3 to find shortest paths are expended to be used. Then, the shortest paths are expected to be marked/divided by points with the same distances.
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Do you have some experience about this or any other approaches/packages could achieve similar functions?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Stephen<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

_______________________________________________<br>
QGIS-User mailing list<br>
<a href="mailto:QGIS-User@lists.osgeo.org" target="_blank">QGIS-User@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</div></blockquote></div><div><br></div><span>-- </span><br><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>-----------<br></div><div>   |\__  <br>(:>__)(<br>   |/    <br>Soluciones Geoinformáticas Libres                            <br><a href="http://geotux.tuxfamily.org/" target="_blank">http://geotux.tuxfamily.org/</a><br><a href="http://twitter.com/GeoTux2" target="_blank">https://twitter.com/GeoTux2</a></div><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div></div></div></div></div></div></div><div><div><br></div><div><a href="http://gis.stackexchange.com/users/4972/germ%c3%a1n-carrillo" target="_blank"><img src="http://gis.stackexchange.com/users/flair/4972.png"></a></div></div></div></div></div></div></div></div></div></div>