purl icon indicating copy to clipboard operation
purl copied to clipboard

Added 3 new methods to the URL class

Open RealA10N opened this issue 5 years ago • 0 comments

First of all, I love this project! It saved me time on my projects, a couple of times already. However, while using it I thought to myself that there is someplace to improve it.

Added 3 new methods:

  • add_path_segments: To add multiple path segments to the URL at once, instead of using the add_path_segment method multiple times.
  • append_query_params: The same concept - to add multiple query parameters at once.
  • remove_query_params: To remove multiple query parameters at once.

I have also updated the README file to save you some work 😊 Please check my documentation, comments, and docstrings! I tried to follow the original format and syntax, but I'm pretty sure I failed at that 😅

RealA10N avatar Nov 11 '20 22:11 RealA10N