equilibrator-cache 0.6.2__tar.gz → 0.7.0__tar.gz

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.
Files changed (26) hide show
  1. {equilibrator_cache-0.6.2/src/equilibrator_cache.egg-info → equilibrator_cache-0.7.0}/PKG-INFO +7 -9
  2. {equilibrator_cache-0.6.2 → equilibrator_cache-0.7.0}/pyproject.toml +11 -9
  3. {equilibrator_cache-0.6.2 → equilibrator_cache-0.7.0}/src/equilibrator_cache/__init__.py +11 -12
  4. {equilibrator_cache-0.6.2 → equilibrator_cache-0.7.0}/src/equilibrator_cache/api.py +0 -1
  5. {equilibrator_cache-0.6.2 → equilibrator_cache-0.7.0}/src/equilibrator_cache/compatibility.py +0 -1
  6. {equilibrator_cache-0.6.2 → equilibrator_cache-0.7.0}/src/equilibrator_cache/compound_cache.py +9 -1
  7. {equilibrator_cache-0.6.2 → equilibrator_cache-0.7.0}/src/equilibrator_cache/models/__init__.py +2 -4
  8. {equilibrator_cache-0.6.2 → equilibrator_cache-0.7.0}/src/equilibrator_cache/models/compound_identifier.py +0 -1
  9. {equilibrator_cache-0.6.2 → equilibrator_cache-0.7.0}/src/equilibrator_cache/models/registry.py +0 -1
  10. {equilibrator_cache-0.6.2 → equilibrator_cache-0.7.0}/src/equilibrator_cache/reaction.py +0 -1
  11. {equilibrator_cache-0.6.2 → equilibrator_cache-0.7.0}/src/equilibrator_cache/thermodynamic_constants.py +0 -1
  12. {equilibrator_cache-0.6.2 → equilibrator_cache-0.7.0}/src/equilibrator_cache/zenodo.py +0 -1
  13. {equilibrator_cache-0.6.2 → equilibrator_cache-0.7.0/src/equilibrator_cache.egg-info}/PKG-INFO +7 -9
  14. {equilibrator_cache-0.6.2 → equilibrator_cache-0.7.0}/src/equilibrator_cache.egg-info/requires.txt +3 -3
  15. {equilibrator_cache-0.6.2 → equilibrator_cache-0.7.0}/LICENSE +0 -0
  16. {equilibrator_cache-0.6.2 → equilibrator_cache-0.7.0}/MANIFEST.in +0 -0
  17. {equilibrator_cache-0.6.2 → equilibrator_cache-0.7.0}/README.md +0 -0
  18. {equilibrator_cache-0.6.2 → equilibrator_cache-0.7.0}/setup.cfg +0 -0
  19. {equilibrator_cache-0.6.2 → equilibrator_cache-0.7.0}/src/equilibrator_cache/exceptions.py +0 -0
  20. {equilibrator_cache-0.6.2 → equilibrator_cache-0.7.0}/src/equilibrator_cache/models/compound.py +0 -0
  21. {equilibrator_cache-0.6.2 → equilibrator_cache-0.7.0}/src/equilibrator_cache/models/compound_microspecies.py +0 -0
  22. {equilibrator_cache-0.6.2 → equilibrator_cache-0.7.0}/src/equilibrator_cache/models/magnesium_dissociation_constant.py +0 -0
  23. {equilibrator_cache-0.6.2 → equilibrator_cache-0.7.0}/src/equilibrator_cache/models/mixins.py +0 -0
  24. {equilibrator_cache-0.6.2 → equilibrator_cache-0.7.0}/src/equilibrator_cache.egg-info/SOURCES.txt +0 -0
  25. {equilibrator_cache-0.6.2 → equilibrator_cache-0.7.0}/src/equilibrator_cache.egg-info/dependency_links.txt +0 -0
  26. {equilibrator_cache-0.6.2 → equilibrator_cache-0.7.0}/src/equilibrator_cache.egg-info/top_level.txt +0 -0
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: equilibrator-cache
3
- Version: 0.6.2
3
+ Version: 0.7.0
4
4
  Summary: Cache application for compounds, reactions, and enzymes
5
5
  Author: Elad Noor, Moritz E. Beber
6
- License: MIT License
6
+ License-Expression: MIT
7
7
  Project-URL: repository, https://gitlab.com/equilibrator/equilibrator-cache/
8
8
  Project-URL: documentation, https://equilibrator.readthedocs.io/en/latest/
9
9
  Keywords: component contribution,Gibbs energy,biochemical reaction,eQuilibrator,cache
@@ -11,23 +11,21 @@ Classifier: Development Status :: 4 - Beta
11
11
  Classifier: Intended Audience :: Science/Research
12
12
  Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
13
13
  Classifier: Topic :: Scientific/Engineering :: Chemistry
14
- Classifier: License :: OSI Approved :: MIT License
15
14
  Classifier: Natural Language :: English
16
15
  Classifier: Operating System :: OS Independent
17
16
  Classifier: Programming Language :: Python :: 3 :: Only
18
- Classifier: Programming Language :: Python :: 3.9
19
- Classifier: Programming Language :: Python :: 3.10
20
17
  Classifier: Programming Language :: Python :: 3.11
21
18
  Classifier: Programming Language :: Python :: 3.12
22
19
  Classifier: Programming Language :: Python :: 3.13
23
- Requires-Python: >=3.9
20
+ Classifier: Programming Language :: Python :: 3.14
21
+ Requires-Python: >=3.11
24
22
  Description-Content-Type: text/markdown
25
23
  License-File: LICENSE
26
- Requires-Dist: sqlalchemy~=2.0
27
24
  Requires-Dist: numpy>=2.0
28
25
  Requires-Dist: scipy>=1.12
29
- Requires-Dist: pandas>=2.0
30
- Requires-Dist: pyarrow>=21.0
26
+ Requires-Dist: pandas>=2.3
27
+ Requires-Dist: pyarrow>=23.0
28
+ Requires-Dist: sqlalchemy~=2.0
31
29
  Requires-Dist: Levenshtein~=0.27
32
30
  Requires-Dist: pint~=0.24
33
31
  Requires-Dist: tqdm~=4.0
@@ -2,7 +2,7 @@
2
2
  name = "equilibrator-cache"
3
3
  description = "Cache application for compounds, reactions, and enzymes"
4
4
  readme = {file = "README.md", content-type = "text/markdown"}
5
- license = {text = "MIT License"}
5
+ license = "MIT"
6
6
  authors = [{name = "Elad Noor"},{name = "Moritz E. Beber"}]
7
7
  keywords = [
8
8
  "component contribution",
@@ -16,24 +16,22 @@ classifiers = [
16
16
  "Intended Audience :: Science/Research",
17
17
  "Topic :: Scientific/Engineering :: Bio-Informatics",
18
18
  "Topic :: Scientific/Engineering :: Chemistry",
19
- "License :: OSI Approved :: MIT License",
20
19
  "Natural Language :: English",
21
20
  "Operating System :: OS Independent",
22
21
  "Programming Language :: Python :: 3 :: Only",
23
- "Programming Language :: Python :: 3.9",
24
- "Programming Language :: Python :: 3.10",
25
22
  "Programming Language :: Python :: 3.11",
26
23
  "Programming Language :: Python :: 3.12",
27
24
  "Programming Language :: Python :: 3.13",
25
+ "Programming Language :: Python :: 3.14",
28
26
  ]
29
27
  dynamic = ["version"]
30
- requires-python = ">=3.9"
28
+ requires-python = ">=3.11"
31
29
  dependencies = [
32
- "sqlalchemy ~=2.0",
33
30
  "numpy >=2.0",
34
31
  "scipy >=1.12",
35
- "pandas >=2.0",
36
- "pyarrow >=21.0",
32
+ "pandas >=2.3",
33
+ "pyarrow >=23.0",
34
+ "sqlalchemy ~=2.0",
37
35
  "Levenshtein ~=0.27",
38
36
  "pint ~=0.24",
39
37
  "tqdm ~=4.0",
@@ -78,7 +76,11 @@ universal = true
78
76
  [tool.setuptools-git-versioning]
79
77
  enabled = true
80
78
 
79
+ [tool.isort]
80
+ profile = "black"
81
+
81
82
  [tool.black]
83
+ target-version = ["py314"]
82
84
  exclude = '''
83
85
  (
84
86
  __init__.py
@@ -86,7 +88,7 @@ exclude = '''
86
88
  '''
87
89
 
88
90
  [tool.ruff]
89
- target-version = "py312"
91
+ target-version = "py314"
90
92
 
91
93
  [tool.ruff.lint]
92
94
  ignore = ["F401"]
@@ -29,27 +29,26 @@ PROTON_INCHI_KEY = "GPRLSGONYQIRFK-UHFFFAOYSA-N"
29
29
  WATER_INCHI_KEY = "XLYOFNOQVPJJNP-UHFFFAOYSA-N"
30
30
 
31
31
 
32
+ from .api import (
33
+ create_compound_cache_from_sqlite_file,
34
+ create_compound_cache_from_zenodo,
35
+ )
36
+ from .compound_cache import CompoundCache
32
37
  from .exceptions import ParseException
33
38
  from .models import (
39
+ Base,
34
40
  Compound,
35
41
  CompoundIdentifier,
36
42
  CompoundMicrospecies,
37
- Base,
38
- Registry,
39
43
  MagnesiumDissociationConstant,
44
+ Registry,
40
45
  )
46
+ from .reaction import Reaction
41
47
  from .thermodynamic_constants import (
42
- ureg,
48
+ FARADAY,
43
49
  Q_,
44
50
  R,
45
51
  default_T,
46
- FARADAY,
47
- )
48
- from .compound_cache import CompoundCache
49
- from .reaction import Reaction
50
- from .zenodo import get_cached_filepath, ZenodoSettings
51
- from .api import (
52
- create_compound_cache_from_zenodo,
53
- create_compound_cache_from_sqlite_file,
52
+ ureg,
54
53
  )
55
-
54
+ from .zenodo import ZenodoSettings, get_cached_filepath
@@ -33,7 +33,6 @@ from sqlalchemy import create_engine
33
33
  from .compound_cache import CompoundCache
34
34
  from .zenodo import DEFAULT_COMPOUND_CACHE_SETTINGS, ZenodoSettings, get_cached_filepath
35
35
 
36
-
37
36
  logger = logging.getLogger(__name__)
38
37
 
39
38
 
@@ -34,7 +34,6 @@ from tqdm import tqdm
34
34
  from .compound_cache import CompoundCache
35
35
  from .models import Compound
36
36
 
37
-
38
37
  __all__ = ("map_cobra_metabolites",)
39
38
 
40
39
 
@@ -40,7 +40,6 @@ from sqlalchemy.orm.session import make_transient
40
40
  from . import PROTON_INCHI_KEY, WATER_INCHI_KEY
41
41
  from .models import Compound, CompoundIdentifier, CompoundMicrospecies, Registry
42
42
 
43
-
44
43
  __all__ = ("CompoundCache",)
45
44
 
46
45
 
@@ -83,6 +82,15 @@ class CompoundCache:
83
82
  )
84
83
  self._synonyms["accession"] = self._synonyms["accession"].str.lower()
85
84
 
85
+ def close(self):
86
+ """Close the database connection."""
87
+ self.session.close()
88
+ self.engine.dispose()
89
+
90
+ def __del__(self):
91
+ """Close the database connection."""
92
+ self.close()
93
+
86
94
  @property
87
95
  def proton(self) -> Compound:
88
96
  """Return the H+ compound object."""
@@ -25,16 +25,14 @@
25
25
 
26
26
  from sqlalchemy.orm import declarative_base
27
27
 
28
-
29
28
  Base = declarative_base()
30
29
 
31
- from .mixins import TimeStampMixin
32
- from .registry import Registry
33
30
  from .compound import Compound
34
31
  from .compound_identifier import CompoundIdentifier
35
32
  from .compound_microspecies import CompoundMicrospecies
36
33
  from .magnesium_dissociation_constant import MagnesiumDissociationConstant
37
-
34
+ from .mixins import TimeStampMixin
35
+ from .registry import Registry
38
36
 
39
37
  __all__ = (
40
38
  "Base",
@@ -35,7 +35,6 @@ from .compound import Compound
35
35
  from .mixins import TimeStampMixin
36
36
  from .registry import Registry
37
37
 
38
-
39
38
  logger = logging.getLogger(__name__)
40
39
 
41
40
 
@@ -35,7 +35,6 @@ from sqlalchemy.orm import reconstructor, validates
35
35
  from . import Base
36
36
  from .mixins import TimeStampMixin
37
37
 
38
-
39
38
  logger = logging.getLogger(__name__)
40
39
 
41
40
 
@@ -39,7 +39,6 @@ from .exceptions import MissingDissociationConstantsException, ParseException
39
39
  from .models import Compound
40
40
  from .thermodynamic_constants import Q_, default_pMg, ureg
41
41
 
42
-
43
42
  __all__ = ("POSSIBLE_REACTION_ARROWS", "Reaction")
44
43
 
45
44
 
@@ -30,7 +30,6 @@ import warnings # Silence NEP 18 warning
30
30
  import numpy as np
31
31
  import pint
32
32
 
33
-
34
33
  # Disable Pint's old fallback behavior (must come before importing Pint)
35
34
  os.environ["PINT_ARRAY_PROTOCOL_FALLBACK"] = "0"
36
35
 
@@ -34,7 +34,6 @@ from typing import NamedTuple
34
34
  import appdirs
35
35
  import pooch
36
36
 
37
-
38
37
  logger = logging.getLogger(__name__)
39
38
 
40
39
 
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: equilibrator-cache
3
- Version: 0.6.2
3
+ Version: 0.7.0
4
4
  Summary: Cache application for compounds, reactions, and enzymes
5
5
  Author: Elad Noor, Moritz E. Beber
6
- License: MIT License
6
+ License-Expression: MIT
7
7
  Project-URL: repository, https://gitlab.com/equilibrator/equilibrator-cache/
8
8
  Project-URL: documentation, https://equilibrator.readthedocs.io/en/latest/
9
9
  Keywords: component contribution,Gibbs energy,biochemical reaction,eQuilibrator,cache
@@ -11,23 +11,21 @@ Classifier: Development Status :: 4 - Beta
11
11
  Classifier: Intended Audience :: Science/Research
12
12
  Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
13
13
  Classifier: Topic :: Scientific/Engineering :: Chemistry
14
- Classifier: License :: OSI Approved :: MIT License
15
14
  Classifier: Natural Language :: English
16
15
  Classifier: Operating System :: OS Independent
17
16
  Classifier: Programming Language :: Python :: 3 :: Only
18
- Classifier: Programming Language :: Python :: 3.9
19
- Classifier: Programming Language :: Python :: 3.10
20
17
  Classifier: Programming Language :: Python :: 3.11
21
18
  Classifier: Programming Language :: Python :: 3.12
22
19
  Classifier: Programming Language :: Python :: 3.13
23
- Requires-Python: >=3.9
20
+ Classifier: Programming Language :: Python :: 3.14
21
+ Requires-Python: >=3.11
24
22
  Description-Content-Type: text/markdown
25
23
  License-File: LICENSE
26
- Requires-Dist: sqlalchemy~=2.0
27
24
  Requires-Dist: numpy>=2.0
28
25
  Requires-Dist: scipy>=1.12
29
- Requires-Dist: pandas>=2.0
30
- Requires-Dist: pyarrow>=21.0
26
+ Requires-Dist: pandas>=2.3
27
+ Requires-Dist: pyarrow>=23.0
28
+ Requires-Dist: sqlalchemy~=2.0
31
29
  Requires-Dist: Levenshtein~=0.27
32
30
  Requires-Dist: pint~=0.24
33
31
  Requires-Dist: tqdm~=4.0
@@ -1,8 +1,8 @@
1
- sqlalchemy~=2.0
2
1
  numpy>=2.0
3
2
  scipy>=1.12
4
- pandas>=2.0
5
- pyarrow>=21.0
3
+ pandas>=2.3
4
+ pyarrow>=23.0
5
+ sqlalchemy~=2.0
6
6
  Levenshtein~=0.27
7
7
  pint~=0.24
8
8
  tqdm~=4.0