vmware / python-client-for-vmware-cloud-on-aws

Python Client for VMware Cloud on AWS is an open-source Python-based tool. Written in Python, the tool enables VMware Cloud on AWS users to automate the consumption of their VMware Cloud on AWS SDDC.
Other
23 stars 20 forks source link

Implement PEP 328 for explicit imports #95

Closed fr0gger03 closed 1 year ago

fr0gger03 commented 2 years ago

Is your feature request related to a problem? Please describe.

currently we are using "import " to import all functions from our own external modules. It is a best practice to import functions explicitly rather than using "" as this potentially exposes an attack vector.

Describe the solution you'd like

leverage explicit import statements... e.g. instead of "from pyvmc_vcdr import *"

instead use: "from pyvmc_vcdr import get_vcdr_cloud_fs_json, get_vcdr_cloud_fs__details_json, get_vcdr_pg_json ..."

Describe alternatives you've considered

No response

Additional context

https://legacy.python.org/dev/peps/pep-0328/