valkey-io / valkey-py

Valkey Python client based on a fork of redis-py
MIT License
21 stars 2 forks source link

Implement a single validation function around the service_uri #28

Closed ahmedsobeh closed 2 days ago

ahmedsobeh commented 3 days ago

Pull Request check-list

Please make sure to review and check all of these items:

NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.

Description of change

Created url_parser and removed duplication of parse_url. This PR resolves issue #25

I created a url_parser module and added it to the parsers folder. I then used this module in both connection modules (the normal one and the asyncio one) and updated the tests accordingly.