Skip to content

python class not found on import #374

Answered by jshcodes
sfc-gh-tlarkin asked this question in Q&A
Discussion options

You must be logged in to vote

If you are importing the module file like displayed above, you will need to use the singular name.

from falconpy import sensor_update_policy as FalconSUP
falcon = FalconSUP(client_id="ID_HERE", client_secret="SECRET_HERE")

You can also just import the class directly if you are using v0.7.0+.

from falconpy import SensorUpdatePolicy
falcon = SensorUpdatePolicy(client_id="ID_HERE", client_secret="SECRET_HERE")

Starting in v0.7.1+ you can also use the plural alias.

from falconpy import SensorUpdatePolicies
falcon = SensorUpdatePolicies(client_id="ID_HERE", client_secret="SECRET_HERE")

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jshcodes
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
sensor update Sensor Update Policy issues and questions SDK usage General SDK usage issues and questions
3 participants
Converted from issue

This discussion was converted from issue #371 on October 13, 2021 02:01.