bioversions 0.5.321__py3-none-any.whl → 0.5.323__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.
@@ -29,6 +29,9 @@ from .flybase import FlybaseGetter
29
29
  from .guidetopharmacology import GuideToPharmacologyGetter
30
30
  from .hgnc import HGNCGetter
31
31
  from .homologene import HomoloGeneGetter
32
+ from .icd10 import ICD10Getter
33
+ from .icd11 import ICD11Getter
34
+ from .icf import ICFGetter
32
35
  from .intact import IntActGetter
33
36
  from .interpro import InterProGetter
34
37
  from .itis import ITISGetter
@@ -42,6 +45,7 @@ from .ncit import NCItGetter
42
45
  from .npass import NPASSGetter
43
46
  from .obo import iter_obo_getters
44
47
  from .ols import extend_ols_getters
48
+ from .omim import OMIMGetter
45
49
  from .oncotree import OncoTreeGetter
46
50
  from .pathbank import PathBankGetter
47
51
  from .pathwaycommons import PathwayCommonsGetter
@@ -127,6 +131,10 @@ def get_getters() -> List[Type[Getter]]:
127
131
  RGDGetter,
128
132
  CellosaurusGetter,
129
133
  MGIGetter,
134
+ OMIMGetter,
135
+ ICFGetter,
136
+ ICD10Getter,
137
+ ICD11Getter,
130
138
  ]
131
139
  getters.extend(iter_obo_getters())
132
140
  extend_ols_getters(getters)
@@ -143,6 +151,8 @@ def get_getter_dict() -> Mapping[str, Type[Getter]]:
143
151
  rv[norm(getter.bioregistry_id)] = getter
144
152
  rv[getter.name] = getter
145
153
  rv[norm(getter.name)] = getter
154
+ # TODO engineer this into the data model and backfill them
155
+ rv["omim.ps"] = OMIMGetter
146
156
  return rv
147
157
 
148
158
 
@@ -22,7 +22,7 @@ class EnsemblGetter(Getter):
22
22
 
23
23
  def get(self):
24
24
  """Get the latest Ensembl version number."""
25
- soup = get_soup(URL, verify=False)
25
+ soup = get_soup(URL)
26
26
  manifest = soup.find(**{"class": "box-header"}).text
27
27
  version, date = manifest.rstrip(")").split("(", 1)
28
28
  return dict(version=version.split()[-1], date=date)
@@ -0,0 +1,32 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+ """A getter for ICD10."""
4
+
5
+ import requests
6
+
7
+ from bioversions.utils import Getter, VersionType
8
+
9
+ __all__ = [
10
+ "ICD10Getter",
11
+ ]
12
+
13
+ URL = "https://icd.who.int/browse10/"
14
+
15
+
16
+ class ICD10Getter(Getter):
17
+ """A getter for ICD10."""
18
+
19
+ bioregistry_id = "icd10"
20
+ name = "International Classification of Diseases, 10th Revision"
21
+ version_type = VersionType.date
22
+ date_version_fmt = "%Y"
23
+
24
+ def get(self) -> str:
25
+ """Get the latest ICD10 version number."""
26
+ response = requests.get(URL, allow_redirects=True)
27
+ final_url = response.url
28
+ return final_url[len("https://icd.who.int/browse10/") :].split("/")[0]
29
+
30
+
31
+ if __name__ == "__main__":
32
+ ICD10Getter.print()
@@ -0,0 +1,32 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+ """A getter for ICD11."""
4
+
5
+ import requests
6
+
7
+ from bioversions.utils import Getter, VersionType
8
+
9
+ __all__ = [
10
+ "ICD11Getter",
11
+ ]
12
+
13
+ URL = "https://icd.who.int/browse/latest-release/mms/en"
14
+
15
+
16
+ class ICD11Getter(Getter):
17
+ """A getter for ICD11."""
18
+
19
+ bioregistry_id = "icd11"
20
+ name = "International Classification of Diseases, 11th Revision"
21
+ version_type = VersionType.date
22
+ date_version_fmt = "%Y-%m"
23
+
24
+ def get(self) -> str:
25
+ """Get the latest ICD11 version number."""
26
+ response = requests.get(URL, allow_redirects=True)
27
+ final_url = response.url
28
+ return final_url[len("https://icd.who.int/browse/") :].split("/")[0]
29
+
30
+
31
+ if __name__ == "__main__":
32
+ ICD11Getter.print()
@@ -0,0 +1,32 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+ """A getter for ICF."""
4
+
5
+ import requests
6
+
7
+ from bioversions.utils import Getter, VersionType
8
+
9
+ __all__ = [
10
+ "ICFGetter",
11
+ ]
12
+
13
+ URL = "https://icd.who.int/browse/latest-release/icf/en"
14
+
15
+
16
+ class ICFGetter(Getter):
17
+ """A getter for ICF."""
18
+
19
+ bioregistry_id = "icf"
20
+ name = "International Classification of Functioning, Disability and Health"
21
+ version_type = VersionType.date
22
+ date_version_fmt = "%Y-%m"
23
+
24
+ def get(self) -> str:
25
+ """Get the latest ICF version number."""
26
+ response = requests.get(URL, allow_redirects=True)
27
+ final_url = response.url
28
+ return final_url[len("https://icd.who.int/browse/") :].split("/")[0]
29
+
30
+
31
+ if __name__ == "__main__":
32
+ ICFGetter.print()
@@ -0,0 +1,34 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+ """A getter for the OMIM."""
4
+
5
+
6
+ from bioversions.utils import Getter, VersionType, get_soup
7
+
8
+ __all__ = [
9
+ "OMIMGetter",
10
+ ]
11
+
12
+
13
+ class OMIMGetter(Getter):
14
+ """A getter for OMIM."""
15
+
16
+ bioregistry_id = "omim"
17
+ name = "Online Mendelian Inheritance in Man"
18
+ date_version_fmt = "%B %d, %Y"
19
+ version_type = VersionType.date
20
+
21
+ def get(self) -> str:
22
+ """Get the latest OMIM version number."""
23
+ soup = get_soup("https://omim.org/")
24
+ for tag in soup.find_all("h5"):
25
+ text = tag.text.strip()
26
+ if text.startswith("Updated"):
27
+ rv = text[len("Updated") :].strip()
28
+ rv = rv.replace("nd", "").replace("st", "").replace("rd", "").replace("th", "")
29
+ return rv
30
+ raise ValueError
31
+
32
+
33
+ if __name__ == "__main__":
34
+ OMIMGetter.print()
@@ -24,7 +24,7 @@ class RxNormGetter(Getter):
24
24
  def get(self) -> datetime:
25
25
  """Get the latest RxNorm version number."""
26
26
  soup = get_soup(URL)
27
- raw_version = soup.find("th", {"class": "current"}).contents[2]
27
+ raw_version = soup.find("th", {"class": "current"}).contents[2].strip()
28
28
  raw_fmt = "%B %d, %Y"
29
29
  return datetime.strptime(raw_version, raw_fmt)
30
30
 
bioversions/version.py CHANGED
@@ -9,7 +9,7 @@ __all__ = [
9
9
  "VERSION",
10
10
  ]
11
11
 
12
- VERSION = "0.5.321"
12
+ VERSION = "0.5.323"
13
13
 
14
14
 
15
15
  def get_git_hash() -> str:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bioversions
3
- Version: 0.5.321
3
+ Version: 0.5.323
4
4
  Summary: What's the current version for each biological database?
5
5
  Home-page: https://github.com/biopragmatics/bioversions
6
6
  Download-URL: https://github.com/biopragmatics/bioversions/releases
@@ -6,11 +6,11 @@ bioversions/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  bioversions/slack_client.py,sha256=42kl4TbjtXimVRULcBfe8i3pdJLScEPvJr1vw72tv-4,1271
7
7
  bioversions/twitter_client.py,sha256=TQhsdp6avlzoZLoZlndJlwsYhIYI-uabehZJ1W1mNuY,1353
8
8
  bioversions/utils.py,sha256=AZ0h5Pjc8WfuWIaDL9yJiD75JYYxcnr5dKkIIH7JuoM,10099
9
- bioversions/version.py,sha256=yQzBR3nvaVyuGwWqSmFt9L47S-Qw93zXVGKa-IKgpGk,645
9
+ bioversions/version.py,sha256=PkTgUBVYnJrIjAZoci_F5bZPlP1peNfTCtLbMACux7I,645
10
10
  bioversions/wsgi.py,sha256=Z1HYFmnrWKNGwHq4R4DRfBuLzAEAAZ5UfHjvJUpnDfs,826
11
11
  bioversions/resources/__init__.py,sha256=0E1yGGT5SztSGEa30Tai4wCUki4nqfynqCSNAvjzEOk,1173
12
12
  bioversions/resources/update.py,sha256=21LprPktMKXdFI7llKjn7gsAQq01TGSKFbWQEhhwDJ0,3215
13
- bioversions/sources/__init__.py,sha256=MmBb67Cq_eETTmHipOkVoGuxkK6My0igCq5VI--ffXw,5606
13
+ bioversions/sources/__init__.py,sha256=XFN0iJriSFQRpAVQm2b8p8P31I8he7rcbZAAEq81OMo,5899
14
14
  bioversions/sources/antibodyregistry.py,sha256=VIgnYZ_Jtcx0u19X60Ee7qTqDgbub5C2EBtK_Bz7Twc,705
15
15
  bioversions/sources/bigg.py,sha256=qPBpX8qap8MlnlcntWO30jIgWD4c9RV57cKp_EZhnE0,672
16
16
  bioversions/sources/biogrid.py,sha256=k32iXtno-Q2M2SVDX_S-22_B1rwSTzQNZwJCL9nwoW4,759
@@ -25,12 +25,15 @@ bioversions/sources/dgi.py,sha256=2TSzl4XeTUt_I8Keuu51NuuShhhtiITHKMCbp1wf6uo,97
25
25
  bioversions/sources/disgenet.py,sha256=iRd1K2o_m8xSlJrWoSD8-plnTS1nO0Ur_OCCRD2V9u8,752
26
26
  bioversions/sources/drugbank.py,sha256=ZZ2yw34bRcLFT6n_Ygn1daGWk_oVx4A7ovUKSM_EQek,1005
27
27
  bioversions/sources/drugcentral.py,sha256=EWYatYEqZbwjH-0lUXYEfe5P5VNHsNJAtNDlSP_OuZM,1117
28
- bioversions/sources/ensembl.py,sha256=VySAE7kEeD1Fk6SCSU0t3j4_89u2f5wGF40F-mxInbk,774
28
+ bioversions/sources/ensembl.py,sha256=BHssnbJMI-jONB8W1mKERYsccRmIETI0NeWLnTTiDdk,760
29
29
  bioversions/sources/expasy.py,sha256=EQXDz1LJSc0J-BE5Gy5tI-T4e6j4D5jid6c6ajzQjG8,830
30
30
  bioversions/sources/flybase.py,sha256=5S0gI8tULx3sfNVy2O4grvyqIUwI4teS9S6khDh-JzQ,779
31
31
  bioversions/sources/guidetopharmacology.py,sha256=Lw0H0QDCwVMdvXdfIzySNLtP1WO7BANpab6gwPeURwc,1306
32
32
  bioversions/sources/hgnc.py,sha256=OH8E9dF2oPbh_BshPgKrWSFkYWDq9rj9J7DN06pVFxQ,970
33
33
  bioversions/sources/homologene.py,sha256=_f6SQRXe67t1jqQ6HjQIEOGApPUHLlfHMZojChumWzc,647
34
+ bioversions/sources/icd10.py,sha256=cfiJcueTr6Z1dIzdP68QeCPlnJhr3Yd3U97TZplR1JI,716
35
+ bioversions/sources/icd11.py,sha256=EsdUrPxio_VIv9tkPoauxozKY-fdjwesbb5Kh_bijU0,736
36
+ bioversions/sources/icf.py,sha256=iTWjjScSlKDJZRRi1cKTZyTpP4p5Illv6LoZEvo-PSw,733
34
37
  bioversions/sources/intact.py,sha256=bRBnGm3-PHGdKlyYGkCabzQue9RG2MmF1A3CVF_U9e4,621
35
38
  bioversions/sources/interpro.py,sha256=UELzp1FBKBcul09DiK3eqkHZ31kkBPT4vuDD9A_9hz0,1261
36
39
  bioversions/sources/itis.py,sha256=u9h72y5JijXTprOe1SlaTW0adllj6NNoRP95AwuhzjE,831
@@ -44,6 +47,7 @@ bioversions/sources/ncit.py,sha256=ylubS3ntMyimaZDHFNFrjc2pkDfpyrBkhrl8Dq4duyQ,1
44
47
  bioversions/sources/npass.py,sha256=-EL6Ej-23cdGKehn8nusP8LJ3z4oRX4ZPPDnjx_ItXQ,739
45
48
  bioversions/sources/obo.py,sha256=n2_Auh0ccu3WKOwq8JqFldzS8-KY0GVC1fReazPLr78,1735
46
49
  bioversions/sources/ols.py,sha256=PqL_CfpS0NxAfo1iSh2shakcnywRl_zfHXBcNrcLdiA,2754
50
+ bioversions/sources/omim.py,sha256=l1dApi8xBidUIwWZTYwc7bHtPQBuernxDfdOVOnf34s,847
47
51
  bioversions/sources/oncotree.py,sha256=Z-zZWFeVEfCyZcEMcrdVTcEoHIDfYB-v7oK_iYVSGEI,1026
48
52
  bioversions/sources/pathbank.py,sha256=_oMfaJs02FBJ6kIWHPW-M2euxAn5ylsGKqseRSJ3m2M,718
49
53
  bioversions/sources/pathwaycommons.py,sha256=lLVmJkf3qDuMk316Aia0CzJyp_-ahAASLupaAuQS9iw,686
@@ -55,7 +59,7 @@ bioversions/sources/reactome.py,sha256=Oy3huY1ihuWmLZqxM92Y44eZQ7DXmVAwGMzTFhqBy
55
59
  bioversions/sources/rfam.py,sha256=sz_9lCGS-h6cTp3d2MCQVRkvlFkjF5mijwj1MfZpRbc,565
56
60
  bioversions/sources/rgd.py,sha256=x7Mks8qp_dE4xWkA7OQu4eM8__oPsr13M-bFd5otcoA,791
57
61
  bioversions/sources/rhea.py,sha256=LERbsgy5ZI8Jy5v9r1IXGRBe70_bd8YwBa8a3_uumWg,831
58
- bioversions/sources/rxnorm.py,sha256=ocFtWX_xce9U4IeDxgGvZp5x02GETljLyW9oza3tkNw,1027
62
+ bioversions/sources/rxnorm.py,sha256=qZLCiw-HjsyYsFTa4ZtCtLqXcU8LDoxRSEx9YuFp7Ys,1035
59
63
  bioversions/sources/sgd.py,sha256=xLZdpA0WBJVIkgwuLmosVpXo9WBeiqCAA8_4taSrLsA,1109
60
64
  bioversions/sources/slm.py,sha256=nttj-mrzwgosK-Vv3UVlyAI0EX1WkJRFBkGmkTnhdU0,709
61
65
  bioversions/sources/stringdb.py,sha256=6D3rcGGzdkgVOw4refJgjsorkyZuPswTYe4rNT4bQRQ,810
@@ -64,9 +68,9 @@ bioversions/sources/uniprot.py,sha256=_rootal_mrESkiXJh3udfr1UGrlzP7CQQIMsa35tyc
64
68
  bioversions/sources/unversioned.py,sha256=noHxGmy9cpVv5xegMHouBF6oCbW6CP1jpOeCVdE7Eak,78
65
69
  bioversions/sources/wikipathways.py,sha256=HTva8vsXRQWU6bia83Et4vveo-QhzJS6dDWeu9Syc6c,823
66
70
  bioversions/sources/zfin.py,sha256=D7csziZ3UsW8dncm6XKA0t3x6XB4cFbG9PTYcT-g2bg,708
67
- bioversions-0.5.321.dist-info/LICENSE,sha256=GzLA83qaovFgoZWRYwaAmY-lkHZyDySJHU-YKE9NdVs,1076
68
- bioversions-0.5.321.dist-info/METADATA,sha256=u8P_JEnbU9TBJD0eo7u0A_lEJA9O9yhTkTH1KhI4cCI,9443
69
- bioversions-0.5.321.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
70
- bioversions-0.5.321.dist-info/entry_points.txt,sha256=A3qrS-nvKNZPZWQbYlmsmiDTge524C4yR-arRJwdHls,53
71
- bioversions-0.5.321.dist-info/top_level.txt,sha256=0QO2OEUMchj5GSlWEFi0cvUpsm4b_uwuuvr6uSEmfY0,12
72
- bioversions-0.5.321.dist-info/RECORD,,
71
+ bioversions-0.5.323.dist-info/LICENSE,sha256=GzLA83qaovFgoZWRYwaAmY-lkHZyDySJHU-YKE9NdVs,1076
72
+ bioversions-0.5.323.dist-info/METADATA,sha256=1BeWHhJ2xPlmNzJaQRF-aunp8DoXjD7yGSm9PPLTny8,9443
73
+ bioversions-0.5.323.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
74
+ bioversions-0.5.323.dist-info/entry_points.txt,sha256=A3qrS-nvKNZPZWQbYlmsmiDTge524C4yR-arRJwdHls,53
75
+ bioversions-0.5.323.dist-info/top_level.txt,sha256=0QO2OEUMchj5GSlWEFi0cvUpsm4b_uwuuvr6uSEmfY0,12
76
+ bioversions-0.5.323.dist-info/RECORD,,