<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Python API for GIT extensions</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6875543819/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6875543819/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/6875543819/</id><updated>2024-09-03T14:30:47.049000Z</updated><subtitle>Recent posts to Python API for GIT extensions</subtitle><entry><title>Python API for GIT extensions</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6875543819/?limit=25#c78a" rel="alternate"/><published>2024-09-03T14:30:47.049000Z</published><updated>2024-09-03T14:30:47.049000Z</updated><author><name>soulplox</name><uri>https://forge.codesys.com/u/soulplox/</uri></author><id>https://forge.codesys.com2ba876f59109feda24931b2d4f1c461b6a6ca95e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;you might want to take a look at &lt;a href="https://content.helpme-codesys.com/en/CODESYS%20Git/_git_using_scripting.html" rel="nofollow"&gt;https://content.helpme-codesys.com/en/CODESYS%20Git/_git_using_scripting.html&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Python API for GIT extensions</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6875543819/?limit=25#bce0" rel="alternate"/><published>2024-08-29T09:33:43.914000Z</published><updated>2024-08-29T09:33:43.914000Z</updated><author><name>TimvH</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.com19e6c26af62ff57c2c3074d787ce388bd70754e4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;a href="https://content.helpme-codesys.com/en/CODESYS%20Git/_git_using_scripting.html" rel="nofollow"&gt;https://content.helpme-codesys.com/en/CODESYS%20Git/_git_using_scripting.html&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Python API for GIT extensions</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6875543819/?limit=25#5593" rel="alternate"/><published>2023-03-24T10:14:42.384000Z</published><updated>2023-03-24T10:14:42.384000Z</updated><author><name>tba123</name><uri>https://forge.codesys.com/u/tba123/</uri></author><id>https://forge.codesys.com78e270782978463e50f1371155bb8f2d4ede0051</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;any news on this?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Python API for GIT extensions</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6875543819/?limit=25#8da6" rel="alternate"/><published>2022-10-19T10:36:21.489000Z</published><updated>2022-10-19T10:36:21.489000Z</updated><author><name>kevinrn</name><uri>https://forge.codesys.com/u/kevinrn/</uri></author><id>https://forge.codesys.come28b549ba91bfdb19222c963e02f046f5e172a07</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi community,&lt;/p&gt;
&lt;p&gt;is there any news on this? &lt;br/&gt;
I would like to build our CD/CD for codesys libraries. &lt;br/&gt;
I need a solution to clone the repository content and open it with codesys headless to save the library as a compiled library. &lt;/p&gt;
&lt;p&gt;Thank you in advance.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Python API for GIT extensions</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6875543819/?limit=250#1261/5a3b" rel="alternate"/><published>2022-07-29T14:06:09.457000Z</published><updated>2022-07-29T14:06:09.457000Z</updated><author><name>h-hermsen</name><uri>https://forge.codesys.com/u/hermsen/</uri></author><id>https://forge.codesys.comef36deaef1551037f534f5d4fd4d153d3e0229f0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;no, most probably this will come with the next update as I heard a rumour that the Script API interface will be available before the end of this year. In the mean time all we can do is wait.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Python API for GIT extensions</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6875543819/?limit=25#1261" rel="alternate"/><published>2022-07-29T13:07:35.796000Z</published><updated>2022-07-29T13:07:35.796000Z</updated><author><name>bkuriata</name><uri>https://forge.codesys.com/u/bkuriata/</uri></author><id>https://forge.codesys.com94dc05618f572b6806bd1c9d58d5fbbddbb286a2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;br/&gt;
is there any update regarding this topic.&lt;br/&gt;
Is there already some API to work with GIT extension?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Python API for GIT extensions</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6875543819/?limit=25#8700" rel="alternate"/><published>2022-01-19T16:52:51.606000Z</published><updated>2022-01-19T16:52:51.606000Z</updated><author><name>FPawlak</name><uri>https://forge.codesys.com/u/fpawlak/</uri></author><id>https://forge.codesys.comce4b170ecd7f88adb70e0b5a1e22c0c38f1f556b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Sorry guys.&lt;br/&gt;
I have completly forgotten to post my script files.&lt;br/&gt;
As I wrote earlier I use it with Gitlab repositories.&lt;/p&gt;
&lt;p&gt;src/config.cfg - config file&lt;br/&gt;
    - &lt;span&gt;[LOCAL_REPOSITORY]&lt;/span&gt; is your codesys repository where you want to install your compiled libraries and use in final project.&lt;br/&gt;
    - &lt;span&gt;[LOCAL_REPOSITORY_DEVELOP]&lt;/span&gt; is your codesys repository where you want to install your 'develop', not compiled libraries mainly for testing&lt;br/&gt;
    - &lt;span&gt;[REMOTE_REPOSITORY]&lt;/span&gt; - network location where you have all yours and your collegues libraries. You install from there to &lt;span&gt;[LOCAL_REPOSITORY]&lt;/span&gt; with InitLibrary.py script&lt;/p&gt;
&lt;p&gt;src/InitLibrary.py - init new library - set company name, version and also create gitlab-ci.yml file for use in Gitlab pipes&lt;/p&gt;
&lt;p&gt;src/SaveProjectAsDevelopLibrary.py - save currently open library as 'DEVELOP' not compiled and install it in Codesys DEVELOP_REPO. While it is not *.compiled-library you can easly debug your program.&lt;/p&gt;
&lt;p&gt;src/InstallLibraries.py - installs all libraries from &lt;span&gt;[REMOTE_REPOSITORY]&lt;/span&gt; based on Libraries.lst file in that directory&lt;/p&gt;
&lt;p&gt;src/FullDeploy.py - used on Gitlab to compile library and to add to &lt;span&gt;[REMOTE_REPOSITORY]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;runner/RunBuild.bat - Gitlab fires this script on gitlab runner to start codesys and execute FullDeploy.py&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Python API for GIT extensions</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6875543819/?limit=250#53e3" rel="alternate"/><published>2021-12-28T16:02:54.927000Z</published><updated>2021-12-28T16:02:54.927000Z</updated><author><name>h-hermsen</name><uri>https://forge.codesys.com/u/hermsen/</uri></author><id>https://forge.codesys.com1cdcd9035e606eec71fd0519fcc0ec98f2a3306c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, as far as I know a python scripting api for the git plugin will be released for sure. We just have to be patient and wait for it. &lt;/p&gt;
&lt;p&gt;PS. don't ask me when it is due as I dont know this.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Python API for GIT extensions</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6875543819/?limit=50#8c95/cf5f" rel="alternate"/><published>2021-12-28T15:59:18.211000Z</published><updated>2021-12-28T15:59:18.211000Z</updated><author><name>void</name><uri>https://forge.codesys.com/u/weixintan/</uri></author><id>https://forge.codesys.comcc3661923c85bc3035b2c1e247df553a961821be</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Is most of your project in structured text? If it is, you could get some diff output by saving it as PLCopenXML and pushing it to git&lt;/p&gt;
&lt;p&gt;But if it's mostly the visual diagrams, lists and charts then I guess you will need CODESYS git or a paid service like &lt;a href="https://www.copia.io/" rel="nofollow"&gt;https://www.copia.io/&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Python API for GIT extensions</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6875543819/?limit=25#8c95" rel="alternate"/><published>2021-12-24T13:20:46.915000Z</published><updated>2021-12-24T13:20:46.915000Z</updated><author><name>FPawlak</name><uri>https://forge.codesys.com/u/fpawlak/</uri></author><id>https://forge.codesys.com80e39acb5e48dc2fb4123dbe21a01d5b4bb9f6e8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, I want this also for this purpose :)&lt;br/&gt;
Before GIT extension was aviable I write some python scrips and I manualy push Codesys project file to my GITLAB server.&lt;br/&gt;
On GITLAB server I have GITLAB Runner (Windows VM) with installed Codesys. I have configured push action which run Codesys and compile library as compiled on network drive.&lt;br/&gt;
I have also scripts to install all libraries from network drive and so on.&lt;/p&gt;
&lt;p&gt;The main disadventage is that Codesys project is saved as 'binary' file in GIT repo. So you don't have diffs and it is not really helpfull for team work. But for automate building is just fine.&lt;/p&gt;
&lt;p&gt;I have some ideas how to 'integrate' it with Codesys GIT extension but I have no time yet to try it.&lt;br/&gt;
Codesys project under git versioning is still some kind of git repo in file system on your computer. So it should be possible to interact with it with 'classical' git client in order to make some basic check - is everthing commited and pushed to remote? Is local version the same as master on server? Then on local machine you can build project as the latest version and save it on e.g network drive.&lt;br/&gt;
Ofcourse you can still use dedicated virtual machine for building but you will need some extra GIT licence for it :(&lt;/p&gt;
&lt;p&gt;Later I can attach my scripts but for now,&lt;br/&gt;
Marry Chrismass :)&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>