python-fire icon indicating copy to clipboard operation
python-fire copied to clipboard

Add url tools example

Open NA-V10 opened this issue 1 month ago • 0 comments

Summary

Added a new example module url_tools under the examples/ directory.
It demonstrates URL encoding, decoding, and domain extraction using Python Fire.

Details

  • New folder: examples/url_tools/
  • Functions:
    • encode(text): URL-encode text
    • decode(text): URL-decode text
    • domain(url): extract domain from a URL
  • Matches the format of existing examples (cipher, string_tools, etc.)
  • Includes a complete test suite using testutils.BaseTestCase

Checklist

  • [x] Example follows Google Apache header & format
  • [x] Test file included
  • [x] Functions exposed correctly via Fire
  • [x] CLA already signed

NA-V10 avatar Nov 23 '25 03:11 NA-V10