Hello community,
here is the log from the commit of package python-tld for openSUSE:Factory checked in at 2019-04-18 09:57:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-tld (Old)
and /work/SRC/openSUSE:Factory/.python-tld.new.17052 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-tld"
Thu Apr 18 09:57:18 2019 rev:6 rq:695330 version:0.9.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-tld/python-tld.changes 2019-02-01 11:44:32.448608233 +0100
+++ /work/SRC/openSUSE:Factory/.python-tld.new.17052/python-tld.changes 2019-04-18 09:57:19.593375333 +0200
@@ -1,0 +2,8 @@
+Sun Apr 7 11:31:45 UTC 2019 - Sebastian Wagner
+
+- update to version 0.9.3:
+ - Added `is_tld` function.
+ - Docs updated.
+ - Upgrade test suite.
+
+-------------------------------------------------------------------
Old:
----
tld-0.9.2.tar.gz
New:
----
tld-0.9.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-tld.spec ++++++
--- /var/tmp/diff_new_pack.9JkXgJ/_old 2019-04-18 09:57:20.285375764 +0200
+++ /var/tmp/diff_new_pack.9JkXgJ/_new 2019-04-18 09:57:20.285375764 +0200
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-tld
-Version: 0.9.2
+Version: 0.9.3
Release: 0
Summary: URL top level domain (TLD) extraction module
License: MPL-1.1 OR GPL-2.0-only OR LGPL-2.1-only
@@ -30,7 +30,11 @@
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
# SECTION test requirements
+BuildRequires: %{python_module Faker}
+BuildRequires: %{python_module factory_boy}
+BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module six >= 1.9}
+BuildRequires: %{python_module tox}
# /SECTION
BuildRequires: fdupes
Requires: python-six >= 1.9
++++++ tld-0.9.2.tar.gz -> tld-0.9.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tld-0.9.2/CHANGELOG.rst new/tld-0.9.3/CHANGELOG.rst
--- old/tld-0.9.2/CHANGELOG.rst 2019-01-10 22:54:41.000000000 +0100
+++ new/tld-0.9.3/CHANGELOG.rst 2019-04-06 02:21:41.000000000 +0200
@@ -15,6 +15,14 @@
0.3.4 to 0.4).
- All backwards incompatible changes are mentioned in this document.
+0.9.3
+-----
+2019-04-05
+
+- Added `is_tld` function.
+- Docs updated.
+- Upgrade test suite.
+
0.9.2
-----
2019-01-10
@@ -23,6 +31,7 @@
- Tested against Python 3.7.
- Added tests for commands.
- Dropped Python 2.6 support.
+- TLD source updated to the latest version.
0.9.1
-----
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tld-0.9.2/LICENSE_GPL2.0.txt new/tld-0.9.3/LICENSE_GPL2.0.txt
--- old/tld-0.9.2/LICENSE_GPL2.0.txt 2018-04-07 02:05:24.000000000 +0200
+++ new/tld-0.9.3/LICENSE_GPL2.0.txt 2019-04-06 02:10:36.000000000 +0200
@@ -291,7 +291,7 @@
the "copyright" line and a pointer to where the full notice is found.
tld - Extract the top level domain (TLD) from the URL given..
- Copyright (C) 2013-2018 Artur Barseghyan
+ Copyright (C) 2013-2019 Artur Barseghyan
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tld-0.9.2/LICENSE_LGPL_2.1.txt new/tld-0.9.3/LICENSE_LGPL_2.1.txt
--- old/tld-0.9.2/LICENSE_LGPL_2.1.txt 2018-04-07 02:05:31.000000000 +0200
+++ new/tld-0.9.3/LICENSE_LGPL_2.1.txt 2019-04-06 02:10:36.000000000 +0200
@@ -471,7 +471,7 @@
"copyright" line and a pointer to where the full notice is found.
tld - Extract the top level domain (TLD) from the URL given..
- Copyright (C) 2013-2018 Artur Barseghyan
+ Copyright (C) 2013-2019 Artur Barseghyan
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tld-0.9.2/PKG-INFO new/tld-0.9.3/PKG-INFO
--- old/tld-0.9.2/PKG-INFO 2019-01-10 22:57:17.000000000 +0100
+++ new/tld-0.9.3/PKG-INFO 2019-04-06 02:33:04.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: tld
-Version: 0.9.2
+Version: 0.9.3
Summary: Extract the top level domain (TLD) from the URL given.
Home-page: https://github.com/barseghyanartur/tld
Author: Artur Barseghyan
@@ -127,6 +127,25 @@
get_fld("http://www.google.idontexist", fail_silently=True)
# None
+ Check if some tld is a valid tld
+ --------------------------------
+
+ .. code-block:: python
+
+ from tld import is_tld
+
+ is_tld('co.uk)
+ # True
+
+ is_tld('uk')
+ # True
+
+ is_tld('tld.doesnotexist')
+ # False
+
+ is_tld('www.google.com')
+ # False
+
Update the list of TLD names
============================
To update/sync the tld names with the most recent version run the following
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tld-0.9.2/README.rst new/tld-0.9.3/README.rst
--- old/tld-0.9.2/README.rst 2019-01-10 22:54:41.000000000 +0100
+++ new/tld-0.9.3/README.rst 2019-04-06 02:30:46.000000000 +0200
@@ -119,6 +119,25 @@
get_fld("http://www.google.idontexist", fail_silently=True)
# None
+Check if some tld is a valid tld
+--------------------------------
+
+.. code-block:: python
+
+ from tld import is_tld
+
+ is_tld('co.uk)
+ # True
+
+ is_tld('uk')
+ # True
+
+ is_tld('tld.doesnotexist')
+ # False
+
+ is_tld('www.google.com')
+ # False
+
Update the list of TLD names
============================
To update/sync the tld names with the most recent version run the following
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tld-0.9.2/docs/changelog.rst new/tld-0.9.3/docs/changelog.rst
--- old/tld-0.9.2/docs/changelog.rst 2019-01-10 22:54:41.000000000 +0100
+++ new/tld-0.9.3/docs/changelog.rst 2019-04-06 02:31:12.000000000 +0200
@@ -15,6 +15,14 @@
0.3.4 to 0.4).
- All backwards incompatible changes are mentioned in this document.
+0.9.3
+-----
+2019-04-05
+
+- Added `is_tld` function.
+- Docs updated.
+- Upgrade test suite.
+
0.9.2
-----
2019-01-10
@@ -23,6 +31,7 @@
- Tested against Python 3.7.
- Added tests for commands.
- Dropped Python 2.6 support.
+- TLD source updated to the latest version.
0.9.1
-----
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tld-0.9.2/docs/index.rst new/tld-0.9.3/docs/index.rst
--- old/tld-0.9.2/docs/index.rst 2019-01-10 22:54:41.000000000 +0100
+++ new/tld-0.9.3/docs/index.rst 2019-04-06 02:31:12.000000000 +0200
@@ -119,6 +119,25 @@
get_fld("http://www.google.idontexist", fail_silently=True)
# None
+Check if some tld is a valid tld
+--------------------------------
+
+.. code-block:: python
+
+ from tld import is_tld
+
+ is_tld('co.uk)
+ # True
+
+ is_tld('uk')
+ # True
+
+ is_tld('tld.doesnotexist')
+ # False
+
+ is_tld('www.google.com')
+ # False
+
Update the list of TLD names
============================
To update/sync the tld names with the most recent version run the following
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tld-0.9.2/setup.py new/tld-0.9.3/setup.py
--- old/tld-0.9.2/setup.py 2019-01-10 22:54:41.000000000 +0100
+++ new/tld-0.9.3/setup.py 2019-04-06 02:32:39.000000000 +0200
@@ -6,7 +6,7 @@
except:
readme = ''
-version = '0.9.2'
+version = '0.9.3'
exec_dirs = [
'src/tld/bin/',
@@ -53,4 +53,12 @@
'six>=1.9'
],
test_suite='tld.tests',
+ tests_require=[
+ 'coverage',
+ 'factory_boy',
+ 'Faker',
+ 'pytest-cov',
+ 'pytest',
+ 'tox',
+ ]
)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tld-0.9.2/src/tld/__init__.py new/tld-0.9.3/src/tld/__init__.py
--- old/tld-0.9.2/src/tld/__init__.py 2019-01-10 22:54:41.000000000 +0100
+++ new/tld-0.9.3/src/tld/__init__.py 2019-04-06 02:32:28.000000000 +0200
@@ -2,20 +2,22 @@
get_fld,
get_tld,
get_tld_names,
+ is_tld,
parse_tld,
Result,
update_tld_names,
)
__title__ = 'tld'
-__version__ = '0.9.2'
+__version__ = '0.9.3'
__author__ = 'Artur Barseghyan'
-__copyright__ = '2013-2018 Artur Barseghyan'
+__copyright__ = '2013-2019 Artur Barseghyan'
__license__ = 'GPL 2.0/LGPL 2.1'
__all__ = (
'get_fld',
'get_tld',
'get_tld_names',
+ 'is_tld',
'parse_tld',
'Result',
'update_tld_names',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tld-0.9.2/src/tld/commands/update_tld_names.py new/tld-0.9.3/src/tld/commands/update_tld_names.py
--- old/tld-0.9.2/src/tld/commands/update_tld_names.py 2018-04-07 02:04:47.000000000 +0200
+++ new/tld-0.9.3/src/tld/commands/update_tld_names.py 2019-04-06 02:10:36.000000000 +0200
@@ -5,7 +5,7 @@
__title__ = 'tld.commands.update_tld_names'
__author__ = 'Artur Barseghyan'
-__copyright__ = '2013-2018 Artur Barseghyan'
+__copyright__ = '2013-2019 Artur Barseghyan'
__license__ = 'GPL 2.0/LGPL 2.1'
__all__ = ('main',)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tld-0.9.2/src/tld/conf.py new/tld-0.9.3/src/tld/conf.py
--- old/tld-0.9.2/src/tld/conf.py 2018-06-13 19:03:44.000000000 +0200
+++ new/tld-0.9.3/src/tld/conf.py 2019-04-06 02:10:36.000000000 +0200
@@ -2,7 +2,7 @@
__title__ = 'tld.conf'
__author__ = 'Artur Barseghyan'
-__copyright__ = '2013-2018 Artur Barseghyan'
+__copyright__ = '2013-2019 Artur Barseghyan'
__license__ = 'GPL 2.0/LGPL 2.1'
__all__ = (
'get_setting',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tld-0.9.2/src/tld/defaults.py new/tld-0.9.3/src/tld/defaults.py
--- old/tld-0.9.2/src/tld/defaults.py 2018-04-07 02:01:50.000000000 +0200
+++ new/tld-0.9.3/src/tld/defaults.py 2019-04-06 02:10:36.000000000 +0200
@@ -2,7 +2,7 @@
__title__ = 'tld.defaults'
__author__ = 'Artur Barseghyan'
-__copyright__ = '2013-2018 Artur Barseghyan'
+__copyright__ = '2013-2019 Artur Barseghyan'
__license__ = 'GPL 2.0/LGPL 2.1'
__all__ = (
'DEBUG',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tld-0.9.2/src/tld/exceptions.py new/tld-0.9.3/src/tld/exceptions.py
--- old/tld-0.9.2/src/tld/exceptions.py 2018-06-14 01:36:13.000000000 +0200
+++ new/tld-0.9.3/src/tld/exceptions.py 2019-04-06 02:10:36.000000000 +0200
@@ -2,7 +2,7 @@
__title__ = 'tld.exceptions'
__author__ = 'Artur Barseghyan'
-__copyright__ = '2013-2018 Artur Barseghyan'
+__copyright__ = '2013-2019 Artur Barseghyan'
__license__ = 'GPL 2.0/LGPL 2.1'
__all__ = (
'TldBadUrl',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tld-0.9.2/src/tld/helpers.py new/tld-0.9.3/src/tld/helpers.py
--- old/tld-0.9.2/src/tld/helpers.py 2018-04-07 02:02:12.000000000 +0200
+++ new/tld-0.9.3/src/tld/helpers.py 2019-04-06 02:10:36.000000000 +0200
@@ -4,7 +4,7 @@
__title__ = 'tld.helpers'
__author__ = 'Artur Barseghyan'
-__copyright__ = '2013-2018 Artur Barseghyan'
+__copyright__ = '2013-2019 Artur Barseghyan'
__license__ = 'GPL 2.0/LGPL 2.1'
__all__ = (
'project_dir',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tld-0.9.2/src/tld/res/effective_tld_names.dat.txt new/tld-0.9.3/src/tld/res/effective_tld_names.dat.txt
--- old/tld-0.9.2/src/tld/res/effective_tld_names.dat.txt 2019-01-10 22:54:41.000000000 +0100
+++ new/tld-0.9.3/src/tld/res/effective_tld_names.dat.txt 2019-04-06 02:31:04.000000000 +0200
@@ -155,8 +155,13 @@
net.al
org.al
-// am : https://en.wikipedia.org/wiki/.am
+// am : https://www.amnic.net/policy/en/Policy_EN.pdf
am
+co.am
+com.am
+commune.am
+net.am
+org.am
// ao : https://en.wikipedia.org/wiki/.ao
// http://www.dns.ao/REGISTR.DOC
@@ -984,17 +989,16 @@
fo
// fr : http://www.afnic.fr/
-// domaines descriptifs : http://www.afnic.fr/obtenir/chartes/nommage-fr/annexe-descriptifs
+// domaines descriptifs : https://www.afnic.fr/medias/documents/Cadre_legal/Afnic_Naming_Policy_121220...
fr
-com.fr
asso.fr
+com.fr
+gouv.fr
nom.fr
prd.fr
-presse.fr
tm.fr
-// domaines sectoriels : http://www.afnic.fr/obtenir/chartes/nommage-fr/annexe-sectoriels
+// domaines sectoriels : https://www.afnic.fr/en/products-and-services/the-fr-tld/sector-based-fr-dom...
aeroport.fr
-assedic.fr
avocat.fr
avoues.fr
cci.fr
@@ -1002,7 +1006,6 @@
chirurgiens-dentistes.fr
experts-comptables.fr
geometre-expert.fr
-gouv.fr
greta.fr
huissier-justice.fr
medecin.fr
@@ -1414,9 +1417,9 @@
tos.it
toscana.it
trentin-sud-tirol.it
-trentin-süd-tirol.it
+trentin-süd-tirol.it
trentin-sudtirol.it
-trentin-südtirol.it
+trentin-südtirol.it
trentin-sued-tirol.it
trentin-suedtirol.it
trentino-a-adige.it
@@ -1426,9 +1429,9 @@
trentino-s-tirol.it
trentino-stirol.it
trentino-sud-tirol.it
-trentino-süd-tirol.it
+trentino-süd-tirol.it
trentino-sudtirol.it
-trentino-südtirol.it
+trentino-südtirol.it
trentino-sued-tirol.it
trentino-suedtirol.it
trentino.it
@@ -1439,15 +1442,15 @@
trentinos-tirol.it
trentinostirol.it
trentinosud-tirol.it
-trentinosüd-tirol.it
+trentinosüd-tirol.it
trentinosudtirol.it
-trentinosüdtirol.it
+trentinosüdtirol.it
trentinosued-tirol.it
trentinosuedtirol.it
trentinsud-tirol.it
-trentinsüd-tirol.it
+trentinsüd-tirol.it
trentinsudtirol.it
-trentinsüdtirol.it
+trentinsüdtirol.it
trentinsued-tirol.it
trentinsuedtirol.it
tuscany.it
@@ -1464,13 +1467,13 @@
valled-aosta.it
valledaosta.it
vallee-aoste.it
-vallée-aoste.it
+vallée-aoste.it
vallee-d-aoste.it
-vallée-d-aoste.it
+vallée-d-aoste.it
valleeaoste.it
-valléeaoste.it
+valléeaoste.it
valleedaoste.it
-valléedaoste.it
+valléedaoste.it
vao.it
vda.it
ven.it
@@ -1504,7 +1507,7 @@
avellino.it
ba.it
balsan-sudtirol.it
-balsan-südtirol.it
+balsan-südtirol.it
balsan-suedtirol.it
balsan.it
bari.it
@@ -1523,7 +1526,7 @@
bolzano-altoadige.it
bolzano.it
bozen-sudtirol.it
-bozen-südtirol.it
+bozen-südtirol.it
bozen-suedtirol.it
bozen.it
br.it
@@ -1532,7 +1535,7 @@
bs.it
bt.it
bulsan-sudtirol.it
-bulsan-südtirol.it
+bulsan-südtirol.it
bulsan-suedtirol.it
bulsan.it
bz.it
@@ -1552,9 +1555,9 @@
cb.it
ce.it
cesena-forli.it
-cesena-forlì.it
+cesena-forlì.it
cesenaforli.it
-cesenaforlì.it
+cesenaforlì.it
ch.it
chieti.it
ci.it
@@ -1585,9 +1588,9 @@
fm.it
foggia.it
forli-cesena.it
-forlì-cesena.it
+forlì-cesena.it
forlicesena.it
-forlìcesena.it
+forlìcesena.it
fr.it
frosinone.it
ge.it
@@ -1718,7 +1721,7 @@
sr.it
ss.it
suedtirol.it
-südtirol.it
+südtirol.it
sv.it
ta.it
taranto.it
@@ -3790,10 +3793,18 @@
org.lr
net.lr
-// ls : https://en.wikipedia.org/wiki/.ls
+// ls : http://www.nic.ls/
+// Confirmed by registry
ls
+ac.ls
+biz.ls
co.ls
+edu.ls
+gov.ls
+info.ls
+net.ls
org.ls
+sc.ls
// lt : https://en.wikipedia.org/wiki/.lt
lt
@@ -4651,9 +4662,6 @@
// ccTLD for the Netherlands
nl
-// BV.nl will be a registry for dutch BV's (besloten vennootschap)
-bv.nl
-
// no : http://www.norid.no/regelverk/index.en.html
// The Norwegian registry has declined to notify us of updates. The web pages
// referenced below are the official source of the data. There is also an
@@ -7099,9 +7107,6 @@
// aco : 2015-01-08 ACO Severin Ahlmann GmbH & Co. KG
aco
-// active : 2014-05-01 Active Network, LLC
-active
-
// actor : 2013-12-12 United TLD Holdco Ltd.
actor
@@ -7402,9 +7407,6 @@
// blackfriday : 2014-01-16 Uniregistry, Corp.
blackfriday
-// blanco : 2015-07-16 BLANCO GmbH + Co KG
-blanco
-
// blockbuster : 2015-07-30 Dish DBS Corporation
blockbuster
@@ -8014,9 +8016,6 @@
// enterprises : 2013-09-20 Binky Moon, LLC
enterprises
-// epost : 2015-07-23 Deutsche Post AG
-epost
-
// epson : 2014-12-04 Seiko Epson Corporation
epson
@@ -9838,9 +9837,6 @@
// space : 2014-04-03 DotSpace Inc.
space
-// spiegel : 2014-02-05 SPIEGEL-Verlag Rudolf Augstein GmbH & Co. KG
-spiegel
-
// sport : 2017-11-16 Global Association of International Sports Federations (GAISF)
sport
@@ -9874,9 +9870,6 @@
// statefarm : 2015-07-30 State Farm Mutual Automobile Insurance Company
statefarm
-// statoil : 2014-12-04 Statoil ASA
-statoil
-
// stc : 2014-10-09 Saudi Telecom Company
stc
@@ -10678,9 +10671,6 @@
// zip : 2014-05-08 Charleston Road Registry Inc.
zip
-// zippo : 2015-07-02 Zadco Company
-zippo
-
// zone : 2013-11-14 Binky Moon, LLC
zone
@@ -10835,6 +10825,12 @@
// Submitted by Vincent Tseng
myasustor.com
+// Automattic Inc. : https://automattic.com/
+// Submitted by Alex Concha
+go-vip.co
+go-vip.net
+wpcomstaging.com
+
// AVM : https://avm.de
// Submitted by Andreas Weise
myfritz.net
@@ -10881,6 +10877,11 @@
// Submitted by Dave Tharp
browsersafetymark.io
+// Bytemark Hosting : https://www.bytemark.co.uk
+// Submitted by Paul Cammish
+dh.bytemark.co.uk
+vm.bytemark.co.uk
+
// callidomus : https://www.callidomus.com/
// Submitted by Marcus Popp
mycd.eu
@@ -10972,6 +10973,10 @@
cloudcontrolled.com
cloudcontrolapp.com
+// Cloudflare, Inc. : https://www.cloudflare.com/
+// Submitted by Jake Riesterer
+workers.dev
+
// co.ca : http://registry.co.ca/
co.ca
@@ -11073,6 +11078,11 @@
reg.dk
store.dk
+// dapps.earth : https://dapps.earth/
+// Submitted by Daniil Burdakov
+*.dapps.earth
+*.bzz.dapps.earth
+
// Debian : https://www.debian.org/
// Submitted by Peter Palfrader / Debian Sysadmin Team
debian.net
@@ -11085,6 +11095,11 @@
// Submitted by Norbert Auler
dnshome.de
+// DotArai : https://www.dotarai.com/
+// Submitted by Atsadawat Netcharadsang
+online.th
+shop.th
+
// DrayTek Corp. : https://www.draytek.com/
// Submitted by Paul Fang
drayddns.com
@@ -11614,6 +11629,7 @@
// Fastly Inc. : http://www.fastly.com/
// Submitted by Fastly Security
+fastly-terrarium.com
fastlylb.net
map.fastlylb.net
freetls.fastly.net
@@ -11641,9 +11657,19 @@
app.os.fedoraproject.org
app.os.stg.fedoraproject.org
+// Fermax : https://fermax.com/
+// submitted by Koen Van Isterdael
+mydobiss.com
+
// Filegear Inc. : https://www.filegear.com
// Submitted by Jason Zhu
filegear.me
+filegear-au.me
+filegear-de.me
+filegear-gb.me
+filegear-ie.me
+filegear-jp.me
+filegear-sg.me
// Firebase, Inc.
// Submitted by Chris Raynor
@@ -11706,6 +11732,8 @@
// Google, Inc.
// Submitted by Eduardo Vela
+run.app
+a.run.app
*.0emm.com
appspot.com
blogspot.ae
@@ -11825,6 +11853,19 @@
// Submitted by Hannu Aronsson
iki.fi
+// Individual Network Berlin e.V. : https://www.in-berlin.de/
+// Submitted by Christian Seitz
+dyn-berlin.de
+in-berlin.de
+in-brb.de
+in-butter.de
+in-dsl.de
+in-dsl.net
+in-dsl.org
+in-vpn.de
+in-vpn.net
+in-vpn.org
+
// info.at : http://www.info.at/
biz.at
info.at
@@ -11911,6 +11952,22 @@
lcube-server.de
svn-repos.de
+// Leadpages : https://www.leadpages.net
+// Submitted by Greg Dallavalle
+leadpages.co
+lpages.co
+lpusercontent.com
+
+// Lifetime Hosting : https://Lifetime.Hosting/
+// Submitted by Mike Fillator
+co.business
+co.education
+co.events
+co.financial
+co.network
+co.place
+co.technology
+
// Lightmaker Property Manager, Inc. : https://app.lmpm.com/
// Submitted by Greg Holland
app.lmpm.com
@@ -11928,6 +11985,15 @@
// Submitted by Victor Velchev
we.bs
+// LubMAN UMCS Sp. z o.o : https://lubman.pl/
+// Submitted by Ireneusz Maliszewski
+krasnik.pl
+leczna.pl
+lubartow.pl
+lublin.pl
+poniatowa.pl
+swidnik.pl
+
// Lug.org.uk : https://lug.org.uk
// Submitted by Jon Spriggs
uklugs.org
@@ -12315,6 +12381,10 @@
chirurgiens-dentistes-en-france.fr
byen.site
+// Redstar Consultants : https://www.redstarconsultants.com/
+// Submitted by Jons Slemmer
+instantcloud.cn
+
// Russian Academy of Sciences
// Submitted by Tech Support
ras.ru
@@ -12343,6 +12413,15 @@
rackmaze.com
rackmaze.net
+// Rancher Labs, Inc : https://rancher.com
+// Submitted by Vincent Fiduccia
+*.on-rancher.cloud
+*.on-rio.io
+
+// Read The Docs, Inc : https://www.readthedocs.org
+// Submitted by David Fischer
+readthedocs.io
+
// Red Hat, Inc. OpenShift : https://openshift.redhat.com/
// Submitted by Tim Kramer
rhcloud.com
@@ -12362,6 +12441,10 @@
ptplus.fit
wellbeingzone.co.uk
+// Rochester Institute of Technology : http://www.rit.edu/
+// Submitted by Jennifer Herting
+git-pages.rit.edu
+
// Sandstorm Development Group, Inc. : https://sandcats.io/
// Submitted by Asheesh Laroia
sandcats.io
@@ -12419,6 +12502,10 @@
sinaapp.com
vipsinaapp.com
+// Siteleaf : https://www.siteleaf.com/
+// Submitted by Skylar Challand
+siteleaf.net
+
// Skyhat : http://www.skyhat.io
// Submitted by Shante Adam
bounty-full.com
@@ -12444,6 +12531,10 @@
// Submitted by Stefan Neufeind
customer.speedpartner.de
+// Standard Library : https://stdlib.com
+// Submitted by Jacob Lee
+api.stdlib.com
+
// Storj Labs Inc. : https://storj.io/
// Submitted by Philip Hutchins
storj.farm
@@ -12456,6 +12547,15 @@
// Submitted by Dan Miller
temp-dns.com
+// Swisscom Application Cloud: https://developer.swisscom.com
+// Submitted by Matthias.Winzeler
+applicationcloud.io
+scapp.io
+
+// Syncloud : https://syncloud.org
+// Submitted by Boris Rybalkin
+syncloud.it
+
// Synology, Inc. : https://www.synology.com/
// Submitted by Rony Weng
diskstation.me
@@ -12484,6 +12584,12 @@
med.pl
sopot.pl
+// Telebit : https://telebit.cloud
+// Submitted by AJ ONeal
+telebit.app
+telebit.io
+*.telebit.xyz
+
// The Gwiddle Foundation : https://gwiddlefoundation.org.uk
// Submitted by Joshua Bayfield
gwiddle.co.uk
@@ -12643,6 +12749,14 @@
// Submitted by Olli Vanhoja
now.sh
+// Zine EOOD : https://zine.bg/
+// Submitted by Martin Angelov
+bss.design
+
+// Zitcom A/S : https://www.zitcom.dk
+// Submitted by Emil Stahl
+site.builder.nu
+
// Zone.id : https://zone.id/
// Submitted by Su Hendro
zone.id
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tld-0.9.2/src/tld/tests/base.py new/tld-0.9.3/src/tld/tests/base.py
--- old/tld-0.9.2/src/tld/tests/base.py 2019-01-10 22:54:41.000000000 +0100
+++ new/tld-0.9.3/src/tld/tests/base.py 2019-04-06 02:10:36.000000000 +0200
@@ -4,7 +4,7 @@
__title__ = 'tld.tests.base'
__author__ = 'Artur Barseghyan'
-__copyright__ = '2013-2018 Artur Barseghyan'
+__copyright__ = '2013-2019 Artur Barseghyan'
__license__ = 'GPL 2.0/LGPL 2.1'
__all__ = (
'log_info',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tld-0.9.2/src/tld/tests/test_commands.py new/tld-0.9.3/src/tld/tests/test_commands.py
--- old/tld-0.9.2/src/tld/tests/test_commands.py 2019-01-10 22:54:41.000000000 +0100
+++ new/tld-0.9.3/src/tld/tests/test_commands.py 2019-04-06 02:10:36.000000000 +0200
@@ -10,7 +10,7 @@
__title__ = 'tld.tests.test_commands'
__author__ = 'Artur Barseghyan'
-__copyright__ = '2013-2018 Artur Barseghyan'
+__copyright__ = '2013-2019 Artur Barseghyan'
__license__ = 'GPL 2.0/LGPL 2.1'
__all__ = ('TestCommands',)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tld-0.9.2/src/tld/tests/test_core.py new/tld-0.9.3/src/tld/tests/test_core.py
--- old/tld-0.9.2/src/tld/tests/test_core.py 2019-01-10 22:54:41.000000000 +0100
+++ new/tld-0.9.3/src/tld/tests/test_core.py 2019-04-06 02:30:56.000000000 +0200
@@ -19,6 +19,7 @@
from ..utils import (
get_fld,
get_tld,
+ is_tld,
parse_tld,
update_tld_names,
)
@@ -27,7 +28,7 @@
__title__ = 'tld.tests.test_core'
__author__ = 'Artur Barseghyan'
-__copyright__ = '2013-2018 Artur Barseghyan'
+__copyright__ = '2013-2019 Artur Barseghyan'
__license__ = 'GPL 2.0/LGPL 2.1'
__all__ = ('TestCore',)
@@ -286,6 +287,15 @@
},
}
+ self.invalid_tlds = {
+ 'v2.www.google.com',
+ 'tld.doesnotexist',
+ '2001:0db8:0000:85a3:0000:0000:ac1f',
+ '192.169.1.1',
+ 'localhost',
+ 'google.com',
+ }
+
@log_info
def test_0_tld_names_loaded(self):
"""Test if tld names are loaded."""
@@ -462,6 +472,18 @@
res.append(_res)
return res
+ @log_info
+ def test_12_is_tld_good_patterns(self):
+ """Test `is_tld` good URL patterns."""
+ for data in self.good_patterns:
+ self.assertTrue(is_tld(data['tld']))
+
+ @log_info
+ def test_13_is_tld_bad_patterns(self):
+ """Test `is_tld` bad URL patterns."""
+ for _tld in self.invalid_tlds:
+ self.assertFalse(is_tld(_tld))
+
if __name__ == '__main__':
unittest.main()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tld-0.9.2/src/tld/utils.py new/tld-0.9.3/src/tld/utils.py
--- old/tld-0.9.2/src/tld/utils.py 2019-01-10 22:54:41.000000000 +0100
+++ new/tld-0.9.3/src/tld/utils.py 2019-04-06 02:28:34.000000000 +0200
@@ -17,16 +17,17 @@
__title__ = 'tld.utils'
__author__ = 'Artur Barseghyan'
-__copyright__ = '2013-2018 Artur Barseghyan'
+__copyright__ = '2013-2019 Artur Barseghyan'
__license__ = 'GPL 2.0/LGPL 2.1'
__all__ = (
'get_fld',
'get_tld',
'get_tld_names',
+ 'is_tld',
+ 'parse_tld',
'process_url',
'Result',
'update_tld_names',
- 'parse_tld',
)
tld_names = None
@@ -182,7 +183,7 @@
:type fail_silently: bool
:type retry_count: int
:return: List of TLD names
- :type: iterable
+ :rtype: obj:`tld.utils.Trie`
"""
tld_names_local_path = get_setting('NAMES_LOCAL_PATH')
@@ -493,3 +494,27 @@
subdomain = None
return _tld, domain, subdomain
+
+
+def is_tld(value,
+ search_public=True,
+ search_private=True):
+ """Check if given URL is tld.
+
+ :param value: URL to get top level domain from.
+ :param search_public: If set to True, search in public domains.
+ :param search_private: If set to True, search in private domains.
+ :type value: str
+ :type search_public: bool
+ :type search_private: bool
+ :return:
+ :rtype: bool
+ """
+ _tld = get_tld(
+ url='www.{}'.format(value),
+ fail_silently=True,
+ fix_protocol=True,
+ search_public=search_public,
+ search_private=search_private,
+ )
+ return value == _tld
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tld-0.9.2/src/tld.egg-info/PKG-INFO new/tld-0.9.3/src/tld.egg-info/PKG-INFO
--- old/tld-0.9.2/src/tld.egg-info/PKG-INFO 2019-01-10 22:57:17.000000000 +0100
+++ new/tld-0.9.3/src/tld.egg-info/PKG-INFO 2019-04-06 02:33:04.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: tld
-Version: 0.9.2
+Version: 0.9.3
Summary: Extract the top level domain (TLD) from the URL given.
Home-page: https://github.com/barseghyanartur/tld
Author: Artur Barseghyan
@@ -127,6 +127,25 @@
get_fld("http://www.google.idontexist", fail_silently=True)
# None
+ Check if some tld is a valid tld
+ --------------------------------
+
+ .. code-block:: python
+
+ from tld import is_tld
+
+ is_tld('co.uk)
+ # True
+
+ is_tld('uk')
+ # True
+
+ is_tld('tld.doesnotexist')
+ # False
+
+ is_tld('www.google.com')
+ # False
+
Update the list of TLD names
============================
To update/sync the tld names with the most recent version run the following