Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Libraries
#1
Do libraries typically have a list of commands and usage. I'm trying to use the MCP3008 library for python and am not seeing a list of commands. I've seen examples but no command list. Thanks in advance for any answers.
Regards
Joe
Reply
#2
It's up to the developers/maintainers of certain package to provide documentation.
You can always use dir() to get a list.
For that particular package there are really only one class and few methods. You have everything listed.
Also you can browse the only file and check the docstrings.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
you can also use help to get docstrings
>>> import mcp3008
>>> help(mcp3008)
and help from there on
help(mcp3008.MCP3008)
Recommended Tutorials:
Reply


Forum Jump:

User Panel Messages

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