pythonic-fp-fptools 5.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,6 @@
1
+ # Minimal version - only add to when necessary
2
+ **/__pycache__/
3
+ dist/
4
+ **/.mypy_cache/
5
+ **/.pytest_cache/
6
+ **/.ruff_cache
@@ -0,0 +1,245 @@
1
+ CHANGELOG
2
+ =========
3
+
4
+ PyPI pythonic-fp.fptools project.
5
+
6
+ Semantic Versioning
7
+ -------------------
8
+
9
+ Strict 3 digit semantic versioning adopted 2025-05-19.
10
+
11
+ - **MAJOR** version incremented for incompatible API changes
12
+ - **MINOR** version incremented for backward compatible added functionality
13
+ - **PATCH** version incremented for backward compatible bug fixes
14
+
15
+ See `Semantic Versioning 2.0.0 <https://semver.org>`_.
16
+
17
+ Releases and Important Milestones
18
+ ---------------------------------
19
+
20
+ 5.0.0 - TBD
21
+ ~~~~~~~~~~~~~~~~~~
22
+
23
+ Coordinated entire project pythonic-fp PyPI deployment.
24
+
25
+ - moved maybe.py and xor.py from containers, renamed xor.py -> either.py.
26
+
27
+ 4.0.0 - 2025-07-13
28
+ ~~~~~~~~~~~~~~~~~~
29
+
30
+ Dropped developer status to Beta
31
+
32
+ - Development Status :: 4 - Beta
33
+ - planning to shuffle packages around a bit
34
+
35
+ TODO: After next Boring Math (bm) deployment, I should be able to archive
36
+ my dtools namespace repos
37
+
38
+ 3.0.0 - 2025-07-06
39
+ ~~~~~~~~~~~~~~~~~~
40
+
41
+ First PyPI release as ``pythonic-fp.fptools``
42
+
43
+ - dropping dtools namespace name because there is a repo by that name.
44
+
45
+ 2.0.0 - 2025-05-22
46
+ ~~~~~~~~~~~~~~~~~~
47
+
48
+ - Moved dtools.fp.err_handling to the dtools.containers PyPI project
49
+
50
+ - Moved class MayBe -> module dtools.containers.maybe
51
+ - Moved class Xor -> module dtools.containers.xor
52
+ - dropped lazy methods
53
+
54
+ - will import dtools.fp.lazy directly for this functionality
55
+
56
+ 1.7.0 - 2025-04-22
57
+ ~~~~~~~~~~~~~~~~~~
58
+
59
+ Last PyPI release as dtools.fp
60
+
61
+ - API changes along the lines of dtools.ca 3.12
62
+ - typing improvements
63
+ - docstring changes
64
+ - pyproject.toml standardization
65
+
66
+ 1.6.1.0 - 2025-04-17
67
+ ~~~~~~~~~~~~~~~~~~~~
68
+
69
+ - MB.sequence and XOR.sequence now return a wrapped iterator
70
+
71
+ - to get a MB or XOR of the container
72
+
73
+ - MB.sequence(list_of_mb).map(list)
74
+ - XOR.sequence(ca_of_mb).map(CA)
75
+
76
+ - eliminates runtime polymorphism
77
+ - TODO: don't force a full evaluation
78
+
79
+ - Also noticed MB and XOR still have camelCase APIs
80
+
81
+ 1.6.0 - 2025-04-07
82
+ ~~~~~~~~~~~~~~~~~~
83
+
84
+ - typing improvements
85
+
86
+ 1.4.0 - 2025-03-16
87
+ ~~~~~~~~~~~~~~~~~~
88
+
89
+ - added two state changing methods to dtools.err_handling.MB
90
+
91
+ - added put method to MB class
92
+
93
+ - if MB is empty, injects a value into it
94
+ - otherwise, do nothing
95
+
96
+ - added pop method to MB class
97
+
98
+ - if MB is not empty, remove the value and return it
99
+ - otherwise, raise ValueError
100
+
101
+ - found both methods useful to treat a MB just as a container
102
+
103
+ - avoid using these methods in pure code
104
+
105
+ 1.3.1 - 2025-02-05
106
+ ~~~~~~~~~~~~~~~~~~
107
+
108
+ - added class method sequence to class State
109
+
110
+ 1.3.0 - 2025-01-17
111
+ ~~~~~~~~~~~~~~~~~~
112
+
113
+ First release as dtools.fp
114
+
115
+ Repo name changes.
116
+
117
+ - GitHub: fp -> dtools-fp
118
+ - PyPI: grscheller.fp -> dtools.fp
119
+
120
+ 1.2.0 - 2025-01-04
121
+ ~~~~~~~~~~~~~~~~~~
122
+
123
+ - added modules lazy and state
124
+ - renamed flatmap methods to bind
125
+ - minor MB and XOR updates/corrections
126
+
127
+ 1.1.0 - 2024-11-18
128
+ ~~~~~~~~~~~~~~~~~~
129
+
130
+ Added fp.function module.
131
+
132
+ - combine and partially apply functions as first class objects
133
+ - some tests may be lacking
134
+
135
+ 1.0.2.0 - 2024-10-20
136
+ ~~~~~~~~~~~~~~~~~~~~
137
+
138
+ Development environment only.
139
+
140
+ - breaking API changes, next PyPI release will be 1.1.0.
141
+ - renamed module ``nothingness`` to ``singletons``
142
+
143
+ - split class NoValue into class NoValue and Sentinel
144
+
145
+ - ``noValue`` represents a missing value
146
+ - ``_sentinel`` is intended to provide a "private" sentinel value
147
+
148
+ - frees up ``None`` and ``()`` for application use
149
+ - avoids name collisions with user code
150
+ - will be used in grscheller.datastructures
151
+
152
+ - will redo docs in docs repo
153
+
154
+ 1.0.1 - 2024-10-20
155
+ ~~~~~~~~~~~~~~~~~~
156
+
157
+ - removed docs from repo
158
+ - docs for all grscheller namespace projects maintained here
159
+
160
+ - https://grscheller.github.io/grscheller-pypi-namespace-docs/
161
+
162
+ 1.0.0 - 2024-10-18
163
+ ~~~~~~~~~~~~~~~~~~
164
+
165
+ Decided to make this release first stable release.
166
+
167
+ - renamed module fp.woException to fp.err_handling
168
+
169
+ - better captures module's use case
170
+
171
+ - pytest improvements based on pytest documentation
172
+
173
+ 0.4.0 - 2024-10-03
174
+ ~~~~~~~~~~~~~~~~~~
175
+
176
+ Long overdue PyPI release.
177
+
178
+ 0.3.5.1 - 2024-10-03
179
+ ~~~~~~~~~~~~~~~~~~~~
180
+
181
+ Development environment only.
182
+
183
+ - New module ``grscheller.fp.nothingness`` for
184
+
185
+ - Singleton ``noValue`` representing a missing value
186
+
187
+ - similar to ``None`` but while
188
+
189
+ - ``None`` represent "returned no values"
190
+ - ``noValue: _NoValue = _NoValue()`` represents an absent value
191
+
192
+ - mostly used as an implementation detail
193
+
194
+ - allows client code to use ``None`` as a sentinel value
195
+
196
+ - prefer class ``MB`` to represent a missing value in client code
197
+
198
+ 0.3.3 - 2024-08-25
199
+ ~~~~~~~~~~~~~~~~~~
200
+
201
+ - removed woException ``XOR`` method
202
+
203
+ - ``getDefaultRight(self) -> R``:
204
+
205
+ - added methods
206
+
207
+ - makeRight(self, right: R|Nada=nada) -> XOR\[L, R\]:
208
+ - swapRight(self, right: R) -> XOR\[L, R\]:
209
+
210
+ 0.3.0 - 2024-08-17
211
+ ~~~~~~~~~~~~~~~~~~
212
+
213
+ Class Nothing re-added but renamed class Nada.
214
+
215
+ Version grscheller.untyped.nothing for more strictly typed code.
216
+
217
+ 0.2.1 - 2024-07-26
218
+ ~~~~~~~~~~~~~~~~~~
219
+
220
+ PyPI grscheller.fp package release v0.2.1
221
+
222
+ - forgot to update README.md on last PyPI release
223
+ - simplified README.md to help alleviate this mistake in the future
224
+
225
+ 0.2.0 - 2024-07-26
226
+ ~~~~~~~~~~~~~~~~~~
227
+
228
+ - from last PyPI release
229
+
230
+ - new fp.nothing module implementing nothing: Nothing singleton
231
+
232
+ - represents a missing value
233
+ - better "bottom" type than either None or ()
234
+
235
+ - renamed ``fp.wo_exception`` to ``fp.woException``
236
+
237
+ 0.1.0 - 2024-07-11
238
+ ~~~~~~~~~~~~~~~~~~
239
+
240
+ Initial PyPI release as grscheller.fp
241
+
242
+ Replicated functionality from grscheller.datastructures.
243
+
244
+ - ``grscheller.datastructures.fp.MB -> grscheller.fp.wo_exception.MB``
245
+ - ``grscheller.datastructures.fp.XOR -> grscheller.fp.wo_exception.XOR``
@@ -0,0 +1,176 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
@@ -0,0 +1,67 @@
1
+ Metadata-Version: 2.4
2
+ Name: pythonic-fp-fptools
3
+ Version: 5.0.0
4
+ Summary: Pythonic FP - Functional Programming Tools
5
+ Keywords: either,fp,functional,functional programming,lazy,maybe,monad,non-strict
6
+ Author-email: "Geoffrey R. Scheller" <geoffrey@scheller.com>
7
+ Requires-Python: >=3.12
8
+ Description-Content-Type: text/x-rst
9
+ Classifier: Development Status :: 4 - Beta
10
+ Classifier: Framework :: Pytest
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Classifier: Typing :: Typed
16
+ License-File: LICENSE
17
+ Requires-Dist: pythonic-fp-circulararray>=5.3.0
18
+ Requires-Dist: pythonic-fp-singletons>=1.0.0
19
+ Requires-Dist: pytest>=8.4.1 ; extra == "test"
20
+ Requires-Dist: pythonic-fp-containers>=3.0.0 ; extra == "test"
21
+ Project-URL: Changelog, https://github.com/grscheller/pythonic-fp-fptools/blob/main/CHANGELOG.rst
22
+ Project-URL: Documentation, https://grscheller.github.io/pythonic-fp/fptools/development/build/html/releases.html
23
+ Project-URL: Homepage, https://github.com/grscheller/pythonic-fp/blob/main/README.md
24
+ Project-URL: Source, https://github.com/grscheller/pythonic-fp-fptools
25
+ Provides-Extra: test
26
+
27
+ Pythonic FP - Functional tools
28
+ ==============================
29
+
30
+ PyPI project
31
+ `pythonic-fp.fptools
32
+ <https://pypi.org/project/pythonic-fp.fptools>`_.
33
+
34
+ Tools to aid with functional programming in Python yet still endeavoring to
35
+ remain Pythonic.
36
+
37
+ - Functions as first class objects
38
+ - Lazy (non-strict) function evaluation
39
+ - Maybe monad - representing a possible missing value
40
+ - Either monad - left bias either monad representing either a LEFT or RIGHT value
41
+ - State monad implementation
42
+
43
+ - pure FP handling of state (the state monad)
44
+ - Classic FP implementation
45
+
46
+ - the monad encapsulates a state transformation, not a "state"
47
+
48
+ This PyPI project is part of of the grscheller
49
+ `pythonic-fp namespace projects
50
+ <https://github.com/grscheller/pythonic-fp/blob/main/README.md>`_
51
+
52
+ **Warning:** The maintainer intends to break out the first, forth and
53
+ fifth modules to their own repos sometime in the near future.
54
+
55
+ Documentation
56
+ -------------
57
+
58
+ Documentation for this project is hosted on
59
+ `GitHub Pages
60
+ <https://grscheller.github.io/pythonic-fp/fptools/development/build/html>`_.
61
+
62
+ Copyright and License
63
+ ---------------------
64
+
65
+ Copyright (c) 2023-2025 Geoffrey R. Scheller. Licensed under the Apache
66
+ License, Version 2.0. See the LICENSE file for details.
67
+
@@ -0,0 +1,40 @@
1
+ Pythonic FP - Functional tools
2
+ ==============================
3
+
4
+ PyPI project
5
+ `pythonic-fp.fptools
6
+ <https://pypi.org/project/pythonic-fp.fptools>`_.
7
+
8
+ Tools to aid with functional programming in Python yet still endeavoring to
9
+ remain Pythonic.
10
+
11
+ - Functions as first class objects
12
+ - Lazy (non-strict) function evaluation
13
+ - Maybe monad - representing a possible missing value
14
+ - Either monad - left bias either monad representing either a LEFT or RIGHT value
15
+ - State monad implementation
16
+
17
+ - pure FP handling of state (the state monad)
18
+ - Classic FP implementation
19
+
20
+ - the monad encapsulates a state transformation, not a "state"
21
+
22
+ This PyPI project is part of of the grscheller
23
+ `pythonic-fp namespace projects
24
+ <https://github.com/grscheller/pythonic-fp/blob/main/README.md>`_
25
+
26
+ **Warning:** The maintainer intends to break out the first, forth and
27
+ fifth modules to their own repos sometime in the near future.
28
+
29
+ Documentation
30
+ -------------
31
+
32
+ Documentation for this project is hosted on
33
+ `GitHub Pages
34
+ <https://grscheller.github.io/pythonic-fp/fptools/development/build/html>`_.
35
+
36
+ Copyright and License
37
+ ---------------------
38
+
39
+ Copyright (c) 2023-2025 Geoffrey R. Scheller. Licensed under the Apache
40
+ License, Version 2.0. See the LICENSE file for details.
@@ -0,0 +1,80 @@
1
+ [build-system]
2
+ requires = ["flit_core>=3.12,<4"]
3
+ build-backend = "flit_core.buildapi"
4
+
5
+ [project]
6
+ name = "pythonic-fp-fptools"
7
+ version = "5.0.0"
8
+ readme = "README.rst"
9
+ requires-python = ">=3.12"
10
+ license = { file = "LICENSE" }
11
+ authors = [{ name = "Geoffrey R. Scheller", email = "geoffrey@scheller.com" }]
12
+ keywords = [
13
+ "either",
14
+ "fp",
15
+ "functional",
16
+ "functional programming",
17
+ "lazy",
18
+ "maybe",
19
+ "monad",
20
+ "non-strict",
21
+ ]
22
+ classifiers = [
23
+ "Development Status :: 4 - Beta",
24
+ "Framework :: Pytest",
25
+ "Intended Audience :: Developers",
26
+ "License :: OSI Approved :: Apache Software License",
27
+ "Operating System :: OS Independent",
28
+ "Programming Language :: Python :: 3.13",
29
+ "Typing :: Typed",
30
+ ]
31
+ dependencies = [
32
+ "pythonic-fp-circulararray>=5.3.0",
33
+ "pythonic-fp-singletons>=1.0.0",
34
+ ]
35
+ dynamic = ["description"]
36
+
37
+ [project.optional-dependencies]
38
+ test = [
39
+ "pytest>=8.4.1",
40
+ "pythonic-fp-containers>=3.0.0",
41
+ ]
42
+
43
+ [project.urls]
44
+ Changelog = "https://github.com/grscheller/pythonic-fp-fptools/blob/main/CHANGELOG.rst"
45
+ Documentation = "https://grscheller.github.io/pythonic-fp/fptools/development/build/html/releases.html"
46
+ Homepage = "https://github.com/grscheller/pythonic-fp/blob/main/README.md"
47
+ Source = "https://github.com/grscheller/pythonic-fp-fptools"
48
+
49
+ [tool.flit.module]
50
+ name = "pythonic_fp.fptools"
51
+
52
+ [tool.mypy]
53
+ enable_incomplete_feature = ["NewGenericSyntax"]
54
+ implicit_reexport = false
55
+ local_partial_types = true
56
+ warn_redundant_casts = true
57
+ warn_return_any = true
58
+ warn_unused_configs = true
59
+
60
+ [tool.pylsp-mypy]
61
+ enabled = true
62
+ live-mode = true
63
+ strict = true
64
+ report_progress = true
65
+
66
+ [tool.pytest.ini_options]
67
+ consider_namespace_packages = true
68
+ testpaths = ["tests/"]
69
+ addopts = "-ra"
70
+
71
+ [tool.ruff]
72
+ target-version = "py313"
73
+ ignore = ["E741"]
74
+
75
+ [tool.ruff.lint.flake8-quotes]
76
+ docstring-quotes = "double"
77
+
78
+ [tool.ruff.format]
79
+ quote-style = "single"
80
+ docstring-code-line-length = 72
@@ -0,0 +1,38 @@
1
+ # Copyright 2023-2025 Geoffrey R. Scheller
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ """Pythonic FP - Functional Programming Tools
16
+
17
+ Functions as first class objects, Lazy (non-strict) function evaluation,
18
+ and classical Functional Programming data structures.
19
+
20
+ +--------------------------+------------------------------+
21
+ | Description | Module |
22
+ +==========================+==============================+
23
+ | Function manipulation | pythonic_fp.fptools.function |
24
+ +--------------------------+------------------------------+
25
+ | Lazy function evaluation | pythonic_fp.fptools.lazy |
26
+ +--------------------------+------------------------------+
27
+ | Maybe monad | pythonic_fp.fptools.maybe |
28
+ +--------------------------+------------------------------+
29
+ | Either monad | pythonic_fp.fptools.either |
30
+ +--------------------------+------------------------------+
31
+ | State monad | pythonic_fp.fptools.state |
32
+ +--------------------------+------------------------------+
33
+
34
+ """
35
+
36
+ __author__ = 'Geoffrey R. Scheller'
37
+ __copyright__ = 'Copyright (c) 2023-2025 Geoffrey R. Scheller'
38
+ __license__ = 'Apache License 2.0'