mooch.settings 0.0.1.dev1__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.
- mooch_settings-0.0.1.dev1/.gitignore +11 -0
- mooch_settings-0.0.1.dev1/LICENSE +21 -0
- mooch_settings-0.0.1.dev1/PKG-INFO +93 -0
- mooch_settings-0.0.1.dev1/README.md +76 -0
- mooch_settings-0.0.1.dev1/pyproject.toml +82 -0
- mooch_settings-0.0.1.dev1/settings.toml +4 -0
- mooch_settings-0.0.1.dev1/setup.cfg +4 -0
- mooch_settings-0.0.1.dev1/src/mooch/__init__.py +5 -0
- mooch_settings-0.0.1.dev1/src/mooch/settings/__init__.py +4 -0
- mooch_settings-0.0.1.dev1/src/mooch/settings/file.py +41 -0
- mooch_settings-0.0.1.dev1/src/mooch/settings/settings.py +76 -0
- mooch_settings-0.0.1.dev1/src/mooch/settings/utils.py +24 -0
- mooch_settings-0.0.1.dev1/src/mooch.settings.egg-info/PKG-INFO +93 -0
- mooch_settings-0.0.1.dev1/src/mooch.settings.egg-info/SOURCES.txt +19 -0
- mooch_settings-0.0.1.dev1/src/mooch.settings.egg-info/dependency_links.txt +1 -0
- mooch_settings-0.0.1.dev1/src/mooch.settings.egg-info/requires.txt +1 -0
- mooch_settings-0.0.1.dev1/src/mooch.settings.egg-info/top_level.txt +1 -0
- mooch_settings-0.0.1.dev1/tests/test_file.py +68 -0
- mooch_settings-0.0.1.dev1/tests/test_settings.py +248 -0
- mooch_settings-0.0.1.dev1/tests/test_utils.py +57 -0
- mooch_settings-0.0.1.dev1/uv.lock +221 -0
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2025 Nick Stuer
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
@@ -0,0 +1,93 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: mooch.settings
|
3
|
+
Version: 0.0.1.dev1
|
4
|
+
Summary: Python settings management package (mooch.settings). Uses a TOML file.
|
5
|
+
Author-email: Nick Stuer <nickstuer@duck.com>
|
6
|
+
Project-URL: Homepage, https://github.com/nickstuer/mooch.settings
|
7
|
+
Project-URL: Issues, https://github.com/nickstuer/mooch.settings/issues
|
8
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
11
|
+
Classifier: Operating System :: OS Independent
|
12
|
+
Requires-Python: >=3.9
|
13
|
+
Description-Content-Type: text/markdown
|
14
|
+
License-File: LICENSE
|
15
|
+
Requires-Dist: toml>=0.10.2
|
16
|
+
Dynamic: license-file
|
17
|
+
|
18
|
+
# Python mooch.settings
|
19
|
+
|
20
|
+

|
21
|
+

|
22
|
+
<img alt="GitHub Issues or Pull Requests" src="https://img.shields.io/github/issues/nickstuer/mooch.settings">
|
23
|
+
|
24
|
+
[](https://github.com/RichardLitt/standard-readme)
|
25
|
+
[](LICENSE)
|
26
|
+
|
27
|
+
This Python package is a collection of useful Python code that is commonly used on all types of Python projects.
|
28
|
+
|
29
|
+
## Table of Contents
|
30
|
+
|
31
|
+
- [Features](https://github.com/nickstuer/mooch.settings?tab=readme-ov-file#-features)
|
32
|
+
- [Install](https://github.com/nickstuer/mooch.settings?tab=readme-ov-file#-install)
|
33
|
+
- [Usage](https://github.com/nickstuer/mooch.settings?tab=readme-ov-file#-usage)
|
34
|
+
- [Contributing](https://github.com/nickstuer/mooch.settings?tab=readme-ov-file#-contributing)
|
35
|
+
- [License](https://github.com/nickstuer/mooch.settings?tab=readme-ov-file#-license)
|
36
|
+
|
37
|
+
## 📖 Features
|
38
|
+
|
39
|
+
|
40
|
+
### Settings File
|
41
|
+
Uses a TOML settings file. Easily get/set settingsuration values. Automatically sets values to defaults if they're not currently saved in the settingsuration file.
|
42
|
+
|
43
|
+
|
44
|
+
## 🛠 Install
|
45
|
+
|
46
|
+
```
|
47
|
+
# PyPI
|
48
|
+
pip install mooch.settings
|
49
|
+
```
|
50
|
+
or
|
51
|
+
```
|
52
|
+
uv add mooch.settings
|
53
|
+
```
|
54
|
+
|
55
|
+
## 📌 Dependencies
|
56
|
+
Python 3.9 or greater
|
57
|
+
|
58
|
+
## 🎮 Usage
|
59
|
+
|
60
|
+
### settings File
|
61
|
+
```python
|
62
|
+
from mooch.settings import Settings
|
63
|
+
default_settings = {
|
64
|
+
"settings": {
|
65
|
+
"name": "MyName,
|
66
|
+
"mood": "happy",
|
67
|
+
},
|
68
|
+
}
|
69
|
+
|
70
|
+
settings = Settings("settings.toml", default_settings)
|
71
|
+
|
72
|
+
print(settings["settings.mood"])
|
73
|
+
settings["settings.mood"] = "angry"
|
74
|
+
print(settings["settings.mood"])
|
75
|
+
```
|
76
|
+
## 🏆 Contributing
|
77
|
+
|
78
|
+
PRs accepted.
|
79
|
+
|
80
|
+
If editing the Readme, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.
|
81
|
+
|
82
|
+
#### Bug Reports and Feature Requests
|
83
|
+
Please use the [issue tracker](https://github.com/nickstuer/mooch.settings/issues) to report any bugs or request new features.
|
84
|
+
|
85
|
+
#### Contributors
|
86
|
+
|
87
|
+
<a href = "https://github.com/nickstuer/mooch.settings/graphs/contributors">
|
88
|
+
<img src = "https://contrib.rocks/image?repo=nickstuer/mooch.settings"/>
|
89
|
+
</a>
|
90
|
+
|
91
|
+
## 📃 License
|
92
|
+
|
93
|
+
[MIT © Nick Stuer](LICENSE)
|
@@ -0,0 +1,76 @@
|
|
1
|
+
# Python mooch.settings
|
2
|
+
|
3
|
+

|
4
|
+

|
5
|
+
<img alt="GitHub Issues or Pull Requests" src="https://img.shields.io/github/issues/nickstuer/mooch.settings">
|
6
|
+
|
7
|
+
[](https://github.com/RichardLitt/standard-readme)
|
8
|
+
[](LICENSE)
|
9
|
+
|
10
|
+
This Python package is a collection of useful Python code that is commonly used on all types of Python projects.
|
11
|
+
|
12
|
+
## Table of Contents
|
13
|
+
|
14
|
+
- [Features](https://github.com/nickstuer/mooch.settings?tab=readme-ov-file#-features)
|
15
|
+
- [Install](https://github.com/nickstuer/mooch.settings?tab=readme-ov-file#-install)
|
16
|
+
- [Usage](https://github.com/nickstuer/mooch.settings?tab=readme-ov-file#-usage)
|
17
|
+
- [Contributing](https://github.com/nickstuer/mooch.settings?tab=readme-ov-file#-contributing)
|
18
|
+
- [License](https://github.com/nickstuer/mooch.settings?tab=readme-ov-file#-license)
|
19
|
+
|
20
|
+
## 📖 Features
|
21
|
+
|
22
|
+
|
23
|
+
### Settings File
|
24
|
+
Uses a TOML settings file. Easily get/set settingsuration values. Automatically sets values to defaults if they're not currently saved in the settingsuration file.
|
25
|
+
|
26
|
+
|
27
|
+
## 🛠 Install
|
28
|
+
|
29
|
+
```
|
30
|
+
# PyPI
|
31
|
+
pip install mooch.settings
|
32
|
+
```
|
33
|
+
or
|
34
|
+
```
|
35
|
+
uv add mooch.settings
|
36
|
+
```
|
37
|
+
|
38
|
+
## 📌 Dependencies
|
39
|
+
Python 3.9 or greater
|
40
|
+
|
41
|
+
## 🎮 Usage
|
42
|
+
|
43
|
+
### settings File
|
44
|
+
```python
|
45
|
+
from mooch.settings import Settings
|
46
|
+
default_settings = {
|
47
|
+
"settings": {
|
48
|
+
"name": "MyName,
|
49
|
+
"mood": "happy",
|
50
|
+
},
|
51
|
+
}
|
52
|
+
|
53
|
+
settings = Settings("settings.toml", default_settings)
|
54
|
+
|
55
|
+
print(settings["settings.mood"])
|
56
|
+
settings["settings.mood"] = "angry"
|
57
|
+
print(settings["settings.mood"])
|
58
|
+
```
|
59
|
+
## 🏆 Contributing
|
60
|
+
|
61
|
+
PRs accepted.
|
62
|
+
|
63
|
+
If editing the Readme, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.
|
64
|
+
|
65
|
+
#### Bug Reports and Feature Requests
|
66
|
+
Please use the [issue tracker](https://github.com/nickstuer/mooch.settings/issues) to report any bugs or request new features.
|
67
|
+
|
68
|
+
#### Contributors
|
69
|
+
|
70
|
+
<a href = "https://github.com/nickstuer/mooch.settings/graphs/contributors">
|
71
|
+
<img src = "https://contrib.rocks/image?repo=nickstuer/mooch.settings"/>
|
72
|
+
</a>
|
73
|
+
|
74
|
+
## 📃 License
|
75
|
+
|
76
|
+
[MIT © Nick Stuer](LICENSE)
|
@@ -0,0 +1,82 @@
|
|
1
|
+
[project]
|
2
|
+
name = "mooch.settings"
|
3
|
+
version = "0.0.1dev1"
|
4
|
+
authors = [
|
5
|
+
{ name="Nick Stuer", email="nickstuer@duck.com" },
|
6
|
+
]
|
7
|
+
description = "Python settings management package (mooch.settings). Uses a TOML file."
|
8
|
+
readme = "README.md"
|
9
|
+
requires-python = ">=3.9"
|
10
|
+
dependencies = [
|
11
|
+
"toml>=0.10.2",
|
12
|
+
]
|
13
|
+
classifiers = [
|
14
|
+
"Development Status :: 2 - Pre-Alpha",
|
15
|
+
"Programming Language :: Python :: 3",
|
16
|
+
"License :: OSI Approved :: MIT License",
|
17
|
+
"Operating System :: OS Independent",
|
18
|
+
]
|
19
|
+
|
20
|
+
[project.urls]
|
21
|
+
Homepage = "https://github.com/nickstuer/mooch.settings"
|
22
|
+
Issues = "https://github.com/nickstuer/mooch.settings/issues"
|
23
|
+
|
24
|
+
[tool.pytest.ini_options]
|
25
|
+
pythonpath = [
|
26
|
+
"src/"
|
27
|
+
]
|
28
|
+
testpaths = [
|
29
|
+
"tests/",
|
30
|
+
]
|
31
|
+
|
32
|
+
[tool.ruff]
|
33
|
+
line-length = 120
|
34
|
+
show-fixes = true
|
35
|
+
select = [
|
36
|
+
"ALL", # include all the rules, including new ones
|
37
|
+
]
|
38
|
+
ignore = [
|
39
|
+
"D100",
|
40
|
+
"D101",
|
41
|
+
"D102",
|
42
|
+
"D103",
|
43
|
+
"D107",
|
44
|
+
"G004",
|
45
|
+
"ANN204",
|
46
|
+
"INP001"
|
47
|
+
]
|
48
|
+
|
49
|
+
[tool.ruff.format]
|
50
|
+
quote-style = "double"
|
51
|
+
indent-style = "space"
|
52
|
+
line-ending = "auto"
|
53
|
+
|
54
|
+
[tool.ruff.per-file-ignores]
|
55
|
+
"tests/*.py" = ["S101", "D103", "PLR2004", "ANN201", "ANN202"]
|
56
|
+
|
57
|
+
[dependency-groups]
|
58
|
+
dev = [
|
59
|
+
"pytest>=8.4.0",
|
60
|
+
"pytest-asyncio>=1.0.0",
|
61
|
+
"pytest-cov>=6.2.1",
|
62
|
+
]
|
63
|
+
|
64
|
+
[tool.coverage.report]
|
65
|
+
exclude_lines = [
|
66
|
+
"pragma: not covered",
|
67
|
+
"@overload",
|
68
|
+
"if TYPE_CHECKING:",
|
69
|
+
"def __del__",
|
70
|
+
]
|
71
|
+
|
72
|
+
[tool.coverage.run]
|
73
|
+
branch = true
|
74
|
+
relative_files = true
|
75
|
+
omit = [
|
76
|
+
".tox/*",
|
77
|
+
"tests/*",
|
78
|
+
]
|
79
|
+
|
80
|
+
[build-system]
|
81
|
+
requires = ["setuptools>=64", "setuptools-scm>=8"]
|
82
|
+
build-backend = "setuptools.build_meta"
|
@@ -0,0 +1,41 @@
|
|
1
|
+
from __future__ import annotations
|
2
|
+
|
3
|
+
from datetime import datetime, timezone
|
4
|
+
from pathlib import Path
|
5
|
+
from typing import Any
|
6
|
+
|
7
|
+
import toml
|
8
|
+
|
9
|
+
from mooch.settings.utils import set_nested
|
10
|
+
|
11
|
+
NOTICE_KEY = "metadata.notice"
|
12
|
+
NOTICE = "This file was created by mooch.settings."
|
13
|
+
CREATED_KEY = "metadata.created"
|
14
|
+
UPDATED_KEY = "metadata.updated"
|
15
|
+
|
16
|
+
|
17
|
+
class File:
|
18
|
+
def __init__(self, settings_filepath: Path) -> None:
|
19
|
+
self._filepath = settings_filepath
|
20
|
+
self.create_file_if_not_exists()
|
21
|
+
|
22
|
+
def create_file_if_not_exists(self) -> None:
|
23
|
+
"""Create the settings file if it does not exist."""
|
24
|
+
if not self._filepath.exists():
|
25
|
+
data = {}
|
26
|
+
set_nested(data, NOTICE_KEY, NOTICE)
|
27
|
+
set_nested(data, CREATED_KEY, datetime.now(tz=timezone.utc).isoformat())
|
28
|
+
set_nested(data, UPDATED_KEY, datetime.now(tz=timezone.utc).isoformat())
|
29
|
+
|
30
|
+
self.save(data)
|
31
|
+
|
32
|
+
def load(self) -> dict[str, Any]:
|
33
|
+
"""Load the settings from the file."""
|
34
|
+
with Path.open(self._filepath, mode="r", encoding="utf-8") as f:
|
35
|
+
return toml.load(f)
|
36
|
+
|
37
|
+
def save(self, data: dict) -> None:
|
38
|
+
"""Save the settings to the file and update the updated timestamp."""
|
39
|
+
set_nested(data, UPDATED_KEY, datetime.now(tz=timezone.utc).isoformat())
|
40
|
+
with Path.open(self._filepath, mode="w", encoding="utf-8") as f:
|
41
|
+
toml.dump(data, f)
|
@@ -0,0 +1,76 @@
|
|
1
|
+
from __future__ import annotations
|
2
|
+
|
3
|
+
from pathlib import Path
|
4
|
+
from typing import Any
|
5
|
+
|
6
|
+
from mooch.settings.file import File
|
7
|
+
from mooch.settings.utils import get_nested, set_nested
|
8
|
+
|
9
|
+
|
10
|
+
class Settings:
|
11
|
+
def __init__(
|
12
|
+
self,
|
13
|
+
settings_filepath: Path,
|
14
|
+
default_settings: dict | None = None,
|
15
|
+
) -> None:
|
16
|
+
self._file = File(settings_filepath)
|
17
|
+
self.dynamic_reload = True
|
18
|
+
|
19
|
+
self._data = self._file.load()
|
20
|
+
|
21
|
+
if default_settings:
|
22
|
+
self._set_defaults(default_settings)
|
23
|
+
self._file.save(self._data)
|
24
|
+
|
25
|
+
@staticmethod
|
26
|
+
def home_directory() -> Path:
|
27
|
+
"""Return the path to the home directory.
|
28
|
+
|
29
|
+
Returns: Path
|
30
|
+
"""
|
31
|
+
return Path.home()
|
32
|
+
|
33
|
+
def get(self, key: str) -> Any | None: # noqa: ANN401
|
34
|
+
"""Return a value from the configuration by key.
|
35
|
+
|
36
|
+
Args:
|
37
|
+
key (str): The key to return a value from.
|
38
|
+
|
39
|
+
Returns:
|
40
|
+
Any | None: The value associated with the key, or None if the key does not exist.
|
41
|
+
|
42
|
+
"""
|
43
|
+
if self.dynamic_reload:
|
44
|
+
self._data = self._file.load()
|
45
|
+
return get_nested(self._data, key)
|
46
|
+
|
47
|
+
def set(self, key: str, value: Any) -> None: # noqa: ANN401
|
48
|
+
"""Set a value in the configuration by key.
|
49
|
+
|
50
|
+
Args:
|
51
|
+
key (str): The key to store the value under.
|
52
|
+
value (Any): The value to set for the key.
|
53
|
+
|
54
|
+
Returns:
|
55
|
+
None
|
56
|
+
|
57
|
+
"""
|
58
|
+
set_nested(self._data, key, value)
|
59
|
+
self._file.save(self._data)
|
60
|
+
|
61
|
+
def __getitem__(self, key: str) -> Any | None: # noqa: ANN401
|
62
|
+
"""Get an item from the configuration by key."""
|
63
|
+
return self.get(key)
|
64
|
+
|
65
|
+
def __setitem__(self, key: str, value: Any) -> None: # noqa: ANN401
|
66
|
+
"""Set an item in the configuration by key."""
|
67
|
+
self.set(key, value)
|
68
|
+
|
69
|
+
def _set_defaults(self, d: dict, parent_key: str = "") -> None:
|
70
|
+
for k, v in d.items():
|
71
|
+
full_key = f"{parent_key}.{k}" if parent_key else k
|
72
|
+
if self.get(full_key) is None:
|
73
|
+
self.set(full_key, v)
|
74
|
+
|
75
|
+
elif isinstance(v, dict):
|
76
|
+
self._set_defaults(v, full_key)
|
@@ -0,0 +1,24 @@
|
|
1
|
+
from __future__ import annotations
|
2
|
+
|
3
|
+
from typing import Any
|
4
|
+
|
5
|
+
|
6
|
+
def set_nested(d: dict, key: str, value: Any, sep: str = ".") -> None: # noqa: ANN401
|
7
|
+
"""Set a nested value in a dictionary by key."""
|
8
|
+
keys = key.split(sep)
|
9
|
+
for k in keys[:-1]:
|
10
|
+
if k not in d or not isinstance(d[k], dict):
|
11
|
+
d[k] = {}
|
12
|
+
d = d[k]
|
13
|
+
d[keys[-1]] = value
|
14
|
+
|
15
|
+
|
16
|
+
def get_nested(d: dict, key: str, sep: str = ".") -> Any | None: # noqa: ANN401
|
17
|
+
"""Get a nested value from a dictionary by key."""
|
18
|
+
keys = key.split(sep)
|
19
|
+
for k in keys:
|
20
|
+
if isinstance(d, dict) and k in d:
|
21
|
+
d = d[k]
|
22
|
+
else:
|
23
|
+
return None
|
24
|
+
return d
|
@@ -0,0 +1,93 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: mooch.settings
|
3
|
+
Version: 0.0.1.dev1
|
4
|
+
Summary: Python settings management package (mooch.settings). Uses a TOML file.
|
5
|
+
Author-email: Nick Stuer <nickstuer@duck.com>
|
6
|
+
Project-URL: Homepage, https://github.com/nickstuer/mooch.settings
|
7
|
+
Project-URL: Issues, https://github.com/nickstuer/mooch.settings/issues
|
8
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
11
|
+
Classifier: Operating System :: OS Independent
|
12
|
+
Requires-Python: >=3.9
|
13
|
+
Description-Content-Type: text/markdown
|
14
|
+
License-File: LICENSE
|
15
|
+
Requires-Dist: toml>=0.10.2
|
16
|
+
Dynamic: license-file
|
17
|
+
|
18
|
+
# Python mooch.settings
|
19
|
+
|
20
|
+

|
21
|
+

|
22
|
+
<img alt="GitHub Issues or Pull Requests" src="https://img.shields.io/github/issues/nickstuer/mooch.settings">
|
23
|
+
|
24
|
+
[](https://github.com/RichardLitt/standard-readme)
|
25
|
+
[](LICENSE)
|
26
|
+
|
27
|
+
This Python package is a collection of useful Python code that is commonly used on all types of Python projects.
|
28
|
+
|
29
|
+
## Table of Contents
|
30
|
+
|
31
|
+
- [Features](https://github.com/nickstuer/mooch.settings?tab=readme-ov-file#-features)
|
32
|
+
- [Install](https://github.com/nickstuer/mooch.settings?tab=readme-ov-file#-install)
|
33
|
+
- [Usage](https://github.com/nickstuer/mooch.settings?tab=readme-ov-file#-usage)
|
34
|
+
- [Contributing](https://github.com/nickstuer/mooch.settings?tab=readme-ov-file#-contributing)
|
35
|
+
- [License](https://github.com/nickstuer/mooch.settings?tab=readme-ov-file#-license)
|
36
|
+
|
37
|
+
## 📖 Features
|
38
|
+
|
39
|
+
|
40
|
+
### Settings File
|
41
|
+
Uses a TOML settings file. Easily get/set settingsuration values. Automatically sets values to defaults if they're not currently saved in the settingsuration file.
|
42
|
+
|
43
|
+
|
44
|
+
## 🛠 Install
|
45
|
+
|
46
|
+
```
|
47
|
+
# PyPI
|
48
|
+
pip install mooch.settings
|
49
|
+
```
|
50
|
+
or
|
51
|
+
```
|
52
|
+
uv add mooch.settings
|
53
|
+
```
|
54
|
+
|
55
|
+
## 📌 Dependencies
|
56
|
+
Python 3.9 or greater
|
57
|
+
|
58
|
+
## 🎮 Usage
|
59
|
+
|
60
|
+
### settings File
|
61
|
+
```python
|
62
|
+
from mooch.settings import Settings
|
63
|
+
default_settings = {
|
64
|
+
"settings": {
|
65
|
+
"name": "MyName,
|
66
|
+
"mood": "happy",
|
67
|
+
},
|
68
|
+
}
|
69
|
+
|
70
|
+
settings = Settings("settings.toml", default_settings)
|
71
|
+
|
72
|
+
print(settings["settings.mood"])
|
73
|
+
settings["settings.mood"] = "angry"
|
74
|
+
print(settings["settings.mood"])
|
75
|
+
```
|
76
|
+
## 🏆 Contributing
|
77
|
+
|
78
|
+
PRs accepted.
|
79
|
+
|
80
|
+
If editing the Readme, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.
|
81
|
+
|
82
|
+
#### Bug Reports and Feature Requests
|
83
|
+
Please use the [issue tracker](https://github.com/nickstuer/mooch.settings/issues) to report any bugs or request new features.
|
84
|
+
|
85
|
+
#### Contributors
|
86
|
+
|
87
|
+
<a href = "https://github.com/nickstuer/mooch.settings/graphs/contributors">
|
88
|
+
<img src = "https://contrib.rocks/image?repo=nickstuer/mooch.settings"/>
|
89
|
+
</a>
|
90
|
+
|
91
|
+
## 📃 License
|
92
|
+
|
93
|
+
[MIT © Nick Stuer](LICENSE)
|
@@ -0,0 +1,19 @@
|
|
1
|
+
.gitignore
|
2
|
+
LICENSE
|
3
|
+
README.md
|
4
|
+
pyproject.toml
|
5
|
+
settings.toml
|
6
|
+
uv.lock
|
7
|
+
src/mooch/__init__.py
|
8
|
+
src/mooch.settings.egg-info/PKG-INFO
|
9
|
+
src/mooch.settings.egg-info/SOURCES.txt
|
10
|
+
src/mooch.settings.egg-info/dependency_links.txt
|
11
|
+
src/mooch.settings.egg-info/requires.txt
|
12
|
+
src/mooch.settings.egg-info/top_level.txt
|
13
|
+
src/mooch/settings/__init__.py
|
14
|
+
src/mooch/settings/file.py
|
15
|
+
src/mooch/settings/settings.py
|
16
|
+
src/mooch/settings/utils.py
|
17
|
+
tests/test_file.py
|
18
|
+
tests/test_settings.py
|
19
|
+
tests/test_utils.py
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
toml>=0.10.2
|
@@ -0,0 +1 @@
|
|
1
|
+
mooch
|
@@ -0,0 +1,68 @@
|
|
1
|
+
import shutil
|
2
|
+
from pathlib import Path
|
3
|
+
|
4
|
+
import pytest
|
5
|
+
import toml
|
6
|
+
|
7
|
+
from mooch.settings.file import CREATED_KEY, NOTICE, UPDATED_KEY, File
|
8
|
+
|
9
|
+
|
10
|
+
@pytest.fixture
|
11
|
+
def temp_settings_file(tmp_path):
|
12
|
+
file_path = tmp_path / "settings.toml"
|
13
|
+
yield file_path
|
14
|
+
if file_path.exists():
|
15
|
+
file_path.unlink()
|
16
|
+
shutil.rmtree(tmp_path, ignore_errors=True)
|
17
|
+
|
18
|
+
|
19
|
+
def test_create_file_if_not_exists_creates_file_with_metadata(temp_settings_file):
|
20
|
+
file = File(temp_settings_file)
|
21
|
+
assert temp_settings_file.exists()
|
22
|
+
data = toml.load(temp_settings_file)
|
23
|
+
assert data["metadata"]["notice"] == NOTICE
|
24
|
+
assert CREATED_KEY.split(".", 1)[1] in data["metadata"]
|
25
|
+
assert UPDATED_KEY.split(".", 1)[1] in data["metadata"]
|
26
|
+
|
27
|
+
|
28
|
+
def test_load_returns_correct_data(temp_settings_file):
|
29
|
+
file = File(temp_settings_file)
|
30
|
+
# Write some data
|
31
|
+
data = {"foo": {"bar": 123}}
|
32
|
+
file.save(data)
|
33
|
+
loaded = file.load()
|
34
|
+
assert loaded["foo"]["bar"] == 123
|
35
|
+
assert "metadata" in loaded
|
36
|
+
|
37
|
+
|
38
|
+
def test_save_updates_updated_timestamp(temp_settings_file):
|
39
|
+
file = File(temp_settings_file)
|
40
|
+
data = file.load()
|
41
|
+
old_updated = data["metadata"]["updated"]
|
42
|
+
# Wait a moment to ensure timestamp changes
|
43
|
+
import time
|
44
|
+
|
45
|
+
time.sleep(0.01)
|
46
|
+
file.save(data)
|
47
|
+
new_data = file.load()
|
48
|
+
assert new_data["metadata"]["updated"] != old_updated
|
49
|
+
|
50
|
+
|
51
|
+
def test_save_and_load_roundtrip(temp_settings_file):
|
52
|
+
file = File(temp_settings_file)
|
53
|
+
data = {"alpha": 1, "beta": {"gamma": 2}}
|
54
|
+
file.save(data)
|
55
|
+
loaded = file.load()
|
56
|
+
assert loaded["alpha"] == 1
|
57
|
+
assert loaded["beta"]["gamma"] == 2
|
58
|
+
assert "metadata" in loaded
|
59
|
+
|
60
|
+
|
61
|
+
def test_create_file_if_not_exists_does_not_overwrite_existing(temp_settings_file):
|
62
|
+
# Create file manually
|
63
|
+
with Path.open(temp_settings_file, "w", encoding="utf-8") as f:
|
64
|
+
f.write('[custom]\nkey="value"\n')
|
65
|
+
file = File(temp_settings_file)
|
66
|
+
data = file.load()
|
67
|
+
assert "custom" in data
|
68
|
+
assert data["custom"]["key"] == "value"
|
@@ -0,0 +1,248 @@
|
|
1
|
+
import shutil
|
2
|
+
from pathlib import Path
|
3
|
+
|
4
|
+
import pytest
|
5
|
+
|
6
|
+
from mooch.settings import Settings
|
7
|
+
|
8
|
+
default_settings = {
|
9
|
+
"settings.name": "MyName",
|
10
|
+
"settings.mood": "MyMood",
|
11
|
+
"dictionary.key1": "value1",
|
12
|
+
"dictionary.key2": "value2",
|
13
|
+
"dictionary.subdictionary.key1": "subvalue1",
|
14
|
+
"dictionary.subdictionary.key2": "subvalue2",
|
15
|
+
}
|
16
|
+
|
17
|
+
default_settings2 = {
|
18
|
+
"settings": {"name": "MyName", "mood": "MyMood", "gui": {"theme": {"ios": "dark"}}},
|
19
|
+
}
|
20
|
+
|
21
|
+
|
22
|
+
@pytest.fixture
|
23
|
+
def settings_filepath(tmpdir_factory: pytest.TempdirFactory):
|
24
|
+
temp_dir = str(tmpdir_factory.mktemp("temp"))
|
25
|
+
filepath = temp_dir + "/settings.toml"
|
26
|
+
yield Path(filepath)
|
27
|
+
# yield Path("settings.toml")
|
28
|
+
shutil.rmtree(temp_dir)
|
29
|
+
|
30
|
+
|
31
|
+
def test_settings_initializes_with_default_settings(settings_filepath: Path):
|
32
|
+
settings = Settings(settings_filepath, default_settings)
|
33
|
+
for k, v in default_settings.items():
|
34
|
+
assert settings.get(k) == v
|
35
|
+
|
36
|
+
assert settings.get("settings.name") == "MyName"
|
37
|
+
assert settings.get("settings.mood") == "MyMood"
|
38
|
+
assert settings.get("dictionary.key1") == "value1"
|
39
|
+
assert settings.get("dictionary") == {
|
40
|
+
"key1": "value1",
|
41
|
+
"key2": "value2",
|
42
|
+
"subdictionary": {"key1": "subvalue1", "key2": "subvalue2"},
|
43
|
+
}
|
44
|
+
|
45
|
+
assert settings.get("foo") is None
|
46
|
+
|
47
|
+
|
48
|
+
def test_settings_sets_default_settings_if_not_present(settings_filepath: str):
|
49
|
+
settings = Settings(settings_filepath, default_settings)
|
50
|
+
assert settings.get("foo") is None
|
51
|
+
|
52
|
+
default_settings["foo"] = "bar"
|
53
|
+
new_settings = Settings(settings_filepath, default_settings)
|
54
|
+
|
55
|
+
assert new_settings.get("foo") == "bar"
|
56
|
+
for k, v in default_settings.items():
|
57
|
+
assert new_settings.get(k) == v
|
58
|
+
|
59
|
+
|
60
|
+
def test_settings_get_and_set_methods_success(settings_filepath: str):
|
61
|
+
settings = Settings(settings_filepath, default_settings)
|
62
|
+
|
63
|
+
settings.set("string", "string_value")
|
64
|
+
settings.set("none", None)
|
65
|
+
settings.set("int", 42)
|
66
|
+
settings.set("float", 3.14)
|
67
|
+
settings.set("bool", True) # noqa: FBT003
|
68
|
+
settings.set("list", [1, 2, 3])
|
69
|
+
settings.set("dict", {"key": "value"})
|
70
|
+
settings.set("nested_dict", {"nested_key": {"sub_key": "sub_value"}})
|
71
|
+
settings.set("empty_list", [])
|
72
|
+
settings.set("nested_list", [[1, 2, 3], [4, 5, 6], ["a", "b", "c"]])
|
73
|
+
settings.set("empty_dict", {})
|
74
|
+
settings.set("complex", {"list": [1, 2, 3], "dict": {"key": "value"}})
|
75
|
+
settings.set("complex_nested", {"outer": {"inner": {"key": "value"}}})
|
76
|
+
settings.set("unicode", "こんにちは") # Japanese for "Hello"
|
77
|
+
settings.set("emoji", "😊") # Smiling face emoji
|
78
|
+
|
79
|
+
assert settings.get("string") == "string_value"
|
80
|
+
assert settings.get("none") is None
|
81
|
+
assert settings.get("int") == 42
|
82
|
+
assert settings.get("float") == 3.14
|
83
|
+
assert settings.get("bool") is True
|
84
|
+
assert settings.get("list") == [1, 2, 3]
|
85
|
+
assert settings.get("dict") == {"key": "value"}
|
86
|
+
assert settings.get("nested_dict") == {"nested_key": {"sub_key": "sub_value"}}
|
87
|
+
assert settings.get("empty_list") == []
|
88
|
+
assert settings.get("nested_list") == [[1, 2, 3], [4, 5, 6], ["a", "b", "c"]]
|
89
|
+
assert settings.get("empty_dict") == {}
|
90
|
+
assert settings.get("complex") == {"list": [1, 2, 3], "dict": {"key": "value"}}
|
91
|
+
assert settings.get("complex_nested") == {"outer": {"inner": {"key": "value"}}}
|
92
|
+
assert settings.get("unicode") == "こんにちは"
|
93
|
+
assert settings.get("emoji") == "😊"
|
94
|
+
|
95
|
+
|
96
|
+
def test_settings_overrides_existing_settings(settings_filepath: str):
|
97
|
+
settings = Settings(settings_filepath, default_settings)
|
98
|
+
|
99
|
+
# Set an initial value
|
100
|
+
settings.set("name", "InitialName")
|
101
|
+
assert settings.get("name") == "InitialName"
|
102
|
+
|
103
|
+
# Override the value
|
104
|
+
settings.set("name", "NewName")
|
105
|
+
assert settings.get("name") == "NewName"
|
106
|
+
|
107
|
+
|
108
|
+
def test_settings_handles_non_existent_keys(settings_filepath: str):
|
109
|
+
settings = Settings(settings_filepath, default_settings)
|
110
|
+
|
111
|
+
assert settings.get("non_existent_key") is None
|
112
|
+
|
113
|
+
|
114
|
+
def test_settings_handles_empty_settings_file(settings_filepath: str):
|
115
|
+
# Create an empty settings file
|
116
|
+
with Path.open(settings_filepath, "w") as f:
|
117
|
+
f.write("")
|
118
|
+
settings = Settings(settings_filepath, default_settings)
|
119
|
+
# Check that default settings are applied
|
120
|
+
for k, v in default_settings.items():
|
121
|
+
assert settings.get(k) == v
|
122
|
+
|
123
|
+
|
124
|
+
def test_settings_saves_settings_to_file(settings_filepath: str):
|
125
|
+
settings = Settings(settings_filepath, default_settings)
|
126
|
+
|
127
|
+
# Set some values
|
128
|
+
settings.set("name", "TestName")
|
129
|
+
settings.set("mood", "TestMood")
|
130
|
+
|
131
|
+
# Reload the settings to check if values are saved
|
132
|
+
new_settings = Settings(settings_filepath, default_settings)
|
133
|
+
assert new_settings.get("name") == "TestName"
|
134
|
+
assert new_settings.get("mood") == "TestMood"
|
135
|
+
|
136
|
+
|
137
|
+
def test_settings_no_default_settings(settings_filepath: str):
|
138
|
+
# Test with no default settings
|
139
|
+
settings = Settings(settings_filepath)
|
140
|
+
|
141
|
+
# Check that no settings are set initially
|
142
|
+
assert settings.get("name") is None
|
143
|
+
assert settings.get("mood") is None
|
144
|
+
|
145
|
+
# Set a value and check if it persists
|
146
|
+
settings.set("name", "NoDefaultName")
|
147
|
+
assert settings.get("name") == "NoDefaultName"
|
148
|
+
|
149
|
+
# Reload the settings to check if the value is saved
|
150
|
+
new_settings = Settings(settings_filepath)
|
151
|
+
assert new_settings.get("name") == "NoDefaultName"
|
152
|
+
|
153
|
+
|
154
|
+
def test_settings_with_getitem_and_setitem(settings_filepath: str):
|
155
|
+
settings = Settings(settings_filepath, default_settings)
|
156
|
+
|
157
|
+
# Test __getitem__
|
158
|
+
assert settings["settings.name"] == "MyName"
|
159
|
+
assert settings["settings.mood"] == "MyMood"
|
160
|
+
assert settings["dictionary.key1"] == "value1"
|
161
|
+
|
162
|
+
# Test __setitem__
|
163
|
+
settings["settings.name"] = "NewName"
|
164
|
+
assert settings["settings.name"] == "NewName"
|
165
|
+
|
166
|
+
settings["new_key"] = "new_value"
|
167
|
+
assert settings["new_key"] == "new_value"
|
168
|
+
|
169
|
+
|
170
|
+
def test_settings_updates_defaults_with_nested_dict(settings_filepath: str):
|
171
|
+
settings = Settings(settings_filepath, default_settings)
|
172
|
+
assert settings.get("dictionary.subdictionary.key3") is None
|
173
|
+
assert settings["dictionary.subdictionary.key3"] is None
|
174
|
+
|
175
|
+
default_settings["dictionary.subdictionary.key3"] = "subvalue3"
|
176
|
+
|
177
|
+
# Access a nested value
|
178
|
+
new_settings = Settings(settings_filepath, default_settings)
|
179
|
+
assert new_settings.get("dictionary.subdictionary.key3") == "subvalue3"
|
180
|
+
assert new_settings["dictionary"]["subdictionary"]["key3"] == "subvalue3"
|
181
|
+
|
182
|
+
|
183
|
+
def test_settings_initializes_defaults_with_nested_dict(settings_filepath: str):
|
184
|
+
settings = Settings(settings_filepath, default_settings2)
|
185
|
+
assert settings.get("settings.name") == "MyName"
|
186
|
+
assert settings.get("settings.mood") == "MyMood"
|
187
|
+
assert settings["settings"]["name"] == "MyName"
|
188
|
+
assert settings["settings"]["mood"] == "MyMood"
|
189
|
+
assert settings["settings"] == {"gui": {"theme": {"ios": "dark"}}, "mood": "MyMood", "name": "MyName"}
|
190
|
+
assert settings["settings"]["gui"]["theme"] == {"ios": "dark"}
|
191
|
+
assert settings["settings"]["gui"]["theme"]["ios"] == "dark"
|
192
|
+
assert settings.get("dictionary") is None
|
193
|
+
assert settings.get("dictionary.key1") is None
|
194
|
+
assert settings.get("dictionary.subdictionary") is None
|
195
|
+
assert settings.get("dictionary.subdictionary.key1") is None
|
196
|
+
assert settings.get("settings.gui.theme.ios") == "dark"
|
197
|
+
assert settings.get("settings") == {"gui": {"theme": {"ios": "dark"}}, "mood": "MyMood", "name": "MyName"}
|
198
|
+
|
199
|
+
|
200
|
+
def test_settings_sets_default_settings_of_nested_dictionaries_if_not_present(settings_filepath: str):
|
201
|
+
settings = Settings(settings_filepath, default_settings2)
|
202
|
+
assert settings.get("settings.gui.theme.ios") == "dark"
|
203
|
+
assert settings.get("settings.gui.theme.android") is None
|
204
|
+
|
205
|
+
settings.set("settings.gui.theme.ios", "light") # change from default dark to light
|
206
|
+
|
207
|
+
new_default_settings = {
|
208
|
+
"settings": {"name": "MyName", "mood": "MyMood", "gui": {"theme": {"ios": "dark", "android": "light"}}},
|
209
|
+
}
|
210
|
+
|
211
|
+
new_settings = Settings(settings_filepath, new_default_settings)
|
212
|
+
|
213
|
+
assert new_settings.get("settings.gui.theme.ios") == "light" # verify that this is not overwritten by the default
|
214
|
+
assert new_settings.get("settings.gui.theme.android") == "light"
|
215
|
+
|
216
|
+
|
217
|
+
def test_settings_home_directory():
|
218
|
+
settings = Settings(Path("settings.toml"))
|
219
|
+
home_dir = settings.home_directory()
|
220
|
+
assert home_dir.is_dir() # Check if the home directory exists
|
221
|
+
assert home_dir == Path.home() # Ensure it matches the actual home directory
|
222
|
+
|
223
|
+
|
224
|
+
def test_settings_dynamic_reload_true(settings_filepath: str):
|
225
|
+
settings = Settings(settings_filepath, default_settings)
|
226
|
+
|
227
|
+
assert settings.get("settings.name") == "MyName"
|
228
|
+
|
229
|
+
# Change the settings file seperatrely
|
230
|
+
settings2 = Settings(settings_filepath, default_settings)
|
231
|
+
settings2.set("settings.name", "NewName")
|
232
|
+
|
233
|
+
# Verify that the change is reflected in the original settings object
|
234
|
+
assert settings.get("settings.name") == "NewName"
|
235
|
+
|
236
|
+
|
237
|
+
def test_settings_dynamic_reload_false(settings_filepath: str):
|
238
|
+
settings = Settings(settings_filepath, default_settings)
|
239
|
+
settings.dynamic_reload = False
|
240
|
+
|
241
|
+
assert settings.get("settings.name") == "MyName"
|
242
|
+
|
243
|
+
# Change the settings file seperatrely
|
244
|
+
settings2 = Settings(settings_filepath, default_settings)
|
245
|
+
settings2.set("settings.name", "NewName")
|
246
|
+
|
247
|
+
# Verify that the change is reflected in the original settings object
|
248
|
+
assert settings.get("settings.name") == "MyName"
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import pytest
|
2
|
+
|
3
|
+
from mooch.settings.utils import get_nested, set_nested
|
4
|
+
|
5
|
+
|
6
|
+
@pytest.mark.parametrize(
|
7
|
+
"initial, key, value, expected",
|
8
|
+
[
|
9
|
+
({}, "a.b.c", 1, {"a": {"b": {"c": 1}}}),
|
10
|
+
({"a": {}}, "a.b", 2, {"a": {"b": 2}}),
|
11
|
+
({"a": {"b": 3}}, "a.b", 4, {"a": {"b": 4}}),
|
12
|
+
({}, "x", 5, {"x": 5}),
|
13
|
+
({"a": {"b": {"c": 1}}}, "a.b.d", 6, {"a": {"b": {"c": 1, "d": 6}}}),
|
14
|
+
],
|
15
|
+
)
|
16
|
+
def test_set_nested(initial, key, value, expected):
|
17
|
+
d = initial.copy()
|
18
|
+
set_nested(d, key, value)
|
19
|
+
assert d == expected
|
20
|
+
|
21
|
+
|
22
|
+
@pytest.mark.parametrize(
|
23
|
+
"d, key, expected",
|
24
|
+
[
|
25
|
+
({"a": {"b": {"c": 1}}}, "a.b.c", 1),
|
26
|
+
({"a": {"b": 2}}, "a.b", 2),
|
27
|
+
({"x": 5}, "x", 5),
|
28
|
+
({"a": {"b": {"c": 1}}}, "a.b", {"c": 1}),
|
29
|
+
({"a": {"b": {"c": 1}}}, "a.b.c.d", None),
|
30
|
+
({}, "foo.bar", None),
|
31
|
+
({"a": 1}, "a.b", None),
|
32
|
+
],
|
33
|
+
)
|
34
|
+
def test_get_nested(d, key, expected):
|
35
|
+
assert get_nested(d, key) == expected
|
36
|
+
|
37
|
+
|
38
|
+
def test_set_nested_with_custom_separator():
|
39
|
+
d = {}
|
40
|
+
set_nested(d, "a|b|c", 10, sep="|")
|
41
|
+
assert d == {"a": {"b": {"c": 10}}}
|
42
|
+
|
43
|
+
|
44
|
+
def test_get_nested_with_custom_separator():
|
45
|
+
d = {"a": {"b": {"c": 42}}}
|
46
|
+
assert get_nested(d, "a|b|c", sep="|") == 42
|
47
|
+
|
48
|
+
|
49
|
+
def test_set_nested_overwrites_non_dict():
|
50
|
+
d = {"a": 1}
|
51
|
+
set_nested(d, "a.b", 2)
|
52
|
+
assert d == {"a": {"b": 2}}
|
53
|
+
|
54
|
+
|
55
|
+
def test_get_nested_returns_none_for_non_dict():
|
56
|
+
d = {"a": 1}
|
57
|
+
assert get_nested(d, "a.b") is None
|
@@ -0,0 +1,221 @@
|
|
1
|
+
version = 1
|
2
|
+
requires-python = ">=3.11"
|
3
|
+
|
4
|
+
[[package]]
|
5
|
+
name = "colorama"
|
6
|
+
version = "0.4.6"
|
7
|
+
source = { registry = "https://pypi.org/simple" }
|
8
|
+
sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697 }
|
9
|
+
wheels = [
|
10
|
+
{ url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335 },
|
11
|
+
]
|
12
|
+
|
13
|
+
[[package]]
|
14
|
+
name = "coverage"
|
15
|
+
version = "7.9.1"
|
16
|
+
source = { registry = "https://pypi.org/simple" }
|
17
|
+
sdist = { url = "https://files.pythonhosted.org/packages/e7/e0/98670a80884f64578f0c22cd70c5e81a6e07b08167721c7487b4d70a7ca0/coverage-7.9.1.tar.gz", hash = "sha256:6cf43c78c4282708a28e466316935ec7489a9c487518a77fa68f716c67909cec", size = 813650 }
|
18
|
+
wheels = [
|
19
|
+
{ url = "https://files.pythonhosted.org/packages/60/34/fa69372a07d0903a78ac103422ad34db72281c9fc625eba94ac1185da66f/coverage-7.9.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:95c765060e65c692da2d2f51a9499c5e9f5cf5453aeaf1420e3fc847cc060582", size = 212146 },
|
20
|
+
{ url = "https://files.pythonhosted.org/packages/27/f0/da1894915d2767f093f081c42afeba18e760f12fdd7a2f4acbe00564d767/coverage-7.9.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:ba383dc6afd5ec5b7a0d0c23d38895db0e15bcba7fb0fa8901f245267ac30d86", size = 212536 },
|
21
|
+
{ url = "https://files.pythonhosted.org/packages/10/d5/3fc33b06e41e390f88eef111226a24e4504d216ab8e5d1a7089aa5a3c87a/coverage-7.9.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:37ae0383f13cbdcf1e5e7014489b0d71cc0106458878ccde52e8a12ced4298ed", size = 245092 },
|
22
|
+
{ url = "https://files.pythonhosted.org/packages/0a/39/7aa901c14977aba637b78e95800edf77f29f5a380d29768c5b66f258305b/coverage-7.9.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:69aa417a030bf11ec46149636314c24c8d60fadb12fc0ee8f10fda0d918c879d", size = 242806 },
|
23
|
+
{ url = "https://files.pythonhosted.org/packages/43/fc/30e5cfeaf560b1fc1989227adedc11019ce4bb7cce59d65db34fe0c2d963/coverage-7.9.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0a4be2a28656afe279b34d4f91c3e26eccf2f85500d4a4ff0b1f8b54bf807338", size = 244610 },
|
24
|
+
{ url = "https://files.pythonhosted.org/packages/bf/15/cca62b13f39650bc87b2b92bb03bce7f0e79dd0bf2c7529e9fc7393e4d60/coverage-7.9.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:382e7ddd5289f140259b610e5f5c58f713d025cb2f66d0eb17e68d0a94278875", size = 244257 },
|
25
|
+
{ url = "https://files.pythonhosted.org/packages/cd/1a/c0f2abe92c29e1464dbd0ff9d56cb6c88ae2b9e21becdb38bea31fcb2f6c/coverage-7.9.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:e5532482344186c543c37bfad0ee6069e8ae4fc38d073b8bc836fc8f03c9e250", size = 242309 },
|
26
|
+
{ url = "https://files.pythonhosted.org/packages/57/8d/c6fd70848bd9bf88fa90df2af5636589a8126d2170f3aade21ed53f2b67a/coverage-7.9.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:a39d18b3f50cc121d0ce3838d32d58bd1d15dab89c910358ebefc3665712256c", size = 242898 },
|
27
|
+
{ url = "https://files.pythonhosted.org/packages/c2/9e/6ca46c7bff4675f09a66fe2797cd1ad6a24f14c9c7c3b3ebe0470a6e30b8/coverage-7.9.1-cp311-cp311-win32.whl", hash = "sha256:dd24bd8d77c98557880def750782df77ab2b6885a18483dc8588792247174b32", size = 214561 },
|
28
|
+
{ url = "https://files.pythonhosted.org/packages/a1/30/166978c6302010742dabcdc425fa0f938fa5a800908e39aff37a7a876a13/coverage-7.9.1-cp311-cp311-win_amd64.whl", hash = "sha256:6b55ad10a35a21b8015eabddc9ba31eb590f54adc9cd39bcf09ff5349fd52125", size = 215493 },
|
29
|
+
{ url = "https://files.pythonhosted.org/packages/60/07/a6d2342cd80a5be9f0eeab115bc5ebb3917b4a64c2953534273cf9bc7ae6/coverage-7.9.1-cp311-cp311-win_arm64.whl", hash = "sha256:6ad935f0016be24c0e97fc8c40c465f9c4b85cbbe6eac48934c0dc4d2568321e", size = 213869 },
|
30
|
+
{ url = "https://files.pythonhosted.org/packages/68/d9/7f66eb0a8f2fce222de7bdc2046ec41cb31fe33fb55a330037833fb88afc/coverage-7.9.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:a8de12b4b87c20de895f10567639c0797b621b22897b0af3ce4b4e204a743626", size = 212336 },
|
31
|
+
{ url = "https://files.pythonhosted.org/packages/20/20/e07cb920ef3addf20f052ee3d54906e57407b6aeee3227a9c91eea38a665/coverage-7.9.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:5add197315a054e92cee1b5f686a2bcba60c4c3e66ee3de77ace6c867bdee7cb", size = 212571 },
|
32
|
+
{ url = "https://files.pythonhosted.org/packages/78/f8/96f155de7e9e248ca9c8ff1a40a521d944ba48bec65352da9be2463745bf/coverage-7.9.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:600a1d4106fe66f41e5d0136dfbc68fe7200a5cbe85610ddf094f8f22e1b0300", size = 246377 },
|
33
|
+
{ url = "https://files.pythonhosted.org/packages/3e/cf/1d783bd05b7bca5c10ded5f946068909372e94615a4416afadfe3f63492d/coverage-7.9.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2a876e4c3e5a2a1715a6608906aa5a2e0475b9c0f68343c2ada98110512ab1d8", size = 243394 },
|
34
|
+
{ url = "https://files.pythonhosted.org/packages/02/dd/e7b20afd35b0a1abea09fb3998e1abc9f9bd953bee548f235aebd2b11401/coverage-7.9.1-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:81f34346dd63010453922c8e628a52ea2d2ccd73cb2487f7700ac531b247c8a5", size = 245586 },
|
35
|
+
{ url = "https://files.pythonhosted.org/packages/4e/38/b30b0006fea9d617d1cb8e43b1bc9a96af11eff42b87eb8c716cf4d37469/coverage-7.9.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:888f8eee13f2377ce86d44f338968eedec3291876b0b8a7289247ba52cb984cd", size = 245396 },
|
36
|
+
{ url = "https://files.pythonhosted.org/packages/31/e4/4d8ec1dc826e16791f3daf1b50943e8e7e1eb70e8efa7abb03936ff48418/coverage-7.9.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:9969ef1e69b8c8e1e70d591f91bbc37fc9a3621e447525d1602801a24ceda898", size = 243577 },
|
37
|
+
{ url = "https://files.pythonhosted.org/packages/25/f4/b0e96c5c38e6e40ef465c4bc7f138863e2909c00e54a331da335faf0d81a/coverage-7.9.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:60c458224331ee3f1a5b472773e4a085cc27a86a0b48205409d364272d67140d", size = 244809 },
|
38
|
+
{ url = "https://files.pythonhosted.org/packages/8a/65/27e0a1fa5e2e5079bdca4521be2f5dabf516f94e29a0defed35ac2382eb2/coverage-7.9.1-cp312-cp312-win32.whl", hash = "sha256:5f646a99a8c2b3ff4c6a6e081f78fad0dde275cd59f8f49dc4eab2e394332e74", size = 214724 },
|
39
|
+
{ url = "https://files.pythonhosted.org/packages/9b/a8/d5b128633fd1a5e0401a4160d02fa15986209a9e47717174f99dc2f7166d/coverage-7.9.1-cp312-cp312-win_amd64.whl", hash = "sha256:30f445f85c353090b83e552dcbbdad3ec84c7967e108c3ae54556ca69955563e", size = 215535 },
|
40
|
+
{ url = "https://files.pythonhosted.org/packages/a3/37/84bba9d2afabc3611f3e4325ee2c6a47cd449b580d4a606b240ce5a6f9bf/coverage-7.9.1-cp312-cp312-win_arm64.whl", hash = "sha256:af41da5dca398d3474129c58cb2b106a5d93bbb196be0d307ac82311ca234342", size = 213904 },
|
41
|
+
{ url = "https://files.pythonhosted.org/packages/d0/a7/a027970c991ca90f24e968999f7d509332daf6b8c3533d68633930aaebac/coverage-7.9.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:31324f18d5969feef7344a932c32428a2d1a3e50b15a6404e97cba1cc9b2c631", size = 212358 },
|
42
|
+
{ url = "https://files.pythonhosted.org/packages/f2/48/6aaed3651ae83b231556750280682528fea8ac7f1232834573472d83e459/coverage-7.9.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:0c804506d624e8a20fb3108764c52e0eef664e29d21692afa375e0dd98dc384f", size = 212620 },
|
43
|
+
{ url = "https://files.pythonhosted.org/packages/6c/2a/f4b613f3b44d8b9f144847c89151992b2b6b79cbc506dee89ad0c35f209d/coverage-7.9.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ef64c27bc40189f36fcc50c3fb8f16ccda73b6a0b80d9bd6e6ce4cffcd810bbd", size = 245788 },
|
44
|
+
{ url = "https://files.pythonhosted.org/packages/04/d2/de4fdc03af5e4e035ef420ed26a703c6ad3d7a07aff2e959eb84e3b19ca8/coverage-7.9.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d4fe2348cc6ec372e25adec0219ee2334a68d2f5222e0cba9c0d613394e12d86", size = 243001 },
|
45
|
+
{ url = "https://files.pythonhosted.org/packages/f5/e8/eed18aa5583b0423ab7f04e34659e51101135c41cd1dcb33ac1d7013a6d6/coverage-7.9.1-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:34ed2186fe52fcc24d4561041979a0dec69adae7bce2ae8d1c49eace13e55c43", size = 244985 },
|
46
|
+
{ url = "https://files.pythonhosted.org/packages/17/f8/ae9e5cce8885728c934eaa58ebfa8281d488ef2afa81c3dbc8ee9e6d80db/coverage-7.9.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:25308bd3d00d5eedd5ae7d4357161f4df743e3c0240fa773ee1b0f75e6c7c0f1", size = 245152 },
|
47
|
+
{ url = "https://files.pythonhosted.org/packages/5a/c8/272c01ae792bb3af9b30fac14d71d63371db227980682836ec388e2c57c0/coverage-7.9.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:73e9439310f65d55a5a1e0564b48e34f5369bee943d72c88378f2d576f5a5751", size = 243123 },
|
48
|
+
{ url = "https://files.pythonhosted.org/packages/8c/d0/2819a1e3086143c094ab446e3bdf07138527a7b88cb235c488e78150ba7a/coverage-7.9.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:37ab6be0859141b53aa89412a82454b482c81cf750de4f29223d52268a86de67", size = 244506 },
|
49
|
+
{ url = "https://files.pythonhosted.org/packages/8b/4e/9f6117b89152df7b6112f65c7a4ed1f2f5ec8e60c4be8f351d91e7acc848/coverage-7.9.1-cp313-cp313-win32.whl", hash = "sha256:64bdd969456e2d02a8b08aa047a92d269c7ac1f47e0c977675d550c9a0863643", size = 214766 },
|
50
|
+
{ url = "https://files.pythonhosted.org/packages/27/0f/4b59f7c93b52c2c4ce7387c5a4e135e49891bb3b7408dcc98fe44033bbe0/coverage-7.9.1-cp313-cp313-win_amd64.whl", hash = "sha256:be9e3f68ca9edb897c2184ad0eee815c635565dbe7a0e7e814dc1f7cbab92c0a", size = 215568 },
|
51
|
+
{ url = "https://files.pythonhosted.org/packages/09/1e/9679826336f8c67b9c39a359352882b24a8a7aee48d4c9cad08d38d7510f/coverage-7.9.1-cp313-cp313-win_arm64.whl", hash = "sha256:1c503289ffef1d5105d91bbb4d62cbe4b14bec4d13ca225f9c73cde9bb46207d", size = 213939 },
|
52
|
+
{ url = "https://files.pythonhosted.org/packages/bb/5b/5c6b4e7a407359a2e3b27bf9c8a7b658127975def62077d441b93a30dbe8/coverage-7.9.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:0b3496922cb5f4215bf5caaef4cf12364a26b0be82e9ed6d050f3352cf2d7ef0", size = 213079 },
|
53
|
+
{ url = "https://files.pythonhosted.org/packages/a2/22/1e2e07279fd2fd97ae26c01cc2186e2258850e9ec125ae87184225662e89/coverage-7.9.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:9565c3ab1c93310569ec0d86b017f128f027cab0b622b7af288696d7ed43a16d", size = 213299 },
|
54
|
+
{ url = "https://files.pythonhosted.org/packages/14/c0/4c5125a4b69d66b8c85986d3321520f628756cf524af810baab0790c7647/coverage-7.9.1-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2241ad5dbf79ae1d9c08fe52b36d03ca122fb9ac6bca0f34439e99f8327ac89f", size = 256535 },
|
55
|
+
{ url = "https://files.pythonhosted.org/packages/81/8b/e36a04889dda9960be4263e95e777e7b46f1bb4fc32202612c130a20c4da/coverage-7.9.1-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3bb5838701ca68b10ebc0937dbd0eb81974bac54447c55cd58dea5bca8451029", size = 252756 },
|
56
|
+
{ url = "https://files.pythonhosted.org/packages/98/82/be04eff8083a09a4622ecd0e1f31a2c563dbea3ed848069e7b0445043a70/coverage-7.9.1-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b30a25f814591a8c0c5372c11ac8967f669b97444c47fd794926e175c4047ece", size = 254912 },
|
57
|
+
{ url = "https://files.pythonhosted.org/packages/0f/25/c26610a2c7f018508a5ab958e5b3202d900422cf7cdca7670b6b8ca4e8df/coverage-7.9.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:2d04b16a6062516df97969f1ae7efd0de9c31eb6ebdceaa0d213b21c0ca1a683", size = 256144 },
|
58
|
+
{ url = "https://files.pythonhosted.org/packages/c5/8b/fb9425c4684066c79e863f1e6e7ecebb49e3a64d9f7f7860ef1688c56f4a/coverage-7.9.1-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:7931b9e249edefb07cd6ae10c702788546341d5fe44db5b6108a25da4dca513f", size = 254257 },
|
59
|
+
{ url = "https://files.pythonhosted.org/packages/93/df/27b882f54157fc1131e0e215b0da3b8d608d9b8ef79a045280118a8f98fe/coverage-7.9.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:52e92b01041151bf607ee858e5a56c62d4b70f4dac85b8c8cb7fb8a351ab2c10", size = 255094 },
|
60
|
+
{ url = "https://files.pythonhosted.org/packages/41/5f/cad1c3dbed8b3ee9e16fa832afe365b4e3eeab1fb6edb65ebbf745eabc92/coverage-7.9.1-cp313-cp313t-win32.whl", hash = "sha256:684e2110ed84fd1ca5f40e89aa44adf1729dc85444004111aa01866507adf363", size = 215437 },
|
61
|
+
{ url = "https://files.pythonhosted.org/packages/99/4d/fad293bf081c0e43331ca745ff63673badc20afea2104b431cdd8c278b4c/coverage-7.9.1-cp313-cp313t-win_amd64.whl", hash = "sha256:437c576979e4db840539674e68c84b3cda82bc824dd138d56bead1435f1cb5d7", size = 216605 },
|
62
|
+
{ url = "https://files.pythonhosted.org/packages/1f/56/4ee027d5965fc7fc126d7ec1187529cc30cc7d740846e1ecb5e92d31b224/coverage-7.9.1-cp313-cp313t-win_arm64.whl", hash = "sha256:18a0912944d70aaf5f399e350445738a1a20b50fbea788f640751c2ed9208b6c", size = 214392 },
|
63
|
+
{ url = "https://files.pythonhosted.org/packages/3e/e5/c723545c3fd3204ebde3b4cc4b927dce709d3b6dc577754bb57f63ca4a4a/coverage-7.9.1-pp39.pp310.pp311-none-any.whl", hash = "sha256:db0f04118d1db74db6c9e1cb1898532c7dcc220f1d2718f058601f7c3f499514", size = 204009 },
|
64
|
+
{ url = "https://files.pythonhosted.org/packages/08/b8/7ddd1e8ba9701dea08ce22029917140e6f66a859427406579fd8d0ca7274/coverage-7.9.1-py3-none-any.whl", hash = "sha256:66b974b145aa189516b6bf2d8423e888b742517d37872f6ee4c5be0073bd9a3c", size = 204000 },
|
65
|
+
]
|
66
|
+
|
67
|
+
[package.optional-dependencies]
|
68
|
+
toml = [
|
69
|
+
{ name = "tomli", marker = "python_full_version <= '3.11'" },
|
70
|
+
]
|
71
|
+
|
72
|
+
[[package]]
|
73
|
+
name = "iniconfig"
|
74
|
+
version = "2.1.0"
|
75
|
+
source = { registry = "https://pypi.org/simple" }
|
76
|
+
sdist = { url = "https://files.pythonhosted.org/packages/f2/97/ebf4da567aa6827c909642694d71c9fcf53e5b504f2d96afea02718862f3/iniconfig-2.1.0.tar.gz", hash = "sha256:3abbd2e30b36733fee78f9c7f7308f2d0050e88f0087fd25c2645f63c773e1c7", size = 4793 }
|
77
|
+
wheels = [
|
78
|
+
{ url = "https://files.pythonhosted.org/packages/2c/e1/e6716421ea10d38022b952c159d5161ca1193197fb744506875fbb87ea7b/iniconfig-2.1.0-py3-none-any.whl", hash = "sha256:9deba5723312380e77435581c6bf4935c94cbfab9b1ed33ef8d238ea168eb760", size = 6050 },
|
79
|
+
]
|
80
|
+
|
81
|
+
[[package]]
|
82
|
+
name = "mooch-settings"
|
83
|
+
version = "0.0.1.dev1"
|
84
|
+
source = { editable = "." }
|
85
|
+
dependencies = [
|
86
|
+
{ name = "toml" },
|
87
|
+
]
|
88
|
+
|
89
|
+
[package.dev-dependencies]
|
90
|
+
dev = [
|
91
|
+
{ name = "pytest" },
|
92
|
+
{ name = "pytest-asyncio" },
|
93
|
+
{ name = "pytest-cov" },
|
94
|
+
]
|
95
|
+
|
96
|
+
[package.metadata]
|
97
|
+
requires-dist = [{ name = "toml", specifier = ">=0.10.2" }]
|
98
|
+
|
99
|
+
[package.metadata.requires-dev]
|
100
|
+
dev = [
|
101
|
+
{ name = "pytest", specifier = ">=8.4.0" },
|
102
|
+
{ name = "pytest-asyncio", specifier = ">=1.0.0" },
|
103
|
+
{ name = "pytest-cov", specifier = ">=6.2.1" },
|
104
|
+
]
|
105
|
+
|
106
|
+
[[package]]
|
107
|
+
name = "packaging"
|
108
|
+
version = "25.0"
|
109
|
+
source = { registry = "https://pypi.org/simple" }
|
110
|
+
sdist = { url = "https://files.pythonhosted.org/packages/a1/d4/1fc4078c65507b51b96ca8f8c3ba19e6a61c8253c72794544580a7b6c24d/packaging-25.0.tar.gz", hash = "sha256:d443872c98d677bf60f6a1f2f8c1cb748e8fe762d2bf9d3148b5599295b0fc4f", size = 165727 }
|
111
|
+
wheels = [
|
112
|
+
{ url = "https://files.pythonhosted.org/packages/20/12/38679034af332785aac8774540895e234f4d07f7545804097de4b666afd8/packaging-25.0-py3-none-any.whl", hash = "sha256:29572ef2b1f17581046b3a2227d5c611fb25ec70ca1ba8554b24b0e69331a484", size = 66469 },
|
113
|
+
]
|
114
|
+
|
115
|
+
[[package]]
|
116
|
+
name = "pluggy"
|
117
|
+
version = "1.6.0"
|
118
|
+
source = { registry = "https://pypi.org/simple" }
|
119
|
+
sdist = { url = "https://files.pythonhosted.org/packages/f9/e2/3e91f31a7d2b083fe6ef3fa267035b518369d9511ffab804f839851d2779/pluggy-1.6.0.tar.gz", hash = "sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3", size = 69412 }
|
120
|
+
wheels = [
|
121
|
+
{ url = "https://files.pythonhosted.org/packages/54/20/4d324d65cc6d9205fabedc306948156824eb9f0ee1633355a8f7ec5c66bf/pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746", size = 20538 },
|
122
|
+
]
|
123
|
+
|
124
|
+
[[package]]
|
125
|
+
name = "pygments"
|
126
|
+
version = "2.19.2"
|
127
|
+
source = { registry = "https://pypi.org/simple" }
|
128
|
+
sdist = { url = "https://files.pythonhosted.org/packages/b0/77/a5b8c569bf593b0140bde72ea885a803b82086995367bf2037de0159d924/pygments-2.19.2.tar.gz", hash = "sha256:636cb2477cec7f8952536970bc533bc43743542f70392ae026374600add5b887", size = 4968631 }
|
129
|
+
wheels = [
|
130
|
+
{ url = "https://files.pythonhosted.org/packages/c7/21/705964c7812476f378728bdf590ca4b771ec72385c533964653c68e86bdc/pygments-2.19.2-py3-none-any.whl", hash = "sha256:86540386c03d588bb81d44bc3928634ff26449851e99741617ecb9037ee5ec0b", size = 1225217 },
|
131
|
+
]
|
132
|
+
|
133
|
+
[[package]]
|
134
|
+
name = "pytest"
|
135
|
+
version = "8.4.1"
|
136
|
+
source = { registry = "https://pypi.org/simple" }
|
137
|
+
dependencies = [
|
138
|
+
{ name = "colorama", marker = "sys_platform == 'win32'" },
|
139
|
+
{ name = "iniconfig" },
|
140
|
+
{ name = "packaging" },
|
141
|
+
{ name = "pluggy" },
|
142
|
+
{ name = "pygments" },
|
143
|
+
]
|
144
|
+
sdist = { url = "https://files.pythonhosted.org/packages/08/ba/45911d754e8eba3d5a841a5ce61a65a685ff1798421ac054f85aa8747dfb/pytest-8.4.1.tar.gz", hash = "sha256:7c67fd69174877359ed9371ec3af8a3d2b04741818c51e5e99cc1742251fa93c", size = 1517714 }
|
145
|
+
wheels = [
|
146
|
+
{ url = "https://files.pythonhosted.org/packages/29/16/c8a903f4c4dffe7a12843191437d7cd8e32751d5de349d45d3fe69544e87/pytest-8.4.1-py3-none-any.whl", hash = "sha256:539c70ba6fcead8e78eebbf1115e8b589e7565830d7d006a8723f19ac8a0afb7", size = 365474 },
|
147
|
+
]
|
148
|
+
|
149
|
+
[[package]]
|
150
|
+
name = "pytest-asyncio"
|
151
|
+
version = "1.0.0"
|
152
|
+
source = { registry = "https://pypi.org/simple" }
|
153
|
+
dependencies = [
|
154
|
+
{ name = "pytest" },
|
155
|
+
]
|
156
|
+
sdist = { url = "https://files.pythonhosted.org/packages/d0/d4/14f53324cb1a6381bef29d698987625d80052bb33932d8e7cbf9b337b17c/pytest_asyncio-1.0.0.tar.gz", hash = "sha256:d15463d13f4456e1ead2594520216b225a16f781e144f8fdf6c5bb4667c48b3f", size = 46960 }
|
157
|
+
wheels = [
|
158
|
+
{ url = "https://files.pythonhosted.org/packages/30/05/ce271016e351fddc8399e546f6e23761967ee09c8c568bbfbecb0c150171/pytest_asyncio-1.0.0-py3-none-any.whl", hash = "sha256:4f024da9f1ef945e680dc68610b52550e36590a67fd31bb3b4943979a1f90ef3", size = 15976 },
|
159
|
+
]
|
160
|
+
|
161
|
+
[[package]]
|
162
|
+
name = "pytest-cov"
|
163
|
+
version = "6.2.1"
|
164
|
+
source = { registry = "https://pypi.org/simple" }
|
165
|
+
dependencies = [
|
166
|
+
{ name = "coverage", extra = ["toml"] },
|
167
|
+
{ name = "pluggy" },
|
168
|
+
{ name = "pytest" },
|
169
|
+
]
|
170
|
+
sdist = { url = "https://files.pythonhosted.org/packages/18/99/668cade231f434aaa59bbfbf49469068d2ddd945000621d3d165d2e7dd7b/pytest_cov-6.2.1.tar.gz", hash = "sha256:25cc6cc0a5358204b8108ecedc51a9b57b34cc6b8c967cc2c01a4e00d8a67da2", size = 69432 }
|
171
|
+
wheels = [
|
172
|
+
{ url = "https://files.pythonhosted.org/packages/bc/16/4ea354101abb1287856baa4af2732be351c7bee728065aed451b678153fd/pytest_cov-6.2.1-py3-none-any.whl", hash = "sha256:f5bc4c23f42f1cdd23c70b1dab1bbaef4fc505ba950d53e0081d0730dd7e86d5", size = 24644 },
|
173
|
+
]
|
174
|
+
|
175
|
+
[[package]]
|
176
|
+
name = "toml"
|
177
|
+
version = "0.10.2"
|
178
|
+
source = { registry = "https://pypi.org/simple" }
|
179
|
+
sdist = { url = "https://files.pythonhosted.org/packages/be/ba/1f744cdc819428fc6b5084ec34d9b30660f6f9daaf70eead706e3203ec3c/toml-0.10.2.tar.gz", hash = "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f", size = 22253 }
|
180
|
+
wheels = [
|
181
|
+
{ url = "https://files.pythonhosted.org/packages/44/6f/7120676b6d73228c96e17f1f794d8ab046fc910d781c8d151120c3f1569e/toml-0.10.2-py2.py3-none-any.whl", hash = "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b", size = 16588 },
|
182
|
+
]
|
183
|
+
|
184
|
+
[[package]]
|
185
|
+
name = "tomli"
|
186
|
+
version = "2.2.1"
|
187
|
+
source = { registry = "https://pypi.org/simple" }
|
188
|
+
sdist = { url = "https://files.pythonhosted.org/packages/18/87/302344fed471e44a87289cf4967697d07e532f2421fdaf868a303cbae4ff/tomli-2.2.1.tar.gz", hash = "sha256:cd45e1dc79c835ce60f7404ec8119f2eb06d38b1deba146f07ced3bbc44505ff", size = 17175 }
|
189
|
+
wheels = [
|
190
|
+
{ url = "https://files.pythonhosted.org/packages/43/ca/75707e6efa2b37c77dadb324ae7d9571cb424e61ea73fad7c56c2d14527f/tomli-2.2.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:678e4fa69e4575eb77d103de3df8a895e1591b48e740211bd1067378c69e8249", size = 131077 },
|
191
|
+
{ url = "https://files.pythonhosted.org/packages/c7/16/51ae563a8615d472fdbffc43a3f3d46588c264ac4f024f63f01283becfbb/tomli-2.2.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:023aa114dd824ade0100497eb2318602af309e5a55595f76b626d6d9f3b7b0a6", size = 123429 },
|
192
|
+
{ url = "https://files.pythonhosted.org/packages/f1/dd/4f6cd1e7b160041db83c694abc78e100473c15d54620083dbd5aae7b990e/tomli-2.2.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ece47d672db52ac607a3d9599a9d48dcb2f2f735c6c2d1f34130085bb12b112a", size = 226067 },
|
193
|
+
{ url = "https://files.pythonhosted.org/packages/a9/6b/c54ede5dc70d648cc6361eaf429304b02f2871a345bbdd51e993d6cdf550/tomli-2.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6972ca9c9cc9f0acaa56a8ca1ff51e7af152a9f87fb64623e31d5c83700080ee", size = 236030 },
|
194
|
+
{ url = "https://files.pythonhosted.org/packages/1f/47/999514fa49cfaf7a92c805a86c3c43f4215621855d151b61c602abb38091/tomli-2.2.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c954d2250168d28797dd4e3ac5cf812a406cd5a92674ee4c8f123c889786aa8e", size = 240898 },
|
195
|
+
{ url = "https://files.pythonhosted.org/packages/73/41/0a01279a7ae09ee1573b423318e7934674ce06eb33f50936655071d81a24/tomli-2.2.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:8dd28b3e155b80f4d54beb40a441d366adcfe740969820caf156c019fb5c7ec4", size = 229894 },
|
196
|
+
{ url = "https://files.pythonhosted.org/packages/55/18/5d8bc5b0a0362311ce4d18830a5d28943667599a60d20118074ea1b01bb7/tomli-2.2.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:e59e304978767a54663af13c07b3d1af22ddee3bb2fb0618ca1593e4f593a106", size = 245319 },
|
197
|
+
{ url = "https://files.pythonhosted.org/packages/92/a3/7ade0576d17f3cdf5ff44d61390d4b3febb8a9fc2b480c75c47ea048c646/tomli-2.2.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:33580bccab0338d00994d7f16f4c4ec25b776af3ffaac1ed74e0b3fc95e885a8", size = 238273 },
|
198
|
+
{ url = "https://files.pythonhosted.org/packages/72/6f/fa64ef058ac1446a1e51110c375339b3ec6be245af9d14c87c4a6412dd32/tomli-2.2.1-cp311-cp311-win32.whl", hash = "sha256:465af0e0875402f1d226519c9904f37254b3045fc5084697cefb9bdde1ff99ff", size = 98310 },
|
199
|
+
{ url = "https://files.pythonhosted.org/packages/6a/1c/4a2dcde4a51b81be3530565e92eda625d94dafb46dbeb15069df4caffc34/tomli-2.2.1-cp311-cp311-win_amd64.whl", hash = "sha256:2d0f2fdd22b02c6d81637a3c95f8cd77f995846af7414c5c4b8d0545afa1bc4b", size = 108309 },
|
200
|
+
{ url = "https://files.pythonhosted.org/packages/52/e1/f8af4c2fcde17500422858155aeb0d7e93477a0d59a98e56cbfe75070fd0/tomli-2.2.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:4a8f6e44de52d5e6c657c9fe83b562f5f4256d8ebbfe4ff922c495620a7f6cea", size = 132762 },
|
201
|
+
{ url = "https://files.pythonhosted.org/packages/03/b8/152c68bb84fc00396b83e7bbddd5ec0bd3dd409db4195e2a9b3e398ad2e3/tomli-2.2.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8d57ca8095a641b8237d5b079147646153d22552f1c637fd3ba7f4b0b29167a8", size = 123453 },
|
202
|
+
{ url = "https://files.pythonhosted.org/packages/c8/d6/fc9267af9166f79ac528ff7e8c55c8181ded34eb4b0e93daa767b8841573/tomli-2.2.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4e340144ad7ae1533cb897d406382b4b6fede8890a03738ff1683af800d54192", size = 233486 },
|
203
|
+
{ url = "https://files.pythonhosted.org/packages/5c/51/51c3f2884d7bab89af25f678447ea7d297b53b5a3b5730a7cb2ef6069f07/tomli-2.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:db2b95f9de79181805df90bedc5a5ab4c165e6ec3fe99f970d0e302f384ad222", size = 242349 },
|
204
|
+
{ url = "https://files.pythonhosted.org/packages/ab/df/bfa89627d13a5cc22402e441e8a931ef2108403db390ff3345c05253935e/tomli-2.2.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:40741994320b232529c802f8bc86da4e1aa9f413db394617b9a256ae0f9a7f77", size = 252159 },
|
205
|
+
{ url = "https://files.pythonhosted.org/packages/9e/6e/fa2b916dced65763a5168c6ccb91066f7639bdc88b48adda990db10c8c0b/tomli-2.2.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:400e720fe168c0f8521520190686ef8ef033fb19fc493da09779e592861b78c6", size = 237243 },
|
206
|
+
{ url = "https://files.pythonhosted.org/packages/b4/04/885d3b1f650e1153cbb93a6a9782c58a972b94ea4483ae4ac5cedd5e4a09/tomli-2.2.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:02abe224de6ae62c19f090f68da4e27b10af2b93213d36cf44e6e1c5abd19fdd", size = 259645 },
|
207
|
+
{ url = "https://files.pythonhosted.org/packages/9c/de/6b432d66e986e501586da298e28ebeefd3edc2c780f3ad73d22566034239/tomli-2.2.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:b82ebccc8c8a36f2094e969560a1b836758481f3dc360ce9a3277c65f374285e", size = 244584 },
|
208
|
+
{ url = "https://files.pythonhosted.org/packages/1c/9a/47c0449b98e6e7d1be6cbac02f93dd79003234ddc4aaab6ba07a9a7482e2/tomli-2.2.1-cp312-cp312-win32.whl", hash = "sha256:889f80ef92701b9dbb224e49ec87c645ce5df3fa2cc548664eb8a25e03127a98", size = 98875 },
|
209
|
+
{ url = "https://files.pythonhosted.org/packages/ef/60/9b9638f081c6f1261e2688bd487625cd1e660d0a85bd469e91d8db969734/tomli-2.2.1-cp312-cp312-win_amd64.whl", hash = "sha256:7fc04e92e1d624a4a63c76474610238576942d6b8950a2d7f908a340494e67e4", size = 109418 },
|
210
|
+
{ url = "https://files.pythonhosted.org/packages/04/90/2ee5f2e0362cb8a0b6499dc44f4d7d48f8fff06d28ba46e6f1eaa61a1388/tomli-2.2.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:f4039b9cbc3048b2416cc57ab3bda989a6fcf9b36cf8937f01a6e731b64f80d7", size = 132708 },
|
211
|
+
{ url = "https://files.pythonhosted.org/packages/c0/ec/46b4108816de6b385141f082ba99e315501ccd0a2ea23db4a100dd3990ea/tomli-2.2.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:286f0ca2ffeeb5b9bd4fcc8d6c330534323ec51b2f52da063b11c502da16f30c", size = 123582 },
|
212
|
+
{ url = "https://files.pythonhosted.org/packages/a0/bd/b470466d0137b37b68d24556c38a0cc819e8febe392d5b199dcd7f578365/tomli-2.2.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a92ef1a44547e894e2a17d24e7557a5e85a9e1d0048b0b5e7541f76c5032cb13", size = 232543 },
|
213
|
+
{ url = "https://files.pythonhosted.org/packages/d9/e5/82e80ff3b751373f7cead2815bcbe2d51c895b3c990686741a8e56ec42ab/tomli-2.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9316dc65bed1684c9a98ee68759ceaed29d229e985297003e494aa825ebb0281", size = 241691 },
|
214
|
+
{ url = "https://files.pythonhosted.org/packages/05/7e/2a110bc2713557d6a1bfb06af23dd01e7dde52b6ee7dadc589868f9abfac/tomli-2.2.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e85e99945e688e32d5a35c1ff38ed0b3f41f43fad8df0bdf79f72b2ba7bc5272", size = 251170 },
|
215
|
+
{ url = "https://files.pythonhosted.org/packages/64/7b/22d713946efe00e0adbcdfd6d1aa119ae03fd0b60ebed51ebb3fa9f5a2e5/tomli-2.2.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ac065718db92ca818f8d6141b5f66369833d4a80a9d74435a268c52bdfa73140", size = 236530 },
|
216
|
+
{ url = "https://files.pythonhosted.org/packages/38/31/3a76f67da4b0cf37b742ca76beaf819dca0ebef26d78fc794a576e08accf/tomli-2.2.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:d920f33822747519673ee656a4b6ac33e382eca9d331c87770faa3eef562aeb2", size = 258666 },
|
217
|
+
{ url = "https://files.pythonhosted.org/packages/07/10/5af1293da642aded87e8a988753945d0cf7e00a9452d3911dd3bb354c9e2/tomli-2.2.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:a198f10c4d1b1375d7687bc25294306e551bf1abfa4eace6650070a5c1ae2744", size = 243954 },
|
218
|
+
{ url = "https://files.pythonhosted.org/packages/5b/b9/1ed31d167be802da0fc95020d04cd27b7d7065cc6fbefdd2f9186f60d7bd/tomli-2.2.1-cp313-cp313-win32.whl", hash = "sha256:d3f5614314d758649ab2ab3a62d4f2004c825922f9e370b29416484086b264ec", size = 98724 },
|
219
|
+
{ url = "https://files.pythonhosted.org/packages/c7/32/b0963458706accd9afcfeb867c0f9175a741bf7b19cd424230714d722198/tomli-2.2.1-cp313-cp313-win_amd64.whl", hash = "sha256:a38aa0308e754b0e3c67e344754dff64999ff9b513e691d0e786265c93583c69", size = 109383 },
|
220
|
+
{ url = "https://files.pythonhosted.org/packages/6e/c2/61d3e0f47e2b74ef40a68b9e6ad5984f6241a942f7cd3bbfbdbd03861ea9/tomli-2.2.1-py3-none-any.whl", hash = "sha256:cb55c73c5f4408779d0cf3eef9f762b9c9f147a77de7b258bef0a5628adc85cc", size = 14257 },
|
221
|
+
]
|