bioversions 0.5.531__py3-none-any.whl → 0.5.533__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/sources/hgnc.py +7 -3
- bioversions/sources/kegg.py +2 -1
- bioversions/version.py +1 -1
- {bioversions-0.5.531.dist-info → bioversions-0.5.533.dist-info}/METADATA +1 -1
- {bioversions-0.5.531.dist-info → bioversions-0.5.533.dist-info}/RECORD +9 -9
- {bioversions-0.5.531.dist-info → bioversions-0.5.533.dist-info}/WHEEL +1 -1
- {bioversions-0.5.531.dist-info → bioversions-0.5.533.dist-info}/LICENSE +0 -0
- {bioversions-0.5.531.dist-info → bioversions-0.5.533.dist-info}/entry_points.txt +0 -0
- {bioversions-0.5.531.dist-info → bioversions-0.5.533.dist-info}/top_level.txt +0 -0
bioversions/sources/hgnc.py
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
|
3
1
|
"""A getter for HGNC."""
|
4
2
|
|
5
3
|
import datetime
|
@@ -32,11 +30,17 @@ class HGNCGetter(Getter):
|
|
32
30
|
def get(self) -> str:
|
33
31
|
"""Get the latest HGNC version number."""
|
34
32
|
today = datetime.date.today()
|
33
|
+
this_year = int(today.strftime("%Y"))
|
34
|
+
this_month = int(today.strftime("%m"))
|
35
35
|
maybe = today.strftime("%Y-%m-01")
|
36
36
|
res = requests.head(self.homepage_fmt.format(version=maybe))
|
37
37
|
if res.status_code == 200:
|
38
38
|
return maybe
|
39
|
-
|
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
|
40
44
|
|
41
45
|
|
42
46
|
if __name__ == "__main__":
|
bioversions/sources/kegg.py
CHANGED
bioversions/version.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: bioversions
|
3
|
-
Version: 0.5.
|
3
|
+
Version: 0.5.533
|
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,7 +6,7 @@ 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=6ygaoe5rRArtrCXHrVygpl2cD7Otrbs4D1rADmpXDrA,10425
|
9
|
-
bioversions/version.py,sha256=
|
9
|
+
bioversions/version.py,sha256=2AuoDMOE1IhqMeVVU1OVsTGxU4x-cqChCj1sog69xA4,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=CfvtoUJ3Ai_--Y5DHBx2zZ4vfIGgDsQaE4asb2kp3bg,3273
|
@@ -30,7 +30,7 @@ bioversions/sources/ensembl.py,sha256=BHssnbJMI-jONB8W1mKERYsccRmIETI0NeWLnTTiDd
|
|
30
30
|
bioversions/sources/expasy.py,sha256=EQXDz1LJSc0J-BE5Gy5tI-T4e6j4D5jid6c6ajzQjG8,830
|
31
31
|
bioversions/sources/flybase.py,sha256=5S0gI8tULx3sfNVy2O4grvyqIUwI4teS9S6khDh-JzQ,779
|
32
32
|
bioversions/sources/guidetopharmacology.py,sha256=B3W5I01v1a0OuvPJB-LHoSYvuJBN_cpXulnGrBs009o,1377
|
33
|
-
bioversions/sources/hgnc.py,sha256=
|
33
|
+
bioversions/sources/hgnc.py,sha256=ZAEE76LY9jQUMguwgXuXPi1CYY0rMrriSOEUN2kXLa8,1171
|
34
34
|
bioversions/sources/homologene.py,sha256=_f6SQRXe67t1jqQ6HjQIEOGApPUHLlfHMZojChumWzc,647
|
35
35
|
bioversions/sources/icd10.py,sha256=cfiJcueTr6Z1dIzdP68QeCPlnJhr3Yd3U97TZplR1JI,716
|
36
36
|
bioversions/sources/icd11.py,sha256=EsdUrPxio_VIv9tkPoauxozKY-fdjwesbb5Kh_bijU0,736
|
@@ -38,7 +38,7 @@ bioversions/sources/icf.py,sha256=iTWjjScSlKDJZRRi1cKTZyTpP4p5Illv6LoZEvo-PSw,73
|
|
38
38
|
bioversions/sources/intact.py,sha256=bRBnGm3-PHGdKlyYGkCabzQue9RG2MmF1A3CVF_U9e4,621
|
39
39
|
bioversions/sources/interpro.py,sha256=UELzp1FBKBcul09DiK3eqkHZ31kkBPT4vuDD9A_9hz0,1261
|
40
40
|
bioversions/sources/itis.py,sha256=u9h72y5JijXTprOe1SlaTW0adllj6NNoRP95AwuhzjE,831
|
41
|
-
bioversions/sources/kegg.py,sha256=
|
41
|
+
bioversions/sources/kegg.py,sha256=FL02ZlR1iea85BkRP2x8h13muXaASXU2jqZ8_DDTN8c,870
|
42
42
|
bioversions/sources/mesh.py,sha256=U3brzrzPjhzgSWxG2MILP-bqIgZpr62ns_izFnZzqe0,807
|
43
43
|
bioversions/sources/mgi.py,sha256=68xCDcnWUckM_GDGW24MjtWwFf0vZHkS0H3NWKwUdr0,866
|
44
44
|
bioversions/sources/mirbase.py,sha256=5_D4EeB-K64eQ897xOSzoZQYFOiXNqtAugcexzR9oBg,905
|
@@ -69,9 +69,9 @@ bioversions/sources/uniprot.py,sha256=_rootal_mrESkiXJh3udfr1UGrlzP7CQQIMsa35tyc
|
|
69
69
|
bioversions/sources/unversioned.py,sha256=noHxGmy9cpVv5xegMHouBF6oCbW6CP1jpOeCVdE7Eak,78
|
70
70
|
bioversions/sources/wikipathways.py,sha256=HTva8vsXRQWU6bia83Et4vveo-QhzJS6dDWeu9Syc6c,823
|
71
71
|
bioversions/sources/zfin.py,sha256=D7csziZ3UsW8dncm6XKA0t3x6XB4cFbG9PTYcT-g2bg,708
|
72
|
-
bioversions-0.5.
|
73
|
-
bioversions-0.5.
|
74
|
-
bioversions-0.5.
|
75
|
-
bioversions-0.5.
|
76
|
-
bioversions-0.5.
|
77
|
-
bioversions-0.5.
|
72
|
+
bioversions-0.5.533.dist-info/LICENSE,sha256=GzLA83qaovFgoZWRYwaAmY-lkHZyDySJHU-YKE9NdVs,1076
|
73
|
+
bioversions-0.5.533.dist-info/METADATA,sha256=aMCmDvIlwy6tyoq1zwJC6aAQm7jyKcpiH-3CLLMYPxk,9434
|
74
|
+
bioversions-0.5.533.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
75
|
+
bioversions-0.5.533.dist-info/entry_points.txt,sha256=A3qrS-nvKNZPZWQbYlmsmiDTge524C4yR-arRJwdHls,53
|
76
|
+
bioversions-0.5.533.dist-info/top_level.txt,sha256=0QO2OEUMchj5GSlWEFi0cvUpsm4b_uwuuvr6uSEmfY0,12
|
77
|
+
bioversions-0.5.533.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|