quieto 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 (38) hide show
  1. quieto-0.1.0/.github/workflows/ci.yml +119 -0
  2. quieto-0.1.0/.github/workflows/pre-commit-checks.yml +45 -0
  3. quieto-0.1.0/.github/workflows/publish.yml +93 -0
  4. quieto-0.1.0/.gitignore +207 -0
  5. quieto-0.1.0/.pre-commit-config.yaml +22 -0
  6. quieto-0.1.0/.python-version +1 -0
  7. quieto-0.1.0/LICENSE +21 -0
  8. quieto-0.1.0/PKG-INFO +230 -0
  9. quieto-0.1.0/README.md +183 -0
  10. quieto-0.1.0/pyproject.toml +57 -0
  11. quieto-0.1.0/src/quieto/__init__.py +46 -0
  12. quieto-0.1.0/src/quieto/_sync.py +61 -0
  13. quieto-0.1.0/src/quieto/config.py +50 -0
  14. quieto-0.1.0/src/quieto/core.py +87 -0
  15. quieto-0.1.0/src/quieto/decorator.py +111 -0
  16. quieto-0.1.0/src/quieto/integrations/__init__.py +1 -0
  17. quieto-0.1.0/src/quieto/integrations/langchain.py +141 -0
  18. quieto-0.1.0/src/quieto/session.py +142 -0
  19. quieto-0.1.0/src/quieto/strategies/__init__.py +13 -0
  20. quieto-0.1.0/src/quieto/strategies/actor.py +133 -0
  21. quieto-0.1.0/src/quieto/strategies/adaptive.py +86 -0
  22. quieto-0.1.0/src/quieto/strategies/base.py +52 -0
  23. quieto-0.1.0/src/quieto/strategies/registry.py +46 -0
  24. quieto-0.1.0/src/quieto/strategies/trailing.py +101 -0
  25. quieto-0.1.0/tests/__init__.py +0 -0
  26. quieto-0.1.0/tests/conftest.py +27 -0
  27. quieto-0.1.0/tests/test_actor.py +163 -0
  28. quieto-0.1.0/tests/test_adaptive.py +109 -0
  29. quieto-0.1.0/tests/test_base_strategy.py +67 -0
  30. quieto-0.1.0/tests/test_config.py +62 -0
  31. quieto-0.1.0/tests/test_core.py +145 -0
  32. quieto-0.1.0/tests/test_decorator.py +98 -0
  33. quieto-0.1.0/tests/test_langchain.py +221 -0
  34. quieto-0.1.0/tests/test_registry.py +51 -0
  35. quieto-0.1.0/tests/test_session.py +61 -0
  36. quieto-0.1.0/tests/test_sync.py +71 -0
  37. quieto-0.1.0/tests/test_trailing.py +138 -0
  38. quieto-0.1.0/uv.lock +1006 -0
@@ -0,0 +1,119 @@
1
+ name: CI
2
+
3
+ on:
4
+ pull_request:
5
+ paths:
6
+ - "src/**"
7
+ - "tests/**"
8
+ - "pyproject.toml"
9
+ - "uv.lock"
10
+ - ".github/workflows/ci.yml"
11
+ push:
12
+ branches:
13
+ - main
14
+ - dev
15
+ paths:
16
+ - "src/**"
17
+ - "tests/**"
18
+ - "pyproject.toml"
19
+ - "uv.lock"
20
+ - ".github/workflows/ci.yml"
21
+ workflow_dispatch:
22
+
23
+ permissions:
24
+ contents: read
25
+
26
+ env:
27
+ FORCE_COLOR: "1"
28
+
29
+ jobs:
30
+ quality:
31
+ name: Code Quality
32
+ runs-on: ubuntu-latest
33
+ steps:
34
+ - name: Checkout code
35
+ uses: actions/checkout@v4
36
+
37
+ - name: Install uv
38
+ uses: astral-sh/setup-uv@v7
39
+ with:
40
+ enable-cache: true
41
+ cache-dependency-glob: "uv.lock"
42
+
43
+ - name: Set up Python
44
+ run: uv python install
45
+
46
+ - name: Install dependencies
47
+ run: uv sync --extra dev
48
+
49
+ - name: Check formatting with ruff
50
+ run: uv run ruff format --check .
51
+
52
+ - name: Lint with ruff
53
+ run: uv run ruff check .
54
+
55
+ - name: Type check with mypy
56
+ run: uv run mypy src/
57
+ continue-on-error: true
58
+
59
+ test:
60
+ name: Test Python ${{ matrix.python-version }}
61
+ runs-on: ubuntu-latest
62
+ strategy:
63
+ fail-fast: false
64
+ matrix:
65
+ python-version: ["3.13"]
66
+
67
+ steps:
68
+ - name: Checkout code
69
+ uses: actions/checkout@v4
70
+
71
+ - name: Install uv
72
+ uses: astral-sh/setup-uv@v7
73
+ with:
74
+ enable-cache: true
75
+ cache-dependency-glob: "uv.lock"
76
+
77
+ - name: Set up Python ${{ matrix.python-version }}
78
+ run: uv python install ${{ matrix.python-version }}
79
+
80
+ - name: Install dependencies
81
+ run: uv sync --extra dev
82
+
83
+ - name: Run tests with coverage
84
+ run: uv run pytest tests/ -v --cov=src --cov-report=xml --cov-report=term
85
+ continue-on-error: false
86
+
87
+ - name: Upload coverage to Codecov
88
+ if: matrix.python-version == '3.13'
89
+ uses: codecov/codecov-action@v4
90
+ with:
91
+ file: ./coverage.xml
92
+ fail_ci_if_error: false
93
+
94
+ build:
95
+ name: Build Package
96
+ runs-on: ubuntu-latest
97
+ needs: [quality, test]
98
+ steps:
99
+ - name: Checkout code
100
+ uses: actions/checkout@v4
101
+ with:
102
+ fetch-depth: 0
103
+
104
+ - name: Install uv
105
+ uses: astral-sh/setup-uv@v7
106
+ with:
107
+ enable-cache: true
108
+
109
+ - name: Set up Python
110
+ run: uv python install
111
+
112
+ - name: Build package
113
+ run: uv build
114
+
115
+ - name: Upload build artifacts
116
+ uses: actions/upload-artifact@v4
117
+ with:
118
+ name: dist
119
+ path: dist/
@@ -0,0 +1,45 @@
1
+ name: Pre-commit Checks
2
+
3
+ on:
4
+ pull_request:
5
+ paths:
6
+ - "src/**"
7
+ - "tests/**"
8
+ - "pyproject.toml"
9
+ - ".pre-commit-config.yaml"
10
+ - ".github/workflows/pre-commit-checks.yml"
11
+ push:
12
+ branches:
13
+ - main
14
+ - dev
15
+ paths:
16
+ - "src/**"
17
+ - "tests/**"
18
+ - "pyproject.toml"
19
+ - ".pre-commit-config.yaml"
20
+ - ".github/workflows/pre-commit-checks.yml"
21
+
22
+ permissions:
23
+ contents: read
24
+
25
+ jobs:
26
+ pre-commit:
27
+ runs-on: ubuntu-latest
28
+ steps:
29
+ - name: Checkout code
30
+ uses: actions/checkout@v4
31
+
32
+ - name: Install uv
33
+ uses: astral-sh/setup-uv@v7
34
+ with:
35
+ enable-cache: true
36
+ cache-dependency-glob: "uv.lock"
37
+
38
+ - name: Set up Python
39
+ run: uv python install
40
+
41
+ - name: Install dependencies
42
+ run: uv sync --extra dev
43
+
44
+ - name: Run pre-commit
45
+ run: uv run pre-commit run --all-files --show-diff-on-failure --color=always
@@ -0,0 +1,93 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+ workflow_dispatch:
8
+
9
+ permissions:
10
+ contents: write
11
+ id-token: write
12
+
13
+ jobs:
14
+ build:
15
+ name: Build distribution
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - name: Checkout code
19
+ uses: actions/checkout@v4
20
+ with:
21
+ fetch-depth: 0
22
+
23
+ - name: Install uv
24
+ uses: astral-sh/setup-uv@v7
25
+ with:
26
+ enable-cache: true
27
+
28
+ - name: Set up Python
29
+ run: uv python install
30
+
31
+ - name: Build package
32
+ run: uv build
33
+
34
+ - name: Store the distribution packages
35
+ uses: actions/upload-artifact@v4
36
+ with:
37
+ name: python-package-distributions
38
+ path: dist/
39
+
40
+ publish-to-pypi:
41
+ name: Publish to PyPI
42
+ needs: build
43
+ runs-on: ubuntu-latest
44
+ environment:
45
+ name: pypi
46
+ url: https://pypi.org/p/debouncer
47
+ permissions:
48
+ id-token: write
49
+
50
+ steps:
51
+ - name: Download all the dists
52
+ uses: actions/download-artifact@v4
53
+ with:
54
+ name: python-package-distributions
55
+ path: dist/
56
+
57
+ - name: Publish distribution to PyPI
58
+ uses: pypa/gh-action-pypi-publish@release/v1
59
+
60
+ github-release:
61
+ name: Create GitHub Release
62
+ needs: publish-to-pypi
63
+ runs-on: ubuntu-latest
64
+ permissions:
65
+ contents: write
66
+ id-token: write
67
+
68
+ steps:
69
+ - name: Checkout code
70
+ uses: actions/checkout@v4
71
+
72
+ - name: Download all the dists
73
+ uses: actions/download-artifact@v4
74
+ with:
75
+ name: python-package-distributions
76
+ path: dist/
77
+
78
+ - name: Create GitHub Release
79
+ env:
80
+ GITHUB_TOKEN: ${{ github.token }}
81
+ run: gh release create '${{ github.ref_name }}' --generate-notes
82
+
83
+ - name: Sign the dists with Sigstore
84
+ uses: sigstore/gh-action-sigstore-python@v3.0.0
85
+ with:
86
+ inputs: >-
87
+ ./dist/*.tar.gz
88
+ ./dist/*.whl
89
+
90
+ - name: Upload artifacts to GitHub Release
91
+ env:
92
+ GITHUB_TOKEN: ${{ github.token }}
93
+ run: gh release upload '${{ github.ref_name }}' dist/** --repo '${{ github.repository }}'
@@ -0,0 +1,207 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
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
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ #uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ #poetry.lock
109
+ #poetry.toml
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115
+ #pdm.lock
116
+ #pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # pixi
121
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122
+ #pixi.lock
123
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124
+ # in the .venv directory. It is recommended not to include this directory in version control.
125
+ .pixi
126
+
127
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
128
+ __pypackages__/
129
+
130
+ # Celery stuff
131
+ celerybeat-schedule
132
+ celerybeat.pid
133
+
134
+ # SageMath parsed files
135
+ *.sage.py
136
+
137
+ # Environments
138
+ .env
139
+ .envrc
140
+ .venv
141
+ env/
142
+ venv/
143
+ ENV/
144
+ env.bak/
145
+ venv.bak/
146
+
147
+ # Spyder project settings
148
+ .spyderproject
149
+ .spyproject
150
+
151
+ # Rope project settings
152
+ .ropeproject
153
+
154
+ # mkdocs documentation
155
+ /site
156
+
157
+ # mypy
158
+ .mypy_cache/
159
+ .dmypy.json
160
+ dmypy.json
161
+
162
+ # Pyre type checker
163
+ .pyre/
164
+
165
+ # pytype static type analyzer
166
+ .pytype/
167
+
168
+ # Cython debug symbols
169
+ cython_debug/
170
+
171
+ # PyCharm
172
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
173
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
174
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
175
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
176
+ #.idea/
177
+
178
+ # Abstra
179
+ # Abstra is an AI-powered process automation framework.
180
+ # Ignore directories containing user credentials, local state, and settings.
181
+ # Learn more at https://abstra.io/docs
182
+ .abstra/
183
+
184
+ # Visual Studio Code
185
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
186
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
187
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
188
+ # you could uncomment the following to ignore the entire vscode folder
189
+ # .vscode/
190
+
191
+ # Ruff stuff:
192
+ .ruff_cache/
193
+
194
+ # PyPI configuration file
195
+ .pypirc
196
+
197
+ # Cursor
198
+ # Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
199
+ # exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
200
+ # refer to https://docs.cursor.com/context/ignore-files
201
+ .cursorignore
202
+ .cursorindexingignore
203
+
204
+ # Marimo
205
+ marimo/_static/
206
+ marimo/_lsp/
207
+ __marimo__/
@@ -0,0 +1,22 @@
1
+ repos:
2
+ - repo: https://github.com/astral-sh/uv-pre-commit
3
+ rev: 0.9.26
4
+ hooks:
5
+ - id: uv-lock
6
+
7
+ - repo: https://github.com/astral-sh/ruff-pre-commit
8
+ rev: v0.14.13
9
+ hooks:
10
+ - id: ruff-check
11
+ args: [--fix]
12
+ - id: ruff-format
13
+
14
+ - repo: https://github.com/pre-commit/pre-commit-hooks
15
+ rev: v6.0.0
16
+ hooks:
17
+ - id: trailing-whitespace
18
+ - id: end-of-file-fixer
19
+ - id: check-yaml
20
+ - id: check-added-large-files
21
+ - id: check-merge-conflict
22
+ - id: check-toml
@@ -0,0 +1 @@
1
+ 3.13
quieto-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 vnnicius
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.