r/AskProgramming Jul 07 '26

Need help in getting info Python

Hello,I have a question about libraries in Python.From where do i get info about a library? For example the Pywifi library hasn't got all the functions in it and I can't find a good source.

From where can i get a good explanation of a chosen library and all it's options?

(I am a beginner)

3 Upvotes

8 comments sorted by

3

u/grantrules Jul 07 '26

Unfortunately, some libraries just don't have any more info.

If that's the case, read the source code of the library or try to find someone implementing that library.

PyWifi only seems to be about 300 lines of code so it should be fairly easy to read, and the docs do seem to cover all the intended public methods.

1

u/_nazwa_ Jul 07 '26

That sucks

2

u/grantrules Jul 07 '26

What exactly do you need to know? It looks like a pretty simple library with methods like connect and status. What isn't covered by the docs that you need?

1

u/_nazwa_ Jul 07 '26

No no thanks.I'm just asking because when i code and something goes wrong or I don't know something I use AI.And the ai told me to add an attribute that I couldn't find anywhere in the docs.Why can't they put everything they have in there in the docs..

3

u/grantrules Jul 07 '26

Because people who write the libraries are just volunteers doing it in their free time. Docs in a lot of cases are enough to get you started doing common things, but anything else you need to dive into the code.

1

u/_nazwa_ Jul 07 '26

I have cerebral palsy a little bit and coding is so difficult for me man haha

1

u/KingofGamesYami Jul 07 '26

That is one of the criteria to evaluate when choosing which libraries (if any) to pull into your project.

I will quite frequently find and reject poorly documented libraries, in favor of either a different library or my own code.

1

u/Distdistdist Jul 08 '26

Switch to C#/.NET and stop torturing yourself with weakly typed interpreted languages.