Is there a script repository somewhere?

53 views
Skip to first unread message

Brian Piccioni

unread,
Dec 12, 2025, 11:10:45 AM (7 days ago) Dec 12
to OpenPnP
I figure there are a lot of scripts which have been written for openpnp but I don't find many on the web. The only collection I have found is here https://github.com/psychogenic/psypnp but they do not work for me (missing libraries) and do not appear to be maintained.

Is there a script repository somewhere? 

If not, wouldn't it be a good idea to start one?

I really need to learn python ...

Fernando Corona

unread,
Dec 12, 2025, 11:53:09 AM (7 days ago) Dec 12
to ope...@googlegroups.com
Brian,

I was in your situation a week ago. I needed to learn python and automatically generate a lot of feeders. Here's what I have learned. 

1. Anything that I was doing manually with the GUI can be done with scripts. Awesome!

2. Learning python is a must. Trying to do scripts with Javascript is confusing if you have zero Javascript experience. Go python. I did do intro to C++ so learning basic python was not too bad for me. 

3. To get started test out every single example python code in the scripts examples folder. For references you need the scripting info script. To get started. 

4. Everything you need is in the scripting page of the wiki. The links to the global variables will be your primary reference sheet. 



I use these extensively. 


5. A lot of people will tell you not to use AI assistants like ChatGPT. It worked every time for me. I understand what ChatGPT is and isn't. I mainly asked it to build very basic python code so I can learn. I then did actual googling to improve my python code. DO NOT ask ChatGPT to generate your entire code its a troubleshooting nightmare. 

6. Learning about object oriented coding is a must. I still dont understand it fully. I have a coworker who is a coding whiz help me understand what I needed for my scripts. 

Best tip for learning don't copy and paste type every line of code while learning. 

I made a list of test codes that does a lot of basic tasks. User prompts, Get info about feeders, generate a feeder, etc. 

I would have loved a script repository. I made my own very basic one. I can share if you like. 

- Fernando


--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/openpnp/d3100630-3021-4fc5-9cfd-234047792033n%40googlegroups.com.

Brian Piccioni

unread,
Dec 12, 2025, 3:33:32 PM (7 days ago) Dec 12
to OpenPnP
Fernando
Thank you for your detailed reply.

I think a scripts repository for OpenPnP would be useful because many problems are common problems. For example, I would have liked to be abe to run a script which lists my feeder assignments (feeder, address, part) and I am sure a lot of people have similar needs.

I would encourage you to put your scripts on GitHub (or GitLab). This may save others from having to do the work and that also serves to lower the barriers to using OpenPnP in general.
Brian

Mr covert

unread,
Dec 12, 2025, 10:41:25 PM (7 days ago) Dec 12
to ope...@googlegroups.com
ChatGPT is the most basic tool for coding.  Claud code is my go to for a quick  script.  Cursor is worth the trail to see if it's right for you, but will save you 50-80% of your coding time. 

I would love to see an active script repository for openpnp. When I needed a custom script I couldn't find much to work with.  

Reply all
Reply to author
Forward
0 new messages