bioversions 0.6.0__py3-none-any.whl → 0.6.2__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.
- bioversions/resources/versions.json +44 -2
- bioversions/sources/hgnc.py +10 -15
- bioversions/sources/mesh.py +10 -3
- bioversions/version.py +1 -1
- {bioversions-0.6.0.dist-info → bioversions-0.6.2.dist-info}/METADATA +1 -1
- {bioversions-0.6.0.dist-info → bioversions-0.6.2.dist-info}/RECORD +9 -9
- {bioversions-0.6.0.dist-info → bioversions-0.6.2.dist-info}/WHEEL +0 -0
- {bioversions-0.6.0.dist-info → bioversions-0.6.2.dist-info}/entry_points.txt +0 -0
- {bioversions-0.6.0.dist-info → bioversions-0.6.2.dist-info}/licenses/LICENSE +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"annotations": {
|
3
|
-
"revision":
|
4
|
-
"date": "2024-12-
|
3
|
+
"revision": 866,
|
4
|
+
"date": "2024-12-10",
|
5
5
|
"author": "runner"
|
6
6
|
},
|
7
7
|
"database": [
|
@@ -2184,6 +2184,12 @@
|
|
2184
2184
|
"version": "2024-09-08",
|
2185
2185
|
"homepage": "ftp://ftp.ebi.ac.uk/pub/databases/intact/complex/2024-09-08/",
|
2186
2186
|
"date": "2024-09-08"
|
2187
|
+
},
|
2188
|
+
{
|
2189
|
+
"retrieved": "2024-12-10",
|
2190
|
+
"version": "2024-11-29",
|
2191
|
+
"homepage": "ftp://ftp.ebi.ac.uk/pub/databases/intact/complex/2024-11-29/",
|
2192
|
+
"date": "2024-11-29"
|
2187
2193
|
}
|
2188
2194
|
],
|
2189
2195
|
"vtype": "date"
|
@@ -5491,6 +5497,11 @@
|
|
5491
5497
|
"retrieved": "2024-12-03",
|
5492
5498
|
"version": "2024-11-01",
|
5493
5499
|
"homepage": "https://storage.googleapis.com/public-download-files/hgnc/archive/archive/monthly/json/hgnc_complete_set_2024-11-01.json"
|
5500
|
+
},
|
5501
|
+
{
|
5502
|
+
"retrieved": "2024-12-09",
|
5503
|
+
"version": "2024-12-03",
|
5504
|
+
"homepage": "https://storage.googleapis.com/public-download-files/hgnc/archive/archive/monthly/json/hgnc_complete_set_2024-12-03.json"
|
5494
5505
|
}
|
5495
5506
|
],
|
5496
5507
|
"name": "HGNC",
|
@@ -6044,6 +6055,12 @@
|
|
6044
6055
|
"version": "2024-09-08",
|
6045
6056
|
"homepage": "ftp://ftp.ebi.ac.uk/pub/databases/intact/2024-09-08/",
|
6046
6057
|
"date": "2024-09-08"
|
6058
|
+
},
|
6059
|
+
{
|
6060
|
+
"retrieved": "2024-12-10",
|
6061
|
+
"version": "2024-11-29",
|
6062
|
+
"homepage": "ftp://ftp.ebi.ac.uk/pub/databases/intact/2024-11-29/",
|
6063
|
+
"date": "2024-11-29"
|
6047
6064
|
}
|
6048
6065
|
],
|
6049
6066
|
"vtype": "date"
|
@@ -7047,6 +7064,11 @@
|
|
7047
7064
|
"retrieved": "2023-12-01",
|
7048
7065
|
"version": "2024",
|
7049
7066
|
"homepage": "ftp://nlmpubs.nlm.nih.gov/online/mesh/2024"
|
7067
|
+
},
|
7068
|
+
{
|
7069
|
+
"retrieved": "2024-12-09",
|
7070
|
+
"version": "2025",
|
7071
|
+
"homepage": "ftp://nlmpubs.nlm.nih.gov/online/mesh/2025"
|
7050
7072
|
}
|
7051
7073
|
],
|
7052
7074
|
"name": "MeSH",
|
@@ -11645,6 +11667,10 @@
|
|
11645
11667
|
{
|
11646
11668
|
"retrieved": "2024-12-03",
|
11647
11669
|
"version": "2024-11-29"
|
11670
|
+
},
|
11671
|
+
{
|
11672
|
+
"retrieved": "2024-12-10",
|
11673
|
+
"version": "2024-12-06"
|
11648
11674
|
}
|
11649
11675
|
],
|
11650
11676
|
"name": "Rat Genome Database",
|
@@ -11813,6 +11839,10 @@
|
|
11813
11839
|
{
|
11814
11840
|
"retrieved": "2024-10-03",
|
11815
11841
|
"version": "90"
|
11842
|
+
},
|
11843
|
+
{
|
11844
|
+
"retrieved": "2024-12-10",
|
11845
|
+
"version": "91"
|
11816
11846
|
}
|
11817
11847
|
],
|
11818
11848
|
"vtype": "sequential"
|
@@ -14854,6 +14884,14 @@
|
|
14854
14884
|
{
|
14855
14885
|
"retrieved": "2024-12-08",
|
14856
14886
|
"version": "2024-12-08"
|
14887
|
+
},
|
14888
|
+
{
|
14889
|
+
"retrieved": "2024-12-09",
|
14890
|
+
"version": "2024-12-09"
|
14891
|
+
},
|
14892
|
+
{
|
14893
|
+
"retrieved": "2024-12-10",
|
14894
|
+
"version": "2024-12-10"
|
14857
14895
|
}
|
14858
14896
|
],
|
14859
14897
|
"name": "SwissLipids",
|
@@ -19816,6 +19854,10 @@
|
|
19816
19854
|
{
|
19817
19855
|
"retrieved": "2024-12-08",
|
19818
19856
|
"version": "2024-12-07"
|
19857
|
+
},
|
19858
|
+
{
|
19859
|
+
"retrieved": "2024-12-10",
|
19860
|
+
"version": "2024-12-08"
|
19819
19861
|
}
|
19820
19862
|
],
|
19821
19863
|
"name": "Zebrafish Information Network",
|
bioversions/sources/hgnc.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
"""A getter for HGNC."""
|
2
2
|
|
3
|
-
import datetime
|
4
3
|
import logging
|
5
4
|
|
6
5
|
import requests
|
@@ -14,7 +13,8 @@ __all__ = [
|
|
14
13
|
logger = logging.getLogger(__name__)
|
15
14
|
|
16
15
|
PATH = "https://storage.googleapis.com/public-download-files/hgnc/archive/archive/monthly/json/"
|
17
|
-
|
16
|
+
URL = "https://storage.googleapis.com/storage/v1/b/public-download-files/o?prefix=hgnc/archive/archive/monthly"
|
17
|
+
PREFIX = "hgnc/archive/archive/monthly/json/hgnc_complete_set_"
|
18
18
|
SUFFIX = ".json"
|
19
19
|
|
20
20
|
|
@@ -28,19 +28,14 @@ class HGNCGetter(Getter):
|
|
28
28
|
version_type = VersionType.date
|
29
29
|
|
30
30
|
def get(self) -> str:
|
31
|
-
"""Get the latest HGNC version number."""
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
if this_month == 1:
|
40
|
-
maybe_last_month = f"{this_year - 1}-12-01"
|
41
|
-
else:
|
42
|
-
maybe_last_month = f"{this_year}-{this_month - 1}-01"
|
43
|
-
return maybe_last_month
|
31
|
+
"""Get the latest monthly HGNC version number."""
|
32
|
+
res = requests.get(URL, timeout=5)
|
33
|
+
items = res.json()["items"]
|
34
|
+
return max(
|
35
|
+
item["name"].removeprefix(PREFIX).removesuffix(SUFFIX)
|
36
|
+
for item in items
|
37
|
+
if (name := item["name"]).startswith(PREFIX) and name.endswith(SUFFIX)
|
38
|
+
)
|
44
39
|
|
45
40
|
|
46
41
|
if __name__ == "__main__":
|
bioversions/sources/mesh.py
CHANGED
@@ -8,6 +8,10 @@ __all__ = [
|
|
8
8
|
"MeshGetter",
|
9
9
|
]
|
10
10
|
|
11
|
+
#: In 2024 and before, these were .gz, but after
|
12
|
+
#: became .xml files
|
13
|
+
SUFFIXES = [".xml", ".xml.gz", ".gz"]
|
14
|
+
|
11
15
|
|
12
16
|
class MeshGetter(Getter):
|
13
17
|
"""A getter for MeSH."""
|
@@ -22,9 +26,12 @@ class MeshGetter(Getter):
|
|
22
26
|
with ftplib.FTP("nlmpubs.nlm.nih.gov") as ftp:
|
23
27
|
ftp.login()
|
24
28
|
ftp.cwd("/online/mesh/MESH_FILES/xmlmesh/")
|
25
|
-
for name, _ in ftp.mlsd()
|
26
|
-
|
27
|
-
|
29
|
+
names = [name for name, _ in ftp.mlsd()]
|
30
|
+
|
31
|
+
for name in names:
|
32
|
+
for suffix in SUFFIXES:
|
33
|
+
if name.startswith("desc") and name.endswith(suffix):
|
34
|
+
return name[len("desc") : -len(suffix)]
|
28
35
|
raise ValueError
|
29
36
|
|
30
37
|
|
bioversions/version.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: bioversions
|
3
|
-
Version: 0.6.
|
3
|
+
Version: 0.6.2
|
4
4
|
Summary: Get the current version for biological databases
|
5
5
|
Project-URL: Bug Tracker, https://github.com/biopragmatics/bioversions/issues
|
6
6
|
Project-URL: Homepage, https://github.com/biopragmatics/bioversions
|
@@ -6,11 +6,11 @@ bioversions/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
bioversions/slack_client.py,sha256=p9HmnyRCVuQvje0RbdDK9QuRlSw__WwFCJ8Be9cIkzM,1209
|
7
7
|
bioversions/twitter_client.py,sha256=9d5Am0FSs7_EgGdjkxqpo98vPir9rjIXIxhZMmLgK5Q,1285
|
8
8
|
bioversions/utils.py,sha256=x5d4p12VMlD5F8-y_J6JE5sct7BCV1d-zO-y5bSamSM,10342
|
9
|
-
bioversions/version.py,sha256=
|
9
|
+
bioversions/version.py,sha256=FzgFvx_u7smueA0g2SHMrCOMcrg6T7pi3I5A1MX27jM,585
|
10
10
|
bioversions/wsgi.py,sha256=-F7pUZipcQgj1T_f-9QCZBVdQ9sZBH93x3hxh9h7klU,794
|
11
11
|
bioversions/resources/__init__.py,sha256=Nxw6w6_gRC4B_JwvbAAKpNR2rIpkNRZ5UkBIMdNqldY,1659
|
12
12
|
bioversions/resources/update.py,sha256=btT_tdp0NKBRdshf4VuOe-vHWq0QQtcWWFcXS8QUfLU,3626
|
13
|
-
bioversions/resources/versions.json,sha256=
|
13
|
+
bioversions/resources/versions.json,sha256=L_-UF04Fw5a493zTPRoJXt-FPmQIWqxxttkpeq3hGs0,484555
|
14
14
|
bioversions/sources/__init__.py,sha256=pXONlDoxWIVRTSdCN3RDr3aMY38QGPOt0EwPAMCaIF8,6248
|
15
15
|
bioversions/sources/antibodyregistry.py,sha256=6GF_9v8A_8Y4o6_nsZ9cAOP5vK3ZbPQ5qeL99UefR80,680
|
16
16
|
bioversions/sources/bigg.py,sha256=iVrxyvKiEIUXs6FM2AiLDYa-yYDNGMONmiIv_R6KBg4,661
|
@@ -32,7 +32,7 @@ bioversions/sources/expasy.py,sha256=5C9m9Okygaq2D7zuuTnkOD4V24QU4C89ldztfLtiqnI
|
|
32
32
|
bioversions/sources/flybase.py,sha256=L1qs0OF0OhjdknwV6DfvnnlxP37Z09hjuk-pz1Un2GM,754
|
33
33
|
bioversions/sources/gtdb.py,sha256=lbtmSh4uhy6-Ve_slwO-Y7_wHRVySuof1I_rR-FQ05k,1001
|
34
34
|
bioversions/sources/guidetopharmacology.py,sha256=WAasA6ZlyqJiqP70VrrCEpi2-JW7UMrUunAuE6pTk_g,1377
|
35
|
-
bioversions/sources/hgnc.py,sha256=
|
35
|
+
bioversions/sources/hgnc.py,sha256=Wy0M8aT-SKsMKUWxEdPpWs32SjL7UZyiANLtCQC4Wp0,1099
|
36
36
|
bioversions/sources/homologene.py,sha256=TaW0A33PLS4804zrRWZKDmo_zwEzK9bxX_zAiaUmd5w,622
|
37
37
|
bioversions/sources/icd10.py,sha256=86zl9yxeUyy3WKgQS55I-1bK-kegH59sZFiwYGKFaAU,703
|
38
38
|
bioversions/sources/icd11.py,sha256=a8kpwP6P3-Qowj6fGFFlsbL1ibhaWN48wez_qANiCE0,723
|
@@ -41,7 +41,7 @@ bioversions/sources/intact.py,sha256=BuZ-2n6O7e3HT2PrHHPbBkhmXa54Mj19kmJcdv9PfAU
|
|
41
41
|
bioversions/sources/interpro.py,sha256=H6dZI71gUXo7L2YefCTiJD4quQRAvyYh5nDDbh2iuvE,1238
|
42
42
|
bioversions/sources/itis.py,sha256=hh5zg61OAJIC76-5pwR5gd9YyWWUy_FY53X9vEAwLIQ,815
|
43
43
|
bioversions/sources/kegg.py,sha256=dI7uQpaZh65rZOdutqcXNOkxn3HGwDNzaXyUhxiTdRU,905
|
44
|
-
bioversions/sources/mesh.py,sha256=
|
44
|
+
bioversions/sources/mesh.py,sha256=XqjPU5UJgOHVc28c_6N7RiJd1F9RoUGPXGmmIaNopvM,971
|
45
45
|
bioversions/sources/mgi.py,sha256=TX-V0xcWFmktssjRldjYb591HCtoheY99w0FTH2cIZk,841
|
46
46
|
bioversions/sources/mirbase.py,sha256=q3C6-Cy-vELyJCQCnpg4pveoRrlYfqgb4313mHG5Cp4,996
|
47
47
|
bioversions/sources/moalmanac.py,sha256=DMotSYD4sGOTZaJgn_iPeUfEdhjlgmzoKKLYS-L6Tro,749
|
@@ -73,8 +73,8 @@ bioversions/sources/wikipathways.py,sha256=STw8Bivc3IZLYIx-KwpxHLUmRTqNfHm0wQywD
|
|
73
73
|
bioversions/sources/zfin.py,sha256=3Ooz3lDx8J42OAoyU8eJI-fRnMRiYyUMcj4fDE5DVLQ,683
|
74
74
|
bioversions/templates/base.html,sha256=AKB6aT39U9VtOM2zvW_Um5IgYO9Ky-CLpByxy5XXO5M,713
|
75
75
|
bioversions/templates/home.html,sha256=z98FSslCRP2K39xbHpSPgk19j7Z21PSbRGAtaXI0Md0,2756
|
76
|
-
bioversions-0.6.
|
77
|
-
bioversions-0.6.
|
78
|
-
bioversions-0.6.
|
79
|
-
bioversions-0.6.
|
80
|
-
bioversions-0.6.
|
76
|
+
bioversions-0.6.2.dist-info/METADATA,sha256=48A1kYWak3ieiU4qlfIlQsecxF7GKmnp36n0CaQ3DzA,19674
|
77
|
+
bioversions-0.6.2.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
78
|
+
bioversions-0.6.2.dist-info/entry_points.txt,sha256=A3qrS-nvKNZPZWQbYlmsmiDTge524C4yR-arRJwdHls,53
|
79
|
+
bioversions-0.6.2.dist-info/licenses/LICENSE,sha256=QcgJZKGxlW5BwBNnCBL8VZLVtRvXs81Ch9lJRQSIpJg,1076
|
80
|
+
bioversions-0.6.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|