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
  Math Package in python Uma 1 235 Dec-12-2021, 02:01 PM
Last Post: jefsummers
  Understanding Python super() for classes OmegaRed94 1 693 Jun-09-2021, 09:02 AM
Last Post: buran
  Python IDE doesn't see opencv-python package on my Jetson Nano sadhaonnisa 1 1,499 Oct-11-2020, 01:04 AM
Last Post: Larz60+
  Help needed for a python package keysson 1 1,063 Sep-02-2020, 03:37 AM
Last Post: Larz60+
  Better Understanding Of Object Orientation In Python JoeDainton123 3 1,128 Aug-30-2020, 02:49 PM
Last Post: deanhystad
  Installing a python package using pip anthonymoss78 0 731 Jul-14-2020, 01:52 PM
Last Post: anthonymoss78
  Python package as installable Prabakaran141 0 749 Mar-10-2020, 10:07 AM
Last Post: Prabakaran141
  Understanding Python's Import Engine MysticaL 1 991 Feb-07-2020, 11:26 PM
Last Post: snippsat
  Understanding if Statements in Python Kathleen 1 1,241 Mar-05-2019, 07:55 PM
Last Post: Yoriz
  new python package test ramkrishna 0 1,100 Feb-25-2019, 12:18 PM
Last Post: ramkrishna

Forum Jump:

User Panel Messages

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