Skip to content

Add url tools example#639

Open
NA-V10 wants to merge 4 commits intogoogle:masterfrom
NA-V10:add-url-tools-example
Open

Add url tools example#639
NA-V10 wants to merge 4 commits intogoogle:masterfrom
NA-V10:add-url-tools-example

Conversation

@NA-V10
Copy link

@NA-V10 NA-V10 commented Nov 23, 2025

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant