pyfplib 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (180) hide show
  1. pyfplib-0.1.0/.flake8 +3 -0
  2. pyfplib-0.1.0/.github/workflows/package.yaml +70 -0
  3. pyfplib-0.1.0/.github/workflows/py.yaml +70 -0
  4. pyfplib-0.1.0/.gitignore +163 -0
  5. pyfplib-0.1.0/.pylintrc +2 -0
  6. pyfplib-0.1.0/.vscode/settings.json +10 -0
  7. pyfplib-0.1.0/CHANGELOG.md +49 -0
  8. pyfplib-0.1.0/CHANGELOG.pdf +0 -0
  9. pyfplib-0.1.0/LICENSE +21 -0
  10. pyfplib-0.1.0/Makefile +70 -0
  11. pyfplib-0.1.0/PKG-INFO +67 -0
  12. pyfplib-0.1.0/README.md +44 -0
  13. pyfplib-0.1.0/coverage_html/.gitignore +2 -0
  14. pyfplib-0.1.0/coverage_html/class_index.html +418 -0
  15. pyfplib-0.1.0/coverage_html/coverage_html_cb_dd2e7eb5.js +735 -0
  16. pyfplib-0.1.0/coverage_html/favicon_32_cb_c827f16f.png +0 -0
  17. pyfplib-0.1.0/coverage_html/function_index.html +1378 -0
  18. pyfplib-0.1.0/coverage_html/index.html +227 -0
  19. pyfplib-0.1.0/coverage_html/keybd_closed_cb_900cfef5.png +0 -0
  20. pyfplib-0.1.0/coverage_html/status.json +1 -0
  21. pyfplib-0.1.0/coverage_html/style_cb_9ff733b0.css +389 -0
  22. pyfplib-0.1.0/coverage_html/z_735bbf879e424de3___init___py.html +128 -0
  23. pyfplib-0.1.0/coverage_html/z_735bbf879e424de3_either_py.html +214 -0
  24. pyfplib-0.1.0/coverage_html/z_735bbf879e424de3_errors_py.html +108 -0
  25. pyfplib-0.1.0/coverage_html/z_735bbf879e424de3_functions_py.html +171 -0
  26. pyfplib-0.1.0/coverage_html/z_735bbf879e424de3_iterator_py.html +170 -0
  27. pyfplib-0.1.0/coverage_html/z_735bbf879e424de3_option_py.html +258 -0
  28. pyfplib-0.1.0/coverage_html/z_735bbf879e424de3_result_py.html +262 -0
  29. pyfplib-0.1.0/docs/Makefile +20 -0
  30. pyfplib-0.1.0/docs/make.bat +35 -0
  31. pyfplib-0.1.0/docs/source/conf.py +35 -0
  32. pyfplib-0.1.0/docs/source/index.rst +17 -0
  33. pyfplib-0.1.0/html/pyfplib/either.html +477 -0
  34. pyfplib-0.1.0/html/pyfplib/errors.html +118 -0
  35. pyfplib-0.1.0/html/pyfplib/functions.html +249 -0
  36. pyfplib-0.1.0/html/pyfplib/index.html +1793 -0
  37. pyfplib-0.1.0/html/pyfplib/iterator.html +374 -0
  38. pyfplib-0.1.0/html/pyfplib/option.html +590 -0
  39. pyfplib-0.1.0/html/pyfplib/result.html +661 -0
  40. pyfplib-0.1.0/pyproject.toml +178 -0
  41. pyfplib-0.1.0/requests/.coveragerc +2 -0
  42. pyfplib-0.1.0/requests/.git-blame-ignore-revs +5 -0
  43. pyfplib-0.1.0/requests/.github/CODE_OF_CONDUCT.md +6 -0
  44. pyfplib-0.1.0/requests/.github/CONTRIBUTING.md +54 -0
  45. pyfplib-0.1.0/requests/.github/FUNDING.yml +1 -0
  46. pyfplib-0.1.0/requests/.github/ISSUE_TEMPLATE/Bug_report.md +36 -0
  47. pyfplib-0.1.0/requests/.github/ISSUE_TEMPLATE/Custom.md +10 -0
  48. pyfplib-0.1.0/requests/.github/ISSUE_TEMPLATE/Feature_request.md +10 -0
  49. pyfplib-0.1.0/requests/.github/ISSUE_TEMPLATE.md +28 -0
  50. pyfplib-0.1.0/requests/.github/SECURITY.md +84 -0
  51. pyfplib-0.1.0/requests/.github/dependabot.yml +11 -0
  52. pyfplib-0.1.0/requests/.github/workflows/close-issues.yml +35 -0
  53. pyfplib-0.1.0/requests/.github/workflows/codeql-analysis.yml +73 -0
  54. pyfplib-0.1.0/requests/.github/workflows/lint.yml +20 -0
  55. pyfplib-0.1.0/requests/.github/workflows/lock-issues.yml +19 -0
  56. pyfplib-0.1.0/requests/.github/workflows/publish.yml +93 -0
  57. pyfplib-0.1.0/requests/.github/workflows/run-tests.yml +75 -0
  58. pyfplib-0.1.0/requests/.gitignore +37 -0
  59. pyfplib-0.1.0/requests/.pre-commit-config.yaml +16 -0
  60. pyfplib-0.1.0/requests/.readthedocs.yaml +29 -0
  61. pyfplib-0.1.0/requests/AUTHORS.rst +195 -0
  62. pyfplib-0.1.0/requests/HISTORY.md +2012 -0
  63. pyfplib-0.1.0/requests/LICENSE +175 -0
  64. pyfplib-0.1.0/requests/MANIFEST.in +3 -0
  65. pyfplib-0.1.0/requests/Makefile +27 -0
  66. pyfplib-0.1.0/requests/NOTICE +2 -0
  67. pyfplib-0.1.0/requests/README.md +78 -0
  68. pyfplib-0.1.0/requests/docs/.nojekyll +1 -0
  69. pyfplib-0.1.0/requests/docs/Makefile +216 -0
  70. pyfplib-0.1.0/requests/docs/_static/custom.css +177 -0
  71. pyfplib-0.1.0/requests/docs/_static/requests-sidebar.png +0 -0
  72. pyfplib-0.1.0/requests/docs/_templates/hacks.html +80 -0
  73. pyfplib-0.1.0/requests/docs/_templates/sidebarintro.html +37 -0
  74. pyfplib-0.1.0/requests/docs/_templates/sidebarlogo.html +30 -0
  75. pyfplib-0.1.0/requests/docs/_themes/.gitignore +3 -0
  76. pyfplib-0.1.0/requests/docs/_themes/LICENSE +45 -0
  77. pyfplib-0.1.0/requests/docs/_themes/flask_theme_support.py +86 -0
  78. pyfplib-0.1.0/requests/docs/api.rst +260 -0
  79. pyfplib-0.1.0/requests/docs/community/faq.rst +90 -0
  80. pyfplib-0.1.0/requests/docs/community/out-there.rst +10 -0
  81. pyfplib-0.1.0/requests/docs/community/recommended.rst +62 -0
  82. pyfplib-0.1.0/requests/docs/community/release-process.rst +53 -0
  83. pyfplib-0.1.0/requests/docs/community/support.rst +31 -0
  84. pyfplib-0.1.0/requests/docs/community/updates.rst +18 -0
  85. pyfplib-0.1.0/requests/docs/community/vulnerabilities.rst +5 -0
  86. pyfplib-0.1.0/requests/docs/conf.py +386 -0
  87. pyfplib-0.1.0/requests/docs/dev/authors.rst +4 -0
  88. pyfplib-0.1.0/requests/docs/dev/contributing.rst +165 -0
  89. pyfplib-0.1.0/requests/docs/index.rst +140 -0
  90. pyfplib-0.1.0/requests/docs/make.bat +263 -0
  91. pyfplib-0.1.0/requests/docs/requirements.txt +3 -0
  92. pyfplib-0.1.0/requests/docs/user/advanced.rst +1138 -0
  93. pyfplib-0.1.0/requests/docs/user/authentication.rst +155 -0
  94. pyfplib-0.1.0/requests/docs/user/install.rst +36 -0
  95. pyfplib-0.1.0/requests/docs/user/quickstart.rst +571 -0
  96. pyfplib-0.1.0/requests/ext/LICENSE +1 -0
  97. pyfplib-0.1.0/requests/ext/flower-of-life.jpg +0 -0
  98. pyfplib-0.1.0/requests/ext/kr-compressed.png +0 -0
  99. pyfplib-0.1.0/requests/ext/kr.png +0 -0
  100. pyfplib-0.1.0/requests/ext/psf-compressed.png +0 -0
  101. pyfplib-0.1.0/requests/ext/psf.png +0 -0
  102. pyfplib-0.1.0/requests/ext/requests-logo-compressed.png +0 -0
  103. pyfplib-0.1.0/requests/ext/requests-logo.ai +8746 -30
  104. pyfplib-0.1.0/requests/ext/requests-logo.png +0 -0
  105. pyfplib-0.1.0/requests/ext/requests-logo.svg +1 -0
  106. pyfplib-0.1.0/requests/ext/ss-compressed.png +0 -0
  107. pyfplib-0.1.0/requests/ext/ss.png +0 -0
  108. pyfplib-0.1.0/requests/pyproject.toml +104 -0
  109. pyfplib-0.1.0/requests/requirements-dev.txt +7 -0
  110. pyfplib-0.1.0/requests/setup.py +9 -0
  111. pyfplib-0.1.0/requests/src/requests/__init__.py +183 -0
  112. pyfplib-0.1.0/requests/src/requests/__version__.py +14 -0
  113. pyfplib-0.1.0/requests/src/requests/_internal_utils.py +51 -0
  114. pyfplib-0.1.0/requests/src/requests/adapters.py +698 -0
  115. pyfplib-0.1.0/requests/src/requests/api.py +157 -0
  116. pyfplib-0.1.0/requests/src/requests/auth.py +314 -0
  117. pyfplib-0.1.0/requests/src/requests/certs.py +18 -0
  118. pyfplib-0.1.0/requests/src/requests/compat.py +106 -0
  119. pyfplib-0.1.0/requests/src/requests/cookies.py +561 -0
  120. pyfplib-0.1.0/requests/src/requests/exceptions.py +152 -0
  121. pyfplib-0.1.0/requests/src/requests/help.py +131 -0
  122. pyfplib-0.1.0/requests/src/requests/hooks.py +34 -0
  123. pyfplib-0.1.0/requests/src/requests/models.py +1041 -0
  124. pyfplib-0.1.0/requests/src/requests/packages.py +23 -0
  125. pyfplib-0.1.0/requests/src/requests/sessions.py +832 -0
  126. pyfplib-0.1.0/requests/src/requests/status_codes.py +128 -0
  127. pyfplib-0.1.0/requests/src/requests/structures.py +99 -0
  128. pyfplib-0.1.0/requests/src/requests/utils.py +1084 -0
  129. pyfplib-0.1.0/requests/tests/__init__.py +14 -0
  130. pyfplib-0.1.0/requests/tests/certs/README.md +10 -0
  131. pyfplib-0.1.0/requests/tests/certs/expired/Makefile +13 -0
  132. pyfplib-0.1.0/requests/tests/certs/expired/README.md +11 -0
  133. pyfplib-0.1.0/requests/tests/certs/expired/ca/Makefile +13 -0
  134. pyfplib-0.1.0/requests/tests/certs/expired/ca/ca-private.key +28 -0
  135. pyfplib-0.1.0/requests/tests/certs/expired/ca/ca.cnf +17 -0
  136. pyfplib-0.1.0/requests/tests/certs/expired/ca/ca.crt +22 -0
  137. pyfplib-0.1.0/requests/tests/certs/expired/ca/ca.srl +1 -0
  138. pyfplib-0.1.0/requests/tests/certs/expired/server/Makefile +16 -0
  139. pyfplib-0.1.0/requests/tests/certs/expired/server/cert.cnf +24 -0
  140. pyfplib-0.1.0/requests/tests/certs/expired/server/server.csr +19 -0
  141. pyfplib-0.1.0/requests/tests/certs/expired/server/server.key +28 -0
  142. pyfplib-0.1.0/requests/tests/certs/expired/server/server.pem +44 -0
  143. pyfplib-0.1.0/requests/tests/certs/mtls/Makefile +7 -0
  144. pyfplib-0.1.0/requests/tests/certs/mtls/README.md +4 -0
  145. pyfplib-0.1.0/requests/tests/certs/mtls/client/Makefile +16 -0
  146. pyfplib-0.1.0/requests/tests/certs/mtls/client/cert.cnf +26 -0
  147. pyfplib-0.1.0/requests/tests/certs/mtls/client/client.csr +24 -0
  148. pyfplib-0.1.0/requests/tests/certs/mtls/client/client.key +28 -0
  149. pyfplib-0.1.0/requests/tests/certs/mtls/client/client.pem +44 -0
  150. pyfplib-0.1.0/requests/tests/certs/valid/server/Makefile +16 -0
  151. pyfplib-0.1.0/requests/tests/certs/valid/server/cert.cnf +31 -0
  152. pyfplib-0.1.0/requests/tests/certs/valid/server/server.csr +19 -0
  153. pyfplib-0.1.0/requests/tests/certs/valid/server/server.key +28 -0
  154. pyfplib-0.1.0/requests/tests/certs/valid/server/server.pem +46 -0
  155. pyfplib-0.1.0/requests/tests/compat.py +23 -0
  156. pyfplib-0.1.0/requests/tests/conftest.py +58 -0
  157. pyfplib-0.1.0/requests/tests/test_adapters.py +8 -0
  158. pyfplib-0.1.0/requests/tests/test_help.py +27 -0
  159. pyfplib-0.1.0/requests/tests/test_hooks.py +22 -0
  160. pyfplib-0.1.0/requests/tests/test_lowlevel.py +428 -0
  161. pyfplib-0.1.0/requests/tests/test_packages.py +13 -0
  162. pyfplib-0.1.0/requests/tests/test_requests.py +3039 -0
  163. pyfplib-0.1.0/requests/tests/test_structures.py +78 -0
  164. pyfplib-0.1.0/requests/tests/test_testserver.py +165 -0
  165. pyfplib-0.1.0/requests/tests/test_utils.py +977 -0
  166. pyfplib-0.1.0/requests/tests/testserver/__init__.py +0 -0
  167. pyfplib-0.1.0/requests/tests/testserver/server.py +176 -0
  168. pyfplib-0.1.0/requests/tests/utils.py +17 -0
  169. pyfplib-0.1.0/requests/tox.ini +18 -0
  170. pyfplib-0.1.0/requirements/dev.txt +21 -0
  171. pyfplib-0.1.0/src/pyfplib/__about__.py +4 -0
  172. pyfplib-0.1.0/src/pyfplib/__init__.py +29 -0
  173. pyfplib-0.1.0/src/pyfplib/either.py +115 -0
  174. pyfplib-0.1.0/src/pyfplib/errors.py +9 -0
  175. pyfplib-0.1.0/src/pyfplib/functions.py +72 -0
  176. pyfplib-0.1.0/src/pyfplib/iterator.py +70 -0
  177. pyfplib-0.1.0/src/pyfplib/option.py +159 -0
  178. pyfplib-0.1.0/src/pyfplib/result.py +163 -0
  179. pyfplib-0.1.0/tests/option/test_option.py +98 -0
  180. pyfplib-0.1.0/tests/result/test_result.py +18 -0
pyfplib-0.1.0/.flake8 ADDED
@@ -0,0 +1,3 @@
1
+ [flake8]
2
+ per-file-ignores =
3
+ */__init__.py: F401
@@ -0,0 +1,70 @@
1
+ # This workflow will upload a Python Package to PyPI when a release is created
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3
+
4
+ # This workflow uses actions that are not certified by GitHub.
5
+ # They are provided by a third-party and are governed by
6
+ # separate terms of service, privacy policy, and support
7
+ # documentation.
8
+
9
+ name: Upload Python Package
10
+
11
+ on:
12
+ release:
13
+ types: [published]
14
+
15
+ permissions:
16
+ contents: read
17
+
18
+ jobs:
19
+ release-build:
20
+ runs-on: ubuntu-latest
21
+
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+
25
+ - uses: actions/setup-python@v5
26
+ with:
27
+ python-version: "3.x"
28
+
29
+ - name: Build release distributions
30
+ run: |
31
+ # NOTE: put your own distribution build steps here.
32
+ python -m pip install build
33
+ python -m build
34
+
35
+ - name: Upload distributions
36
+ uses: actions/upload-artifact@v4
37
+ with:
38
+ name: release-dists
39
+ path: dist/
40
+
41
+ pypi-publish:
42
+ runs-on: ubuntu-latest
43
+ needs:
44
+ - release-build
45
+ permissions:
46
+ # IMPORTANT: this permission is mandatory for trusted publishing
47
+ id-token: write
48
+
49
+ # Dedicated environments with protections for publishing are strongly recommended.
50
+ # For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
51
+ environment:
52
+ name: pypi
53
+ # OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
54
+ # url: https://pypi.org/p/YOURPROJECT
55
+ #
56
+ # ALTERNATIVE: if your GitHub Release name is the PyPI project version string
57
+ # ALTERNATIVE: exactly, uncomment the following line instead:
58
+ # url: https://pypi.org/project/YOURPROJECT/${{ github.event.release.name }}
59
+
60
+ steps:
61
+ - name: Retrieve release distributions
62
+ uses: actions/download-artifact@v4
63
+ with:
64
+ name: release-dists
65
+ path: dist/
66
+
67
+ - name: Publish release distributions to PyPI
68
+ uses: pypa/gh-action-pypi-publish@release/v1
69
+ with:
70
+ packages-dir: dist/
@@ -0,0 +1,70 @@
1
+ # This workflow will upload a Python Package to PyPI when a release is created
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3
+
4
+ # This workflow uses actions that are not certified by GitHub.
5
+ # They are provided by a third-party and are governed by
6
+ # separate terms of service, privacy policy, and support
7
+ # documentation.
8
+
9
+ name: Upload Python Package
10
+
11
+ on:
12
+ release:
13
+ types: [published]
14
+
15
+ permissions:
16
+ contents: read
17
+
18
+ jobs:
19
+ release-build:
20
+ runs-on: ubuntu-latest
21
+
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+
25
+ - uses: actions/setup-python@v5
26
+ with:
27
+ python-version: "3.x"
28
+
29
+ - name: Build release distributions
30
+ run: |
31
+ # NOTE: put your own distribution build steps here.
32
+ python -m pip install build
33
+ python -m build
34
+
35
+ - name: Upload distributions
36
+ uses: actions/upload-artifact@v4
37
+ with:
38
+ name: release-dists
39
+ path: dist/
40
+
41
+ pypi-publish:
42
+ runs-on: ubuntu-latest
43
+ needs:
44
+ - release-build
45
+ permissions:
46
+ # IMPORTANT: this permission is mandatory for trusted publishing
47
+ id-token: write
48
+
49
+ # Dedicated environments with protections for publishing are strongly recommended.
50
+ # For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
51
+ environment:
52
+ name: pypi
53
+ # OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
54
+ # url: https://pypi.org/p/YOURPROJECT
55
+ #
56
+ # ALTERNATIVE: if your GitHub Release name is the PyPI project version string
57
+ # ALTERNATIVE: exactly, uncomment the following line instead:
58
+ # url: https://pypi.org/project/YOURPROJECT/${{ github.event.release.name }}
59
+
60
+ steps:
61
+ - name: Retrieve release distributions
62
+ uses: actions/download-artifact@v4
63
+ with:
64
+ name: release-dists
65
+ path: dist/
66
+
67
+ - name: Publish release distributions to PyPI
68
+ uses: pypa/gh-action-pypi-publish@release/v1
69
+ with:
70
+ packages-dir: dist/
@@ -0,0 +1,163 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # poetry
98
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102
+ #poetry.lock
103
+
104
+ # pdm
105
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106
+ #pdm.lock
107
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108
+ # in version control.
109
+ # https://pdm.fming.dev/#use-with-ide
110
+ .pdm.toml
111
+
112
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
113
+ __pypackages__/
114
+
115
+ # Celery stuff
116
+ celerybeat-schedule
117
+ celerybeat.pid
118
+
119
+ # SageMath parsed files
120
+ *.sage.py
121
+
122
+ # Environments
123
+ .env
124
+ .venv
125
+ env/
126
+ venv/
127
+ ENV/
128
+ env.bak/
129
+ venv.bak/
130
+
131
+ # Spyder project settings
132
+ .spyderproject
133
+ .spyproject
134
+
135
+ # Rope project settings
136
+ .ropeproject
137
+
138
+ # mkdocs documentation
139
+ /site
140
+
141
+ # mypy
142
+ .mypy_cache/
143
+ .dmypy.json
144
+ dmypy.json
145
+
146
+ # Pyre type checker
147
+ .pyre/
148
+
149
+ # pytype static type analyzer
150
+ .pytype/
151
+
152
+ # Cython debug symbols
153
+ cython_debug/
154
+
155
+ # PyCharm
156
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
157
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
159
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
160
+ #.idea/
161
+
162
+ *venv*
163
+ dist
@@ -0,0 +1,2 @@
1
+ [MASTER]
2
+ init-hook = "import os, sys; sys.path.append(os.path.abspath('../pyfplib'))"
@@ -0,0 +1,10 @@
1
+ {
2
+ "python.testing.pytestArgs": ["tests"],
3
+ "python.testing.unittestEnabled": false,
4
+ "python.testing.pytestEnabled": true,
5
+ "[python]": {
6
+ "editor.formatOnSave": true,
7
+ "editor.defaultFormatter": "charliermarsh.ruff"
8
+ },
9
+ "cSpell.words": ["pyfplib"]
10
+ }
@@ -0,0 +1,49 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ <!-- ignore lint rules that are often triggered by content generated from commits / git-cliff -->
6
+ <!-- markdownlint-disable line-length no-bare-urls ul-style emphasis-style -->
7
+
8
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
9
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
10
+
11
+ <!--
12
+ ## How do I make a good changelog?
13
+ Guiding Principles
14
+
15
+ - Changelogs are for humans, not machines.
16
+ - There should be an entry for every single version.
17
+ - The same types of changes should be grouped.
18
+ - Versions and sections should be linkable.
19
+ - The latest version comes first.
20
+ - The release date of each version is displayed.
21
+ - Mention whether you follow Semantic Versioning.
22
+
23
+ Types of changes
24
+
25
+ - Added for new features.
26
+ - Changed for changes in existing functionality.
27
+ - Deprecated for soon-to-be removed features.
28
+ - Removed for now removed features.
29
+ - Fixed for any bug fixes.
30
+ - Security in case of vulnerabilities.
31
+ -->
32
+
33
+
34
+ ## [Unreleased]
35
+
36
+ - v0.2 `Iterator`
37
+ - v0.2 Documentation
38
+
39
+ ## [0.1.0] - 2026-02-02
40
+
41
+ ### Added
42
+
43
+ - Result monad.
44
+ - Option monad.
45
+
46
+
47
+ ```plantuml
48
+ Alice -> Bob
49
+ ```
Binary file
pyfplib-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 comet11x
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.
pyfplib-0.1.0/Makefile ADDED
@@ -0,0 +1,70 @@
1
+ SHELL = /bin/bash
2
+ PYVERSION = 3.14
3
+ PWD = $(shell pwd)
4
+ ROOT_DIR = $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
5
+ PKG_NAME = pyfplib
6
+ BIN_DIR = $(ROOT_DIR)/bin
7
+ SRC_DIR = $(ROOT_DIR)/src/$(PKG_NAME)
8
+ PKG_DIR = $(SRC_DIR)
9
+ MAIN_FILE = pyfplib.py
10
+ ENTRY_POINT = $(SRC_DIR)/$(MAIN_FILE)
11
+ TEST_DIR = $(ROOT_DIR)/tests
12
+ EXCLUDED_TEST_DIRS = $(TEST_DIR)/excluded
13
+ COVERAGE_REPORT_HTML = coverage_html
14
+ VENV_FILE = .venv
15
+ VENV_SUFFIX = _venv
16
+ VENV_DEFAULT_NAME = $(PKG_NAME)$(VENV_SUFFIX)
17
+ VENV_NAME := $(shell test -s $(VENV_FILE) && cat $(VENV_FILE) || echo $(VENV_DEFAULT_NAME))
18
+ VENV_DIR = $(ROOT_DIR)/$(VENV_NAME)
19
+ VENV_ACTIVATE = $(VENV_DIR)/bin/activate
20
+ DEV_REQUIREMENT = $(ROOT_DIR)/requirements/dev.txt
21
+ PROD_REQUIREMENT = $(ROOT_DIR)/requirements.txt
22
+ EXCLUDED_DIRS =
23
+
24
+ run_flake8:
25
+ source $(VENV_ACTIVATE) && PYTHONPATH=$(ROOT_DIR) flake8 --exclude=$(EXCLUDED_DIRS) tests $(PKG_DIR)
26
+
27
+ run_pylint:
28
+ source $(VENV_ACTIVATE) && PYTHONPATH=$(ROOT_DIR) pylint --output-format=colorized $(PKG_DIR)
29
+
30
+ run_black:
31
+ source $(VENV_ACTIVATE) && PYTHONPATH=$(ROOT_DIR) black --check $(TEST_DIR) $(PKG_DIR)
32
+
33
+ run_lint: run_flake8 run_black run_pylint
34
+
35
+ run_type_checking:
36
+ source $(VENV_ACTIVATE) && PYTHONPATH=$(ROOT_DIR) mypy --python-version=$(PYVERSION) $(SRC_DIR)
37
+
38
+ run_tests:
39
+ source $(VENV_ACTIVATE) && MODE="UNIT" PYTHONPATH=$(ROOT_DIR) pytest -s -v $(TEST_DIR)/$(FILE) --ignore=$(EXCLUDED_TEST_DIRS)
40
+
41
+ watch_test_files:
42
+ source $(VENV_ACTIVATE) && MODE="UNIT" PYTHONPATH=$(ROOT_DIR) $(PYTHON) ./bin/watch_test_files.py
43
+
44
+ show_coverage:
45
+ source $(VENV_ACTIVATE) && PYTHONPATH=$(ROOT_DIR) pytest --cov=$(PKG_NAME) --cov-report term-missing
46
+
47
+ show_coverage_as_html:
48
+ source $(VENV_ACTIVATE) && PYTHONPATH=$(ROOT_DIR) pytest --cov=$(PKG_NAME) --cov-report=html
49
+ rm -rf $(COVERAGE_REPORT_HTML)
50
+ mv htmlcov $(COVERAGE_REPORT_HTML)
51
+ cd $(COVERAGE_REPORT_HTML) && $(PYTHON) -m http.server 0
52
+
53
+ install_virtualenv:
54
+ $(PYTHON) -m pip install virtualenv
55
+
56
+ --make_virtualenv: install_virtualenv
57
+ if [[ ! -d $(VENV_DIR) ]]; then \
58
+ virtualenv $(VENV_NAME); \
59
+ fi
60
+
61
+ install_dev_requirements: --make_virtualenv
62
+ $(VENV_DIR)/bin/pip install --upgrade pip
63
+ $(VENV_DIR)/bin/pip install -r $(DEV_REQUIREMENT)
64
+
65
+ run_checks:
66
+ black --check $(SRC_DIR)
67
+ flake8 $(SRC_DIR)
68
+ mypy $(SRC_DIR)
69
+ ruff check $(SRC_DIR)
70
+ CUDA_VISIBLE_DEVICES='' pytest -v --color=yes --doctest-modules $(TEST_DIR) $(SRC_DIR)
pyfplib-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,67 @@
1
+ Metadata-Version: 2.4
2
+ Name: pyfplib
3
+ Version: 0.1.0
4
+ Summary: A functional programming library for Python
5
+ Project-URL: Documentation, https://github.com/Comet11x/pyfplib/blob/main/README.md
6
+ Project-URL: Issues, https://github.com/Comet11x/pyfplib/issues
7
+ Project-URL: Source, https://github.com/Comet11x/pyfplib
8
+ Author-email: comet11x <comet11x@protonmail.com>
9
+ License-Expression: MIT
10
+ License-File: LICENSE
11
+ Keywords: algorithm,fp,function-library,functional-programming,monad,option,option-monad,result,result-monad
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Programming Language :: Python
14
+ Classifier: Programming Language :: Python :: 3.8
15
+ Classifier: Programming Language :: Python :: 3.9
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: Implementation :: CPython
20
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
21
+ Requires-Python: >=3.8
22
+ Description-Content-Type: text/markdown
23
+
24
+ # PyFPLib
25
+
26
+ PyFPLib is a tiny Rust-inspired functional programming library for Python.
27
+ It can serve as a basis for monadic computations in your Python code.
28
+
29
+ ## Installation
30
+
31
+ ```shell
32
+ pip install -U pyfplib
33
+ ```
34
+
35
+ ## Usage
36
+
37
+ ```python
38
+ import pyfplib
39
+ ```
40
+
41
+ ### Functions
42
+
43
+
44
+
45
+ ###
46
+
47
+
48
+ ## Development
49
+
50
+ Firstly, you should to install [virtualenv](https://pypi.org/project/virtualenv/):
51
+
52
+ ```shell
53
+ pip install virtualenv
54
+ ```
55
+
56
+ Also you need to install [make](https://www.gnu.org/software/make/).
57
+ You may use a package manager of your operating system for it.
58
+ For example, if you use Debian-based distributions, you can use `apt`:
59
+
60
+ ```shell
61
+ su -c "apt install make"
62
+ ```
63
+
64
+ I
65
+ License
66
+
67
+ PyFpLib is distributed under the terms of the MIT license.
@@ -0,0 +1,44 @@
1
+ # PyFPLib
2
+
3
+ PyFPLib is a tiny Rust-inspired functional programming library for Python.
4
+ It can serve as a basis for monadic computations in your Python code.
5
+
6
+ ## Installation
7
+
8
+ ```shell
9
+ pip install -U pyfplib
10
+ ```
11
+
12
+ ## Usage
13
+
14
+ ```python
15
+ import pyfplib
16
+ ```
17
+
18
+ ### Functions
19
+
20
+
21
+
22
+ ###
23
+
24
+
25
+ ## Development
26
+
27
+ Firstly, you should to install [virtualenv](https://pypi.org/project/virtualenv/):
28
+
29
+ ```shell
30
+ pip install virtualenv
31
+ ```
32
+
33
+ Also you need to install [make](https://www.gnu.org/software/make/).
34
+ You may use a package manager of your operating system for it.
35
+ For example, if you use Debian-based distributions, you can use `apt`:
36
+
37
+ ```shell
38
+ su -c "apt install make"
39
+ ```
40
+
41
+ I
42
+ License
43
+
44
+ PyFpLib is distributed under the terms of the MIT license.
@@ -0,0 +1,2 @@
1
+ # Created by coverage.py
2
+ *