User Tools

Site Tools


tutorials:getting-started-with-grolink-and-gropy

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorials:getting-started-with-grolink-and-gropy [2024/06/20 12:08] – [Tutorial] thomastutorials:getting-started-with-grolink-and-gropy [2025/01/17 09:39] (current) – [Getting started with GroLink and GroPy] Tim
Line 1: Line 1:
 ===== Getting started with GroLink and GroPy ===== ===== Getting started with GroLink and GroPy =====
  
-To improve the usability of the API, the GroLink project includes a [[https://gitlab.com/grogra/groimp-utils/pythonapilibrary|Python library]], that links Python code to the running API server.+To improve the usability of the [[user-guide:additional_interfaces:api|API]], the GroLink project includes a [[https://gitlab.com/grogra/groimp-utils/pythonapilibrary|Python library]], that links Python code to the running API server.
  
 ==== Requirements ==== ==== Requirements ====
Line 14: Line 14:
  
 A pip packed is included in the GroPy repository in the  [[https://gitlab.com/grogra/groimp-utils/pythonapilibrary/-/packages|Package registry]]. This can be installed by the following pip command. Make sure pip is installed on your system. A pip packed is included in the GroPy repository in the  [[https://gitlab.com/grogra/groimp-utils/pythonapilibrary/-/packages|Package registry]]. This can be installed by the following pip command. Make sure pip is installed on your system.
- +<code bash> 
-> pip install GroPy --index-url https://gitlab.com/api/v4/projects/50527255/packages/pypi/simple + pip install GroPy --index-url https://gitlab.com/api/v4/projects/50527255/packages/pypi/simple 
 +</code>
 This command works like all other pip commands, including ''--upgrade'' for updating to a new version or ''pip uninstall GroPy'' to remove the library. This command works like all other pip commands, including ''--upgrade'' for updating to a new version or ''pip uninstall GroPy'' to remove the library.
  
Line 33: Line 33:
 === Starting API and creating the link === === Starting API and creating the link ===
  
-It is at any point necessary that GroIMP is running as the API server. How to start it is explained [[:groimp-platform:interfaces:api|here]].+It is at any point necessary that GroIMP is running as the API server. How to start it is explained [[:tutorials:startup-api|here]].
  
 Now in an empty python file (.py) we first import GroPy and create a link to the API server. Now in an empty python file (.py) we first import GroPy and create a link to the API server.
tutorials/getting-started-with-grolink-and-gropy.1718878092.txt.gz · Last modified: 2024/06/20 12:08 by thomas