idlib 0.0.1.dev20__py2.py3-none-any.whl → 0.0.1.dev21__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
idlib/__init__.py CHANGED
@@ -55,4 +55,4 @@ def get_right_id(uri):
55
55
  return pi
56
56
 
57
57
 
58
- __version__ = '0.0.1.dev20'
58
+ __version__ = '0.0.1.dev21'
idlib/systems/orcid.py CHANGED
@@ -29,10 +29,9 @@ OrcidPrefixes({'orcid': 'https://orcid.org/',
29
29
  class OrcidId(oq.OntId, idlib.Identifier):
30
30
  _namespaces = OrcidPrefixes
31
31
  _local_conventions = _namespaces
32
- local_regex = ('^0000-000(1-[5-9]|2-[0-9]|3-[0-4])'
33
- '[0-9][0-9][0-9]-[0-9][0-9][0-9]([0-9]|X)$')
34
- canonical_regex = ('^https://orcid.org/0000-000(1-[5-9]|2-[0-9]|3-'
35
- '[0-4])[0-9][0-9][0-9]-[0-9][0-9][0-9]([0-9]|X)$')
32
+ _common = '000[09]-00[01][0-9]-[0-9]{4}-[0-9]{3}([0-9]|X)'
33
+ local_regex = (f'^{_common}$')
34
+ canonical_regex = (f'^https://orcid.org/{_common}$')
36
35
 
37
36
  class OrcidMalformedError(exc.IdlibError):
38
37
  """ WHAT HAVE YOU DONE!? """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: idlib
3
- Version: 0.0.1.dev20
3
+ Version: 0.0.1.dev21
4
4
  Summary: A library for working with identifiers of all kinds.
5
5
  Home-page: https://github.com/tgbugs/idlib
6
6
  Author: Tom Gillespie
@@ -1,4 +1,4 @@
1
- idlib/__init__.py,sha256=qnrq_qOQKd6AyZuvFQHZzYTLz8YGVe1TBdGtZmt89dM,1696
1
+ idlib/__init__.py,sha256=gU4iaEA5x2uf_1tRUfaQ7d5y4KM-csnRBJyKa7if1UY,1696
2
2
  idlib/auth-config.py,sha256=tYM2aYCYJFG5NB4Af1dSn6YxhafttOp7W7aSc-QbVV8,460
3
3
  idlib/cache.py,sha256=lR1I3iEYvBhNeqoptS-Sj7SpIHt1K65nYlBrTK-ROVQ,3875
4
4
  idlib/config.py,sha256=Gli2tZlbKxBos8sXDoDK1g9mngfDw1ZWpBt_7MDZH-g,76
@@ -22,14 +22,14 @@ idlib/systems/ark.py,sha256=i9JqmuTWsJABrLHR0-_FX_PBbbpeFa7X4CO65QhyOD8,111
22
22
  idlib/systems/doi.py,sha256=GVL_uiLmU-Xa9odi7pGkbIniU7tTDesKO1pNbsYm2Fs,13100
23
23
  idlib/systems/handle.py,sha256=Gg97IuysdAdCX9j6EhuNfIddb1GDq0CmwW1SmuLkpgM,95
24
24
  idlib/systems/isni.py,sha256=TgiSTlDcSBLRro3gg_YfQJQkfaJ3saw0Au1OMhE23wU,89
25
- idlib/systems/orcid.py,sha256=3j17X59Fi-Yk_xhlJ6oPjb8BdzZD6_2BvbkIs1HeCPE,6745
25
+ idlib/systems/orcid.py,sha256=hharUZ5iixVDznHNpEh8BJadQV2dEpNH8h9TdKi0qZE,6634
26
26
  idlib/systems/pmid.py,sha256=Na-4_n7qmJ3VAbG0RUwnNTg7o4Z8OkuL_Hluq_A3IO0,181
27
27
  idlib/systems/ror.py,sha256=q_NyvVP-Xe9DrzQMFZAC2WeQU6QyxSa6RzrqQ0P7gUA,8067
28
28
  idlib/systems/rrid.py,sha256=XVHyHyiGC2OvbOSXmfU3_wswS6yUw65qZ3Pct0sjbfU,6886
29
29
  idlib/systems/urn.py,sha256=p222KjHgfF6y9srCm7kFWuWA9NK4lI-wEQUtSeuBqYk,113
30
30
  idlib/systems/web.py,sha256=vrSbQYWnxhe9pSgZcOqwLM3V6XQDLwv1QqWlhWWxbL0,1291
31
- idlib-0.0.1.dev20.dist-info/LICENSE,sha256=nEuJBsoHfpXGgf6ZyFGUhQJqxFWwhSYF-45pRAqTSb4,1080
32
- idlib-0.0.1.dev20.dist-info/METADATA,sha256=KrxuH4b2cYtMO0scJJCocd0lI8aIczeKhfIvOQLRToM,2012
33
- idlib-0.0.1.dev20.dist-info/WHEEL,sha256=DZajD4pwLWue70CAfc7YaxT1wLUciNBvN_TTcvXpltE,110
34
- idlib-0.0.1.dev20.dist-info/top_level.txt,sha256=xIk87gJPbeCKih9BVMP8PlEFdpcsGplenz0VQhx5sP8,6
35
- idlib-0.0.1.dev20.dist-info/RECORD,,
31
+ idlib-0.0.1.dev21.dist-info/LICENSE,sha256=nEuJBsoHfpXGgf6ZyFGUhQJqxFWwhSYF-45pRAqTSb4,1080
32
+ idlib-0.0.1.dev21.dist-info/METADATA,sha256=qWQNOrn8om22xx66S43Ao8rdjLjm_rUVKun5tG13yEk,2012
33
+ idlib-0.0.1.dev21.dist-info/WHEEL,sha256=DZajD4pwLWue70CAfc7YaxT1wLUciNBvN_TTcvXpltE,110
34
+ idlib-0.0.1.dev21.dist-info/top_level.txt,sha256=xIk87gJPbeCKih9BVMP8PlEFdpcsGplenz0VQhx5sP8,6
35
+ idlib-0.0.1.dev21.dist-info/RECORD,,