PyCahrm Doesnt suggest methods or classes or variables for cryptography library ?

It seems that Pycharm didn't index cryptography library completely because writing something like

priv_key. p

doesn't give me any suggestion to the methods or variables to use, instead it says that this object is just a variable ,although it seems to suggest for a few files in the module.

7 comments
Comment actions Permalink

Hello, 

Do you mean this package https://cryptography.io/en/latest/ ? 

Could you please provide me with a simplified code example?  I cannot find any examples of priv_key . 

0
Comment actions Permalink

Yes I mean this Package

rsa_priv = rsa.generate_private_key(public_exponent=65537,
key_size=2048,
backend=default_backend())

rsa_pub = rsa_priv.public_key()

Pycharm Seems to get me suggestion when typing  generate_private_key( ) while Nothing appear when i type rsa_priv.public_key( )

like if pycharm doesn't know anything about rsa_priv object. The problem seems That pycharm sees different implementations and definitions in the module so it cant choose the right one. so how to fix this so it can give me methods suggestions .

0
Comment actions Permalink

Hello, 

Do you mean parameters are not being shown for rsa_priv.public_key( ) ? What exactly would you expect to see?  Have you tried to place the caret in brackets and call  View | Parameter info? 

0
Comment actions Permalink

The methods are being provided for me, please see

 

0
Comment actions Permalink

What I expect to see is exactly what in this screenshot you sent .

 

Yes I tried but still nothing happens because i guess pycharm is confused of multiple definitions since when i hover over method (public_key()) while pressing ctrl i see a small message saying multiple implementations .

I am running Pycharm on ubuntu 20

 

0
Comment actions Permalink

This changes the whole picture. Could you please upload a simplified project example on the FTP

https://uploads.jetbrains.com/ and please let me know the filename.  Thank you! 

0
Comment actions Permalink

This a sample test.py file but I didnt complete method parameters

Upload id: 2020_08_30_6nm5ZfNcvbgWMb2Z (file: test.py)

 

Other Example is in this file when no suggestions appear when i try accessing .name attribute of the entry object

Upload id: 2020_08_30_T4sMB6hNB5HbMN5U (file: proj19.py)

 

0

Please sign in to leave a comment.