summaryrefslogtreecommitdiffstats
path: root/third_party/python/giturlparse/giturlparse/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/python/giturlparse/giturlparse/__init__.py')
-rw-r--r--third_party/python/giturlparse/giturlparse/__init__.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/third_party/python/giturlparse/giturlparse/__init__.py b/third_party/python/giturlparse/giturlparse/__init__.py
new file mode 100644
index 0000000000..aee86e3750
--- /dev/null
+++ b/third_party/python/giturlparse/giturlparse/__init__.py
@@ -0,0 +1,14 @@
+from .parser import parse as _parse
+from .result import GitUrlParsed
+
+__author__ = "Iacopo Spalletti"
+__email__ = "i.spalletti@nephila.it"
+__version__ = "0.10.0"
+
+
+def parse(url, check_domain=True):
+ return GitUrlParsed(_parse(url, check_domain))
+
+
+def validate(url, check_domain=True):
+ return parse(url, check_domain).valid