python class not found on import #374
-
Describe the bug To Reproduce
Expected behavior Environment (please complete the following information):
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
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") |
Beta Was this translation helpful? Give feedback.
-
ah thank you, and yeah I noticed it was plural vs singular (posting from my personal gh account) |
Beta Was this translation helpful? Give feedback.
If you are importing the module file like displayed above, you will need to use the singular name.
You can also just import the class directly if you are using v0.7.0+.
Starting in v0.7.1+ you can also use the plural alias.