-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make dependencies optional #125
Comments
Hi @qais-cisco, thanks for opening this issue. Could you please share which dependencies you are referring to? |
@Brooke-white , updated the issue with the dependencies. |
@qais-cisco , to give some context these dependencies are used in the following ways:
Removing lxml,beautifulsoup4, and soupsieve would be a breaking change for our current users and not provide good user experience for new users utilizing IdentityProviderPlugins. As previously discussed here, lxml is the largest sized dependency of the bunch. A potential path for migrating away from lxml to the Python standard library parser would reduce the package size, but needs to be investigated first. I started looking into this and found the IdentityProviderPlugin code relating to authentication would need some rework and more testing. If this is something you/anyone else would be willing to dig into I'm more than happy to support. |
To be clear, I'm a new user to this library and I don't like the experience of having to bring in several third party dependencies for authentication protocols I'm not going to use. I could uninstall them after that fact, but that introduces weird timing dependencies outside the normal Python's setup.py supports All the BS4 oriented code looks like it lazily imports those libraries already, so it shouldn't require any real code changes either. I'm not sure if the SASL/scramp auth method is the most common or not, but that code could be lazily imported as well unless it's super common. |
Thanks for the feedback, @mjschultz. I will discuss with the redshift_connector product team |
I've added this item to our roadmap but no clear ETA at this time. Will provide updates here as needed. |
I would also be interested in this feature. I am using this in a lambda function and it would be nice if I did not have to include the boto3/botocore libraries as well as the other large dependencies mentioned here. |
Driver version
2.0.908
Problem description
In order to use the connecter, we have to pull in dependencies we don't need:
This should be optional and not a requirement.
The text was updated successfully, but these errors were encountered: