Jaymon / dsnparse

Easily parse DSN urls (connection strings) in Python
MIT License
21 stars 8 forks source link

dsnparse 0.2.0 breaks compatibility for usernames with '@' #11

Closed daveboutcher closed 1 year ago

daveboutcher commented 1 year ago

Previously dsnparse handled:

pydb://user@database:password@mysystem.com:9090/system

Now it throws an exception parsing that. I realise users should be URL encoded, but there are existing implemenations where they are not

Jaymon commented 1 year ago

Yup, sorry about that. I tried everything to keep backwards compatibility but I couldn't get all the tests to pass with the new functionality I needed.

The good news is previous versions are pretty stable, so if you don't need any of the new functionality, just peg your version to 0.1.15:

dsnparse==0.1.15