trcks 0.2.2__tar.gz → 0.2.4__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.
- trcks-0.2.4/.gitignore +22 -0
- {trcks-0.2.2 → trcks-0.2.4}/PKG-INFO +9 -10
- {trcks-0.2.2 → trcks-0.2.4}/pyproject.toml +8 -5
- {trcks-0.2.2 → trcks-0.2.4}/src/trcks/oop.py +7 -1
- {trcks-0.2.2 → trcks-0.2.4}/LICENSE +0 -0
- {trcks-0.2.2 → trcks-0.2.4}/README.md +0 -0
- {trcks-0.2.2 → trcks-0.2.4}/src/trcks/__init__.py +0 -0
- {trcks-0.2.2 → trcks-0.2.4}/src/trcks/_typing.py +0 -0
- {trcks-0.2.2 → trcks-0.2.4}/src/trcks/fp/__init__.py +0 -0
- {trcks-0.2.2 → trcks-0.2.4}/src/trcks/fp/composition.py +0 -0
- {trcks-0.2.2 → trcks-0.2.4}/src/trcks/fp/monads/__init__.py +0 -0
- {trcks-0.2.2 → trcks-0.2.4}/src/trcks/fp/monads/awaitable.py +0 -0
- {trcks-0.2.2 → trcks-0.2.4}/src/trcks/fp/monads/awaitable_result.py +0 -0
- {trcks-0.2.2 → trcks-0.2.4}/src/trcks/fp/monads/result.py +0 -0
- {trcks-0.2.2 → trcks-0.2.4}/src/trcks/py.typed +0 -0
trcks-0.2.4/.gitignore
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# PyCharm-generated files
|
|
2
|
+
/.idea/
|
|
3
|
+
|
|
4
|
+
# pydoctor-generated files
|
|
5
|
+
/apidocs/
|
|
6
|
+
|
|
7
|
+
# pytest-generated files
|
|
8
|
+
.coverage
|
|
9
|
+
|
|
10
|
+
# Python-generated files
|
|
11
|
+
__pycache__/
|
|
12
|
+
*.py[oc]
|
|
13
|
+
build/
|
|
14
|
+
dist/
|
|
15
|
+
wheels/
|
|
16
|
+
*.egg-info
|
|
17
|
+
|
|
18
|
+
# Virtual environments
|
|
19
|
+
.venv/
|
|
20
|
+
|
|
21
|
+
# macOS-generated files
|
|
22
|
+
.DS_Store
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: trcks
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: Typesafe railway-oriented programming (ROP)
|
|
5
|
-
|
|
5
|
+
Project-URL: Documentation, https://christophgietl.github.io/trcks/
|
|
6
|
+
Project-URL: Issues, https://github.com/christophgietl/trcks/issues
|
|
7
|
+
Project-URL: Repository, https://github.com/christophgietl/trcks.git
|
|
6
8
|
Author: Christoph Gietl
|
|
7
9
|
Maintainer: Christoph Gietl
|
|
8
|
-
Requires-Python: >=3.9
|
|
9
|
-
Description-Content-Type: text/markdown
|
|
10
10
|
License-Expression: MIT
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Keywords: composition,control flow,error handling,fp,functional programming,monad,object-oriented programming,oop,pipeline,railway-oriented programming,result type,rop,static typing,type safety
|
|
11
13
|
Classifier: Development Status :: 3 - Alpha
|
|
12
14
|
Classifier: Intended Audience :: Developers
|
|
13
15
|
Classifier: Operating System :: OS Independent
|
|
@@ -21,11 +23,9 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
21
23
|
Classifier: Programming Language :: Python :: 3.13
|
|
22
24
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
23
25
|
Classifier: Typing :: Typed
|
|
24
|
-
|
|
25
|
-
Requires-Dist: typing-extensions
|
|
26
|
-
|
|
27
|
-
Project-URL: Issues, https://github.com/christophgietl/trcks/issues
|
|
28
|
-
Project-URL: Repository, https://github.com/christophgietl/trcks.git
|
|
26
|
+
Requires-Python: >=3.9
|
|
27
|
+
Requires-Dist: typing-extensions>=4.12; python_full_version < '3.13'
|
|
28
|
+
Description-Content-Type: text/markdown
|
|
29
29
|
|
|
30
30
|
# trcks 🛤️🛤️
|
|
31
31
|
|
|
@@ -1039,4 +1039,3 @@ An `AsyncResult` type based on `collections.abc.AsyncGenerator`
|
|
|
1039
1039
|
`trcks` is mostly inspired
|
|
1040
1040
|
by the Python libraries mentioned in the previous section and
|
|
1041
1041
|
by the TypeScript library [fp-ts](https://www.npmjs.com/package/fp-ts).
|
|
1042
|
-
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
[build-system]
|
|
2
|
-
build-backend = "
|
|
3
|
-
requires = ["
|
|
2
|
+
build-backend = "hatchling.build"
|
|
3
|
+
requires = ["hatchling>=1.27,<2"]
|
|
4
4
|
|
|
5
5
|
[dependency-groups]
|
|
6
6
|
dev = [
|
|
7
|
-
"mypy==1.16.
|
|
7
|
+
"mypy==1.16.1",
|
|
8
8
|
"pre-commit==4.2.0",
|
|
9
9
|
"pydoctor==25.4.0",
|
|
10
10
|
"pyright[nodejs]==1.1.402",
|
|
11
|
-
"pytest==8.4.
|
|
11
|
+
"pytest==8.4.1",
|
|
12
12
|
"pytest-asyncio==1.0.0",
|
|
13
13
|
"pytest-cov==6.2.1",
|
|
14
14
|
"pytest-doctestplus==1.4.0",
|
|
@@ -57,13 +57,16 @@ maintainers = [{ name = "Christoph Gietl" }]
|
|
|
57
57
|
name = "trcks"
|
|
58
58
|
readme = "README.md"
|
|
59
59
|
requires-python = ">=3.9"
|
|
60
|
-
version = "0.2.
|
|
60
|
+
version = "0.2.4"
|
|
61
61
|
|
|
62
62
|
[project.urls]
|
|
63
63
|
Documentation = "https://christophgietl.github.io/trcks/"
|
|
64
64
|
Issues = "https://github.com/christophgietl/trcks/issues"
|
|
65
65
|
Repository = "https://github.com/christophgietl/trcks.git"
|
|
66
66
|
|
|
67
|
+
[tool.hatch.build.targets.sdist]
|
|
68
|
+
include = ["src/"]
|
|
69
|
+
|
|
67
70
|
[tool.mypy]
|
|
68
71
|
disallow_any_decorated = true
|
|
69
72
|
disallow_any_explicit = true
|
|
@@ -97,7 +97,13 @@ _S_default_co = TypeVar("_S_default_co", covariant=True, default=Never)
|
|
|
97
97
|
|
|
98
98
|
|
|
99
99
|
class _Wrapper(Generic[_T_co]):
|
|
100
|
-
"""Base class for all wrappers in the `trcks.oop` module.
|
|
100
|
+
"""Base class for all wrappers in the `trcks.oop` module.
|
|
101
|
+
|
|
102
|
+
Attributes:
|
|
103
|
+
__slots__: Attribute names to be used.
|
|
104
|
+
"""
|
|
105
|
+
|
|
106
|
+
__slots__ = ("_core",)
|
|
101
107
|
|
|
102
108
|
_core: _T_co
|
|
103
109
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|