openapi-mock 2026.3.1__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 (45) hide show
  1. openapi_mock-2026.3.1/.editorconfig +15 -0
  2. openapi_mock-2026.3.1/.git_archival.txt +4 -0
  3. openapi_mock-2026.3.1/.gitattributes +2 -0
  4. openapi_mock-2026.3.1/.github/dependabot.yml +9 -0
  5. openapi_mock-2026.3.1/.github/workflows/ci.yml +51 -0
  6. openapi_mock-2026.3.1/.github/workflows/dependabot-merge.yml +24 -0
  7. openapi_mock-2026.3.1/.github/workflows/lint.yml +47 -0
  8. openapi_mock-2026.3.1/.github/workflows/publish-site.yml +52 -0
  9. openapi_mock-2026.3.1/.github/workflows/release.yml +106 -0
  10. openapi_mock-2026.3.1/.gitignore +208 -0
  11. openapi_mock-2026.3.1/.pre-commit-config.yaml +310 -0
  12. openapi_mock-2026.3.1/.prettierrc +1 -0
  13. openapi_mock-2026.3.1/.vscode/settings.json +13 -0
  14. openapi_mock-2026.3.1/CHANGELOG.rst +9 -0
  15. openapi_mock-2026.3.1/CODE_OF_CONDUCT.rst +47 -0
  16. openapi_mock-2026.3.1/CONTRIBUTING.rst +42 -0
  17. openapi_mock-2026.3.1/LICENSE +21 -0
  18. openapi_mock-2026.3.1/MANIFEST.in +4 -0
  19. openapi_mock-2026.3.1/PKG-INFO +108 -0
  20. openapi_mock-2026.3.1/README.rst +47 -0
  21. openapi_mock-2026.3.1/conftest.py +19 -0
  22. openapi_mock-2026.3.1/docs/source/api-reference.rst +6 -0
  23. openapi_mock-2026.3.1/docs/source/changelog.rst +1 -0
  24. openapi_mock-2026.3.1/docs/source/conf.py +99 -0
  25. openapi_mock-2026.3.1/docs/source/contributing.rst +75 -0
  26. openapi_mock-2026.3.1/docs/source/index.rst +52 -0
  27. openapi_mock-2026.3.1/docs/source/release-process.rst +22 -0
  28. openapi_mock-2026.3.1/pyproject.toml +198 -0
  29. openapi_mock-2026.3.1/setup.cfg +4 -0
  30. openapi_mock-2026.3.1/spelling_private_dict.txt +20 -0
  31. openapi_mock-2026.3.1/src/openapi_mock/__init__.py +167 -0
  32. openapi_mock-2026.3.1/src/openapi_mock/cli.py +83 -0
  33. openapi_mock-2026.3.1/src/openapi_mock/py.typed +0 -0
  34. openapi_mock-2026.3.1/src/openapi_mock.egg-info/PKG-INFO +108 -0
  35. openapi_mock-2026.3.1/src/openapi_mock.egg-info/SOURCES.txt +43 -0
  36. openapi_mock-2026.3.1/src/openapi_mock.egg-info/dependency_links.txt +1 -0
  37. openapi_mock-2026.3.1/src/openapi_mock.egg-info/entry_points.txt +2 -0
  38. openapi_mock-2026.3.1/src/openapi_mock.egg-info/not-zip-safe +1 -0
  39. openapi_mock-2026.3.1/src/openapi_mock.egg-info/requires.txt +44 -0
  40. openapi_mock-2026.3.1/src/openapi_mock.egg-info/top_level.txt +1 -0
  41. openapi_mock-2026.3.1/tests/__init__.py +1 -0
  42. openapi_mock-2026.3.1/tests/test_cli.py +121 -0
  43. openapi_mock-2026.3.1/tests/test_load_spec.py +64 -0
  44. openapi_mock-2026.3.1/tests/test_openapi_mock.py +757 -0
  45. openapi_mock-2026.3.1/uv.lock +2161 -0
@@ -0,0 +1,15 @@
1
+ # https://editorconfig.org
2
+ root = true
3
+
4
+ [*]
5
+ charset = utf-8
6
+ end_of_line = lf
7
+ insert_final_newline = true
8
+ trim_trailing_whitespace = true
9
+
10
+ [*.{py,rst,toml,yaml,yml}]
11
+ indent_style = space
12
+ indent_size = 4
13
+
14
+ [*.md]
15
+ indent_size = 2
@@ -0,0 +1,4 @@
1
+ node: $Format:%H$
2
+ node-date: $Format:%cI$
3
+ describe-name: $Format:%(describe:tags=true)$
4
+ ref-names: $Format:%D$
@@ -0,0 +1,2 @@
1
+ .git_archival.txt export-subst
2
+ * text=auto eol=lf
@@ -0,0 +1,9 @@
1
+ ---
2
+ version: 2
3
+
4
+ updates:
5
+ - package-ecosystem: pip
6
+ directory: /
7
+ schedule:
8
+ interval: weekly
9
+ open-pull-requests-limit: 5
@@ -0,0 +1,51 @@
1
+ ---
2
+ name: CI
3
+
4
+ on:
5
+ push:
6
+ branches: [main]
7
+ pull_request:
8
+ branches: [main]
9
+ schedule:
10
+ - cron: 0 1 * * *
11
+
12
+ permissions: {}
13
+
14
+ jobs:
15
+ build:
16
+ strategy:
17
+ matrix:
18
+ python-version: ['3.12', '3.13', '3.14']
19
+ platform: [ubuntu-latest, windows-latest]
20
+
21
+ runs-on: ${{ matrix.platform }}
22
+
23
+ steps:
24
+ - uses: actions/checkout@v6
25
+ with:
26
+ fetch-depth: 0
27
+ fetch-tags: true
28
+ persist-credentials: false
29
+ - name: Install uv
30
+ uses: astral-sh/setup-uv@v7
31
+ with:
32
+ enable-cache: true
33
+ cache-dependency-glob: '**/pyproject.toml'
34
+
35
+ - name: Run tests
36
+ run: uv run --extra=dev pytest -s -vvv --cov-fail-under 100 --cov=src/ --cov=tests
37
+ .
38
+ env:
39
+ UV_PYTHON: ${{ matrix.python-version }}
40
+
41
+ completion-ci:
42
+ needs: build
43
+ runs-on: ubuntu-latest
44
+ if: always()
45
+ steps:
46
+ - name: Check matrix job status
47
+ run: |-
48
+ if [ "${{ needs.build.result }}" != "success" ]; then
49
+ echo "One or more matrix jobs failed"
50
+ exit 1
51
+ fi
@@ -0,0 +1,24 @@
1
+ ---
2
+ name: Dependabot auto-merge
3
+
4
+ on: pull_request
5
+
6
+ permissions:
7
+ contents: write
8
+ pull-requests: write
9
+
10
+ jobs:
11
+ dependabot:
12
+ runs-on: ubuntu-latest
13
+ if: github.actor == 'dependabot[bot]'
14
+ steps:
15
+ - name: Dependabot metadata
16
+ id: metadata
17
+ uses: dependabot/fetch-metadata@v2
18
+ with:
19
+ github-token: ${{ secrets.GITHUB_TOKEN }}
20
+ - name: Enable auto-merge for Dependabot PRs
21
+ run: gh pr merge --auto --merge "$PR_URL"
22
+ env:
23
+ PR_URL: ${{ github.event.pull_request.html_url }}
24
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,47 @@
1
+ ---
2
+ name: Lint
3
+
4
+ on:
5
+ push:
6
+ branches: [main]
7
+ pull_request:
8
+ branches: [main]
9
+ schedule:
10
+ - cron: 0 1 * * *
11
+ workflow_dispatch: {}
12
+
13
+ permissions: {}
14
+
15
+ jobs:
16
+ lint:
17
+ runs-on: ubuntu-latest
18
+
19
+ steps:
20
+ - uses: actions/checkout@v6
21
+ with:
22
+ fetch-depth: 0
23
+ fetch-tags: true
24
+ persist-credentials: false
25
+ - name: Install uv
26
+ uses: astral-sh/setup-uv@v7
27
+ with:
28
+ enable-cache: true
29
+ cache-dependency-glob: '**/pyproject.toml'
30
+
31
+ - name: Run pre-commit
32
+ run: uv run --extra=dev pre-commit run --all-files
33
+
34
+ - uses: pre-commit-ci/lite-action@v1.1.0
35
+ if: always()
36
+
37
+ completion-lint:
38
+ needs: lint
39
+ runs-on: ubuntu-latest
40
+ if: always()
41
+ steps:
42
+ - name: Check lint job status
43
+ run: |-
44
+ if [ "${{ needs.lint.result }}" != "success" ]; then
45
+ echo "Lint job failed"
46
+ exit 1
47
+ fi
@@ -0,0 +1,52 @@
1
+ ---
2
+ name: Publish site
3
+
4
+ on:
5
+ release:
6
+ types: [published]
7
+ workflow_dispatch: {}
8
+
9
+ permissions:
10
+ contents: read
11
+ pages: write
12
+ id-token: write
13
+
14
+ concurrency:
15
+ group: pages
16
+ cancel-in-progress: false
17
+
18
+ jobs:
19
+ build:
20
+ runs-on: ubuntu-latest
21
+
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+ with:
25
+ fetch-depth: 0
26
+ fetch-tags: true
27
+ persist-credentials: false
28
+ - name: Install uv
29
+ uses: astral-sh/setup-uv@v4
30
+ with:
31
+ enable-cache: true
32
+ cache-dependency-glob: '**/pyproject.toml'
33
+
34
+ - name: Build docs
35
+ run: uv run --extra=dev sphinx-build -M html docs/source docs/build -W
36
+
37
+ - name: Upload artifact
38
+ uses: actions/upload-pages-artifact@v3
39
+ with:
40
+ path: docs/build/html
41
+
42
+ deploy:
43
+ needs: build
44
+ runs-on: ubuntu-latest
45
+ environment:
46
+ name: github-pages
47
+ url: ${{ steps.deployment.outputs.page_url }}
48
+
49
+ steps:
50
+ - name: Deploy to GitHub Pages
51
+ id: deployment
52
+ uses: actions/deploy-pages@v4
@@ -0,0 +1,106 @@
1
+ ---
2
+ name: Release
3
+
4
+ on: workflow_dispatch
5
+
6
+ jobs:
7
+ build:
8
+ name: Publish a release
9
+ runs-on: ubuntu-latest
10
+
11
+ # Specifying an environment is strongly recommended by PyPI.
12
+ # See https://github.com/pypa/gh-action-pypi-publish/tree/release/v1/?tab=readme-ov-file#trusted-publishing.
13
+ environment: release
14
+
15
+ permissions:
16
+ # This is needed for PyPI publishing.
17
+ # See https://github.com/pypa/gh-action-pypi-publish/tree/release/v1/?tab=readme-ov-file#trusted-publishing.
18
+ id-token: write
19
+ # This is needed for https://github.com/stefanzweifel/git-auto-commit-action.
20
+ contents: write
21
+
22
+ steps:
23
+ - uses: actions/checkout@v6
24
+ with:
25
+ # See
26
+ # https://github.com/stefanzweifel/git-auto-commit-action?tab=readme-ov-file#push-to-protected-branches
27
+ token: ${{ secrets.RELEASE_PAT }}
28
+ # Fetch all history including tags.
29
+ # Needed to find the latest tag.
30
+ #
31
+ # Also, avoids
32
+ # https://github.com/stefanzweifel/git-auto-commit-action/issues/99.
33
+ fetch-depth: 0
34
+
35
+ - name: Install uv
36
+ uses: astral-sh/setup-uv@v7
37
+ with:
38
+ enable-cache: true
39
+ cache-dependency-glob: '**/pyproject.toml'
40
+
41
+ - name: Calver calculate version
42
+ uses: StephaneBour/actions-calver@master
43
+ id: calver
44
+ with:
45
+ date_format: '%Y.%m.%d'
46
+ release: false
47
+ env:
48
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49
+
50
+ - name: Get the changelog underline
51
+ id: changelog_underline
52
+ run: |
53
+ underline="$(echo "${{ steps.calver.outputs.release }}" | tr -c '\n' '-')"
54
+ echo "underline=${underline}" >> "$GITHUB_OUTPUT"
55
+
56
+ - name: Update changelog
57
+ uses: jacobtomlinson/gha-find-replace@v3
58
+ with:
59
+ find: "Next\n----"
60
+ replace: |
61
+ Next
62
+ ----
63
+
64
+ ${{ steps.calver.outputs.release }}
65
+ ${{ steps.changelog_underline.outputs.underline }}
66
+ include: CHANGELOG.rst
67
+ regex: false
68
+
69
+ - uses: stefanzweifel/git-auto-commit-action@v7
70
+ id: commit
71
+ with:
72
+ commit_message: Bump CHANGELOG
73
+ file_pattern: CHANGELOG.rst
74
+ # Error if there are no changes.
75
+ skip_dirty_check: true
76
+
77
+ - name: Bump version and push tag
78
+ id: tag_version
79
+ uses: mathieudutour/github-tag-action@v6.2
80
+ with:
81
+ github_token: ${{ secrets.GITHUB_TOKEN }}
82
+ custom_tag: ${{ steps.calver.outputs.release }}
83
+ tag_prefix: ''
84
+ commit_sha: ${{ steps.commit.outputs.commit_hash }}
85
+
86
+ - name: Create a GitHub release
87
+ uses: ncipollo/release-action@v1
88
+ with:
89
+ tag: ${{ steps.tag_version.outputs.new_tag }}
90
+ makeLatest: true
91
+ name: Release ${{ steps.tag_version.outputs.new_tag }}
92
+ body: ${{ steps.tag_version.outputs.changelog }}
93
+
94
+ - name: Build a binary wheel and a source tarball
95
+ run: |
96
+ git fetch --tags
97
+ git checkout ${{ steps.tag_version.outputs.new_tag }}
98
+ uv build --sdist --wheel --out-dir dist/
99
+ uv run --extra=release check-wheel-contents dist/*.whl
100
+
101
+ # We use PyPI trusted publishing rather than a PyPI API token.
102
+ # See https://github.com/pypa/gh-action-pypi-publish/tree/release/v1/?tab=readme-ov-file#trusted-publishing.
103
+ - name: Publish distribution 📦 to PyPI
104
+ uses: pypa/gh-action-pypi-publish@release/v1
105
+ with:
106
+ verbose: true
@@ -0,0 +1,208 @@
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
+ docs/build/
74
+
75
+ # PyBuilder
76
+ .pybuilder/
77
+ target/
78
+
79
+ # Jupyter Notebook
80
+ .ipynb_checkpoints
81
+
82
+ # IPython
83
+ profile_default/
84
+ ipython_config.py
85
+
86
+ # pyenv
87
+ # For a library or package, you might want to ignore these files since the code is
88
+ # intended to run in multiple environments; otherwise, check them in:
89
+ # .python-version
90
+
91
+ # pipenv
92
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
94
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
95
+ # install all needed dependencies.
96
+ #Pipfile.lock
97
+
98
+ # UV
99
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
100
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
101
+ # commonly ignored for libraries.
102
+ #uv.lock
103
+
104
+ # poetry
105
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
106
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
107
+ # commonly ignored for libraries.
108
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
109
+ #poetry.lock
110
+ #poetry.toml
111
+
112
+ # pdm
113
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
114
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
115
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
116
+ #pdm.lock
117
+ #pdm.toml
118
+ .pdm-python
119
+ .pdm-build/
120
+
121
+ # pixi
122
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
123
+ #pixi.lock
124
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
125
+ # in the .venv directory. It is recommended not to include this directory in version control.
126
+ .pixi
127
+
128
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
129
+ __pypackages__/
130
+
131
+ # Celery stuff
132
+ celerybeat-schedule
133
+ celerybeat.pid
134
+
135
+ # SageMath parsed files
136
+ *.sage.py
137
+
138
+ # Environments
139
+ .env
140
+ .envrc
141
+ .venv
142
+ env/
143
+ venv/
144
+ ENV/
145
+ env.bak/
146
+ venv.bak/
147
+
148
+ # Spyder project settings
149
+ .spyderproject
150
+ .spyproject
151
+
152
+ # Rope project settings
153
+ .ropeproject
154
+
155
+ # mkdocs documentation
156
+ /site
157
+
158
+ # mypy
159
+ .mypy_cache/
160
+ .dmypy.json
161
+ dmypy.json
162
+
163
+ # Pyre type checker
164
+ .pyre/
165
+
166
+ # pytype static type analyzer
167
+ .pytype/
168
+
169
+ # Cython debug symbols
170
+ cython_debug/
171
+
172
+ # PyCharm
173
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
174
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
175
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
176
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
177
+ #.idea/
178
+
179
+ # Abstra
180
+ # Abstra is an AI-powered process automation framework.
181
+ # Ignore directories containing user credentials, local state, and settings.
182
+ # Learn more at https://abstra.io/docs
183
+ .abstra/
184
+
185
+ # Visual Studio Code
186
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
187
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
188
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
189
+ # you could uncomment the following to ignore the entire vscode folder
190
+ # .vscode/
191
+
192
+ # Ruff stuff:
193
+ .ruff_cache/
194
+
195
+ # PyPI configuration file
196
+ .pypirc
197
+
198
+ # Cursor
199
+ # Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
200
+ # exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
201
+ # refer to https://docs.cursor.com/context/ignore-files
202
+ .cursorignore
203
+ .cursorindexingignore
204
+
205
+ # Marimo
206
+ marimo/_static/
207
+ marimo/_lsp/
208
+ __marimo__/