pedromolinar
Posts: 15
Joined: Sun May 08, 2016 11:42 pm

python3 modules

Thu Apr 13, 2017 5:35 pm

Hello

How can i check available arguments for a module

example.

Code: Select all

from picamera import PiCamera
for i in dir(PiCamera)
print(i)
this gives me a big list with all the attributes . But how to list every option for each attribute

in the above example i have ISO in the list. How to know the available ISO settings. or the IMAGE_EFFECTS ?

thanks for your help

User avatar
davef21370
Posts: 897
Joined: Fri Sep 21, 2012 4:13 pm
Location: Earth But Not Grounded

Re: python3 modules

Thu Apr 13, 2017 5:47 pm

You'll need to read the docs.

Dave.
Apple say... Monkey do !!

klintkrossa
Posts: 81
Joined: Tue Nov 10, 2015 3:06 pm

Re: python3 modules

Thu Apr 13, 2017 7:03 pm

Hello

Some times

Code: Select all

help(PiCamera)
helps.
Thanks
This is not like any other bulletin boards that I have been on. Been flamed on other BB's so bad I was afraid to ask.

All my Raspberry Pi's are like the Hessian artilleryman of Sleepy Hollow.

Return to “Python”