libkeepass / pykeepass

Python library to interact with keepass databases (supports KDBX3 and KDBX4)
https://pypi.org/project/pykeepass/
GNU General Public License v3.0
403 stars 96 forks source link

Use relative imports #353

Closed pwall2222 closed 10 months ago

pwall2222 commented 11 months ago

There is not much to say here except a little detail, if you already reviewed the PR you might notice that inside entry.py and attachment.py I use this syntax from . import entry this is to import from the current package a specific module. This is to avoid what is called circular imports, (and similar strategy was in place before this one).

Also I added a variable used in pykeepass.py to the __init__.py in kdbx_parsing since importing from the subpackage would be easier.