Python Forum
Help with understanding a python package
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with understanding a python package
#1
Hi all,

My python level is decent but I am having difficulties trying to understand this python package called pyrpl:

https://github.com/lneuhaus/pyrpl/tree/master/pyrpl

https://pyrpl.readthedocs.io/en/latest/

It is fairly dense and I am having difficulties separating the wheat from the chaff. My goal is trying to understand it so that I can use the program for some experiments and perhaps to contribute to the development of the software in the future. At this point I would like to learn about the modules from the software (modules.py, hardware_modues/ and software_modules). I am reading through modules.py since it is the backbone of all the code in the two folders but there are a lot of classes and I am having troubles understanding everything.

Any help is appreciated. Suggestions on what I could do to better understand the code or what does one need to understand beforehand to even be able to understand the code would be helpful (Some parts of the code I have the "I don't know what I don't know" confusion). I'd be very interested if someone could go through the code with me (we can use discord).
Reply
#2
There's a lot of code there, going through and explaining what each module does would take a very long time indeed.
Taking a through python course, and reading the manual would be my suggestion.
A couple of good courses are:
http://interactivepython.org/courselib/s...index.html
or
https://www.python-course.eu/python3_course.php
Reply
#3
(Mar-20-2019, 01:33 PM)pyhill00 Wrote: At this point I would like to learn about the modules from the software (modules.py, hardware_modues/ and software_modules).
I have tutorial here about module/packages ,it can be a little complicated topic,so you should have fairly good basic Python knowledge first.
Reply
#4
(Mar-20-2019, 03:22 PM)Larz60+ Wrote: There's a lot of code there, going through and explaining what each module does would take a very long time indeed.

Thanks for the links. Yea it would take a long time but I don't want/need to go through everything. I just would like to first go through the modules.py and the two modules folders.

The package has also a lot to do with pyqt (QT Core), APIs, how sockets and networking work and the package requires quite a lot of domain knowledge on how the hardware works. Even if my python levels were better, I'd still have issues on understanding this stuff. Anyone have any tips what additionally I need to learn to comprehend this package? Say I read https://www.python-course.eu/python3_course.php, what else should I read? Also, I have tried to understand QT Core / pyqt but there is not much material on it. I don't even know where to begin with it.


(Mar-20-2019, 03:22 PM)Larz60+ Wrote: manual

what manual are you referring to?

(Mar-20-2019, 04:18 PM)snippsat Wrote:
(Mar-20-2019, 01:33 PM)pyhill00 Wrote: At this point I would like to learn about the modules from the software (modules.py, hardware_modues/ and software_modules).
I have tutorial here about module/packages ,it can be a little complicated topic,so you should have fairly good basic Python knowledge first.

I meant modules.py from the pyrpl package. I understand Python modules and packages quite ok.
Reply
#5
'manual' was wrong choice of word, docs would have been better.
I was refering to : https://pyrpl.readthedocs.io/en/latest/
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to run utilities from a Python package? LugosisGhost 1 390 Dec-27-2023, 12:00 PM
Last Post: Larz60+
  Understanding venv; How do I ensure my python script uses the environment every time? Calab 1 2,158 May-10-2023, 02:13 PM
Last Post: Calab
  New to python/coding Need help on Understanding why this code isn't working. Thanks! mat3372 8 1,664 May-09-2023, 08:47 AM
Last Post: buran
  Python package not seen in VSCode fmccabe80 6 3,081 Mar-06-2023, 10:01 PM
Last Post: fmccabe80
  Understanding Python classes PythonNewbee 3 1,150 Nov-10-2022, 11:07 PM
Last Post: deanhystad
  Math Package in python Uma 1 1,462 Dec-12-2021, 02:01 PM
Last Post: jefsummers
  Understanding Python super() for classes OmegaRed94 1 1,793 Jun-09-2021, 09:02 AM
Last Post: buran
  Python IDE doesn't see opencv-python package on my Jetson Nano sadhaonnisa 1 3,290 Oct-11-2020, 01:04 AM
Last Post: Larz60+
  Help needed for a python package keysson 1 2,177 Sep-02-2020, 03:37 AM
Last Post: Larz60+
  Better Understanding Of Object Orientation In Python JoeDainton123 3 2,419 Aug-30-2020, 02:49 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020