openyieldtables 0.0.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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 to Tree.ly FlexCo and FMM GmbH
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,55 @@
1
+ Metadata-Version: 2.1
2
+ Name: openyieldtables
3
+ Version: 0.0.0
4
+ Summary:
5
+ Author: Tree.ly
6
+ Requires-Python: >=3.9,<4.0
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Programming Language :: Python :: 3.9
9
+ Classifier: Programming Language :: Python :: 3.10
10
+ Classifier: Programming Language :: Python :: 3.11
11
+ Classifier: Programming Language :: Python :: 3.12
12
+ Requires-Dist: pandas (>=2.2.1,<3.0.0)
13
+ Requires-Dist: pydantic (>=2.6.4,<3.0.0)
14
+ Description-Content-Type: text/markdown
15
+
16
+ # 🌲 openyieldtables
17
+
18
+ An open source Python library for yield tables.
19
+
20
+ ## Quickstart
21
+
22
+ Download the latest version of the library from PyPI:
23
+
24
+ ```bash
25
+ pip install openyieldtables
26
+ ```
27
+
28
+ Import the library and load a yield table:
29
+
30
+ ```python
31
+ from openyieldtables.yieldtables import (
32
+ get_yield_table_data,
33
+ get_yield_tables_meta,
34
+ )
35
+
36
+ # Get the metadata of all available yield tables
37
+ yield_tables_meta = get_yield_tables_meta()
38
+
39
+ # Get the data of a yield table by its ID
40
+ yield_table = get_yield_table(1)
41
+ ```
42
+
43
+ ## Documentation
44
+
45
+ You can find the documentation [here](https://openyieldtables.readthedocs.io/latest/).
46
+
47
+ ## Contributing
48
+
49
+ We are happy about every contribution! Please follow our
50
+ contribution guideline](https://github.com/treely/openyieldtables/blob/main/CONTRIBUTING.md).
51
+
52
+ ## About
53
+
54
+ `openyieldtables` is maintained by [Tree.ly](https://tree.ly) and [FMM](https://www.fmm.at/).
55
+
@@ -0,0 +1,39 @@
1
+ # 🌲 openyieldtables
2
+
3
+ An open source Python library for yield tables.
4
+
5
+ ## Quickstart
6
+
7
+ Download the latest version of the library from PyPI:
8
+
9
+ ```bash
10
+ pip install openyieldtables
11
+ ```
12
+
13
+ Import the library and load a yield table:
14
+
15
+ ```python
16
+ from openyieldtables.yieldtables import (
17
+ get_yield_table_data,
18
+ get_yield_tables_meta,
19
+ )
20
+
21
+ # Get the metadata of all available yield tables
22
+ yield_tables_meta = get_yield_tables_meta()
23
+
24
+ # Get the data of a yield table by its ID
25
+ yield_table = get_yield_table(1)
26
+ ```
27
+
28
+ ## Documentation
29
+
30
+ You can find the documentation [here](https://openyieldtables.readthedocs.io/latest/).
31
+
32
+ ## Contributing
33
+
34
+ We are happy about every contribution! Please follow our
35
+ contribution guideline](https://github.com/treely/openyieldtables/blob/main/CONTRIBUTING.md).
36
+
37
+ ## About
38
+
39
+ `openyieldtables` is maintained by [Tree.ly](https://tree.ly) and [FMM](https://www.fmm.at/).
@@ -0,0 +1,77 @@
1
+ [tool.poetry]
2
+ name = "openyieldtables"
3
+ version = "0.0.0"
4
+ description = ""
5
+ authors = ["Tree.ly", "FMM"]
6
+ readme = "README.md"
7
+ packages = [
8
+ { include = "openyieldtables", from = "src" },
9
+ { include = "src/openyieldtables/py.typed" },
10
+ ]
11
+
12
+ [tool.poetry.dependencies]
13
+ python = "^3.9"
14
+ pydantic = "^2.6.4"
15
+ pandas = "^2.2.1"
16
+
17
+ [tool.pytest.ini_options]
18
+ testpaths = ["tests"]
19
+ addopts = "--cov=openyieldtables --cov-report term-missing --cov-report html"
20
+
21
+ [tool.black]
22
+ line-length = 79
23
+ target-version = ['py39']
24
+ include = '\.pyi?$'
25
+ exclude = '''
26
+ (
27
+ /(
28
+ \.eggs # exclude a few common directories in the
29
+ | \.git # root of the project
30
+ | \.hg
31
+ | \.mypy_cache
32
+ | \.tox
33
+ | \.venv
34
+ | _build
35
+ | buck-out
36
+ | build
37
+ | dist
38
+ )/
39
+ )
40
+ '''
41
+
42
+ [tool.isort]
43
+ profile = "black"
44
+ line_length = 79
45
+ force_sort_within_sections = true
46
+
47
+ [tool.mypy]
48
+ python_version = "3.9"
49
+ warn_return_any = true
50
+
51
+ [tool.semantic_release]
52
+ version_toml = ["pyproject.toml:tool.poetry.version"]
53
+ branch = "main"
54
+ build_command = "pip install poetry==1.8.2 && poetry build"
55
+
56
+ [tool.poetry.group.dev.dependencies]
57
+ pytest = "^8.1.1"
58
+ pytest-cov = "^5.0.0"
59
+ flake8 = "^7.0.0"
60
+ black = "^24.3.0"
61
+ isort = "^5.13.2"
62
+ pre-commit = "^3.7.0"
63
+ mypy = "^1.9.0"
64
+ pandas-stubs = "^2.2.1.240316"
65
+
66
+ [tool.poetry.group.docs.dependencies]
67
+ mkdocs = "^1.5.3"
68
+ mkdocstrings = { extras = ["python"], version = "^0.24.3" }
69
+
70
+ [tool.poetry.group.api.dependencies]
71
+ fastapi = "^0.110.1"
72
+ uvicorn = "^0.29.0"
73
+ httpx = "^0.27.0"
74
+
75
+ [build-system]
76
+ requires = ["poetry-core"]
77
+ build-backend = "poetry.core.masonry.api"
File without changes