Add devterm tools and TUI menu
Some checks failed
CI / test (3.11) (push) Has been cancelled
CI / test (3.12) (push) Has been cancelled
CI / test (3.8) (push) Has been cancelled
CI / test (3.9) (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / typecheck (push) Has been cancelled
CI / build-package (push) Has been cancelled
CI / test (3.10) (push) Has been cancelled
Some checks failed
CI / test (3.11) (push) Has been cancelled
CI / test (3.12) (push) Has been cancelled
CI / test (3.8) (push) Has been cancelled
CI / test (3.9) (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / typecheck (push) Has been cancelled
CI / build-package (push) Has been cancelled
CI / test (3.10) (push) Has been cancelled
This commit is contained in:
9
devterm/tools/url_tool.py
Normal file
9
devterm/tools/url_tool.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from urllib.parse import quote, unquote
|
||||
|
||||
|
||||
def encode_url(data: str) -> str:
|
||||
return quote(data, safe="")
|
||||
|
||||
|
||||
def decode_url(data: str) -> str:
|
||||
return unquote(data)
|
||||
Reference in New Issue
Block a user