runsheet 0.1.2__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 (42) hide show
  1. runsheet-0.1.2/.github/workflows/ci.yml +23 -0
  2. runsheet-0.1.2/.github/workflows/release.yml +35 -0
  3. runsheet-0.1.2/.gitignore +26 -0
  4. runsheet-0.1.2/.pre-commit-config.yaml +34 -0
  5. runsheet-0.1.2/.python-version +1 -0
  6. runsheet-0.1.2/.release-please-manifest.json +3 -0
  7. runsheet-0.1.2/CHANGELOG.md +28 -0
  8. runsheet-0.1.2/CONTRIBUTING.md +48 -0
  9. runsheet-0.1.2/LICENSE +21 -0
  10. runsheet-0.1.2/NOTES.md +1485 -0
  11. runsheet-0.1.2/PKG-INFO +528 -0
  12. runsheet-0.1.2/README.md +494 -0
  13. runsheet-0.1.2/SECURITY.md +15 -0
  14. runsheet-0.1.2/llms.txt +223 -0
  15. runsheet-0.1.2/pyproject.toml +100 -0
  16. runsheet-0.1.2/release-please-config.json +18 -0
  17. runsheet-0.1.2/src/runsheet/__init__.py +80 -0
  18. runsheet-0.1.2/src/runsheet/_collections.py +255 -0
  19. runsheet-0.1.2/src/runsheet/_combinators.py +269 -0
  20. runsheet-0.1.2/src/runsheet/_errors.py +110 -0
  21. runsheet-0.1.2/src/runsheet/_internal.py +137 -0
  22. runsheet-0.1.2/src/runsheet/_middleware.py +55 -0
  23. runsheet-0.1.2/src/runsheet/_pipeline.py +227 -0
  24. runsheet-0.1.2/src/runsheet/_result.py +127 -0
  25. runsheet-0.1.2/src/runsheet/_rollback.py +44 -0
  26. runsheet-0.1.2/src/runsheet/_step.py +297 -0
  27. runsheet-0.1.2/src/runsheet/py.typed +0 -0
  28. runsheet-0.1.2/tests/__init__.py +0 -0
  29. runsheet-0.1.2/tests/test_choice.py +182 -0
  30. runsheet-0.1.2/tests/test_errors.py +93 -0
  31. runsheet-0.1.2/tests/test_filter.py +123 -0
  32. runsheet-0.1.2/tests/test_flat_map.py +103 -0
  33. runsheet-0.1.2/tests/test_map.py +136 -0
  34. runsheet-0.1.2/tests/test_middleware.py +187 -0
  35. runsheet-0.1.2/tests/test_parallel.py +158 -0
  36. runsheet-0.1.2/tests/test_pipeline.py +470 -0
  37. runsheet-0.1.2/tests/test_reentrancy.py +322 -0
  38. runsheet-0.1.2/tests/test_result.py +139 -0
  39. runsheet-0.1.2/tests/test_rollback.py +162 -0
  40. runsheet-0.1.2/tests/test_step.py +186 -0
  41. runsheet-0.1.2/tests/test_when.py +142 -0
  42. runsheet-0.1.2/uv.lock +630 -0
@@ -0,0 +1,23 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ jobs:
9
+ test:
10
+ runs-on: ubuntu-latest
11
+ strategy:
12
+ matrix:
13
+ python-version: ["3.11", "3.12", "3.13"]
14
+
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ - uses: astral-sh/setup-uv@v5
18
+ - run: uv python install ${{ matrix.python-version }}
19
+ - run: uv sync --dev
20
+ - run: uv run ruff check .
21
+ - run: uv run ruff format --check .
22
+ - run: uv run pyright
23
+ - run: uv run pytest --cov --cov-report=term-missing
@@ -0,0 +1,35 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+
7
+ permissions:
8
+ contents: write
9
+ pull-requests: write
10
+ id-token: write
11
+
12
+ jobs:
13
+ release-please:
14
+ runs-on: ubuntu-latest
15
+ outputs:
16
+ release_created: ${{ steps.release.outputs.release_created }}
17
+ steps:
18
+ - uses: googleapis/release-please-action@v4
19
+ id: release
20
+ with:
21
+ config-file: release-please-config.json
22
+ manifest-file: .release-please-manifest.json
23
+
24
+ publish:
25
+ needs: release-please
26
+ if: needs.release-please.outputs.release_created == 'true'
27
+ runs-on: ubuntu-latest
28
+ environment: pypi
29
+ permissions:
30
+ id-token: write
31
+ steps:
32
+ - uses: actions/checkout@v4
33
+ - uses: astral-sh/setup-uv@v5
34
+ - run: uv build
35
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,26 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *.egg-info/
5
+ dist/
6
+ build/
7
+ *.egg
8
+
9
+ # Virtual environments
10
+ .venv/
11
+ venv/
12
+
13
+ # Testing / coverage
14
+ .coverage
15
+ htmlcov/
16
+ .pytest_cache/
17
+
18
+ # IDE
19
+ .idea/
20
+ .vscode/
21
+ *.swp
22
+ *.swo
23
+
24
+ # OS
25
+ .DS_Store
26
+
@@ -0,0 +1,34 @@
1
+ repos:
2
+ - repo: https://github.com/astral-sh/ruff-pre-commit
3
+ rev: v0.8.0
4
+ hooks:
5
+ - id: ruff
6
+ args: [--fix]
7
+ - id: ruff-format
8
+
9
+ - repo: https://github.com/pre-commit/pre-commit-hooks
10
+ rev: v5.0.0
11
+ hooks:
12
+ - id: trailing-whitespace
13
+ - id: end-of-file-fixer
14
+ - id: check-yaml
15
+ - id: check-toml
16
+
17
+ - repo: https://github.com/compilerla/conventional-pre-commit
18
+ rev: v4.0.0
19
+ hooks:
20
+ - id: conventional-pre-commit
21
+ stages: [commit-msg]
22
+
23
+ - repo: local
24
+ hooks:
25
+ - id: typecheck
26
+ name: pyright
27
+ entry: uv run pyright
28
+ language: system
29
+ pass_filenames: false
30
+ - id: tests
31
+ name: pytest
32
+ entry: uv run pytest -x -q
33
+ language: system
34
+ pass_filenames: false
@@ -0,0 +1 @@
1
+ 3.11
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.1.2"
3
+ }
@@ -0,0 +1,28 @@
1
+ # Changelog
2
+
3
+ ## [0.1.2](https://github.com/shaug/runsheet-py/compare/runsheet-v0.1.1...runsheet-v0.1.2) (2026-03-06)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **ci:** chain publish job into release workflow ([9b4f775](https://github.com/shaug/runsheet-py/commit/9b4f775be53e2b42f11e72a18c26231f42dd9c84))
9
+
10
+ ## [0.1.1](https://github.com/shaug/runsheet-py/compare/runsheet-v0.1.0...runsheet-v0.1.1) (2026-03-06)
11
+
12
+
13
+ ### Features
14
+
15
+ * initial implementation of runsheet-py ([a05ff9d](https://github.com/shaug/runsheet-py/commit/a05ff9dd89923010ea9cc52b457e905aca831f92))
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * **ci:** add dependency-groups for uv sync --dev ([e6833fa](https://github.com/shaug/runsheet-py/commit/e6833fa2a5f0a68bd3e1c407891863ab8a6ecc14))
21
+
22
+
23
+ ### Documentation
24
+
25
+ * add comprehensive implementation guide from runsheet-js ([449b9e6](https://github.com/shaug/runsheet-py/commit/449b9e68e21cba263433fe92dd83db6b04f4ed14))
26
+ * fix camelCase references in lessons learned section ([a2a92c8](https://github.com/shaug/runsheet-py/commit/a2a92c8260aab80c3d158c10dde1fa1e886e85c2))
27
+
28
+ ## Changelog
@@ -0,0 +1,48 @@
1
+ # Contributing to runsheet
2
+
3
+ ## Development setup
4
+
5
+ ```bash
6
+ git clone https://github.com/shaug/runsheet-py.git
7
+ cd runsheet-py
8
+ uv sync --dev
9
+ uv run pre-commit install --hook-type pre-commit --hook-type commit-msg
10
+ ```
11
+
12
+ ## Running checks
13
+
14
+ ```bash
15
+ uv run pytest # tests
16
+ uv run pytest --cov # tests with coverage
17
+ uv run pyright # type checking
18
+ uv run ruff check . # linting
19
+ uv run ruff format --check . # format check
20
+ ```
21
+
22
+ Or let pre-commit run everything on commit.
23
+
24
+ ## Commit conventions
25
+
26
+ This project uses [Conventional Commits](https://www.conventionalcommits.org/). The pre-commit hook enforces this.
27
+
28
+ ```
29
+ feat: add new combinator
30
+ fix: correct filter_step predicate signature
31
+ docs: update README examples
32
+ test: add coverage for retry backoff
33
+ refactor: simplify middleware composition
34
+ chore: update dependencies
35
+ ```
36
+
37
+ These prefixes drive automated changelog generation and semantic versioning via release-please.
38
+
39
+ ## Pull requests
40
+
41
+ 1. Fork the repo and create a branch from `main`
42
+ 2. Make your changes
43
+ 3. Ensure all checks pass: `uv run pytest && uv run pyright && uv run ruff check .`
44
+ 4. Open a PR against `main`
45
+
46
+ ## Releases
47
+
48
+ Releases are automated via [release-please](https://github.com/googleapis/release-please). When conventional commits land on `main`, release-please maintains a PR with the version bump and changelog. Merging that PR creates a GitHub release, which triggers publishing to PyPI.
runsheet-0.1.2/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Scott Haug
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.