pytest-jsonschema-snapshot 0.2.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 (74) hide show
  1. pytest_jsonschema_snapshot-0.2.0/.flake8 +13 -0
  2. pytest_jsonschema_snapshot-0.2.0/.github/ISSUE_TEMPLATE/bug_report.yml +43 -0
  3. pytest_jsonschema_snapshot-0.2.0/.github/ISSUE_TEMPLATE/config.yml +9 -0
  4. pytest_jsonschema_snapshot-0.2.0/.github/ISSUE_TEMPLATE/documentation_issue.yml +33 -0
  5. pytest_jsonschema_snapshot-0.2.0/.github/ISSUE_TEMPLATE/feature_request.yml +36 -0
  6. pytest_jsonschema_snapshot-0.2.0/.github/PULL_REQUEST_TEMPLATE/general.md +32 -0
  7. pytest_jsonschema_snapshot-0.2.0/.github/actions/build-docs/action.yml +45 -0
  8. pytest_jsonschema_snapshot-0.2.0/.github/workflows/release.yml +122 -0
  9. pytest_jsonschema_snapshot-0.2.0/.github/workflows/reusable-test.yml +133 -0
  10. pytest_jsonschema_snapshot-0.2.0/.github/workflows/test.yml +14 -0
  11. pytest_jsonschema_snapshot-0.2.0/.gitignore +174 -0
  12. pytest_jsonschema_snapshot-0.2.0/LICENSE +21 -0
  13. pytest_jsonschema_snapshot-0.2.0/Makefile +92 -0
  14. pytest_jsonschema_snapshot-0.2.0/PKG-INFO +195 -0
  15. pytest_jsonschema_snapshot-0.2.0/README.md +150 -0
  16. pytest_jsonschema_snapshot-0.2.0/assets/logo.png +0 -0
  17. pytest_jsonschema_snapshot-0.2.0/docs/source/_static/logo_day.png +0 -0
  18. pytest_jsonschema_snapshot-0.2.0/docs/source/_static/logo_night.png +0 -0
  19. pytest_jsonschema_snapshot-0.2.0/docs/source/basic/quick_start.rst +99 -0
  20. pytest_jsonschema_snapshot-0.2.0/docs/source/conf.py +96 -0
  21. pytest_jsonschema_snapshot-0.2.0/docs/source/index.rst +12 -0
  22. pytest_jsonschema_snapshot-0.2.0/pyproject.toml +104 -0
  23. pytest_jsonschema_snapshot-0.2.0/pytest_jsonschema_snapshot/__init__.py +12 -0
  24. pytest_jsonschema_snapshot-0.2.0/pytest_jsonschema_snapshot/core.py +260 -0
  25. pytest_jsonschema_snapshot-0.2.0/pytest_jsonschema_snapshot/plugin.py +180 -0
  26. pytest_jsonschema_snapshot-0.2.0/pytest_jsonschema_snapshot/py.typed +0 -0
  27. pytest_jsonschema_snapshot-0.2.0/pytest_jsonschema_snapshot/stats.py +185 -0
  28. pytest_jsonschema_snapshot-0.2.0/pytest_jsonschema_snapshot/tools/__init__.py +4 -0
  29. pytest_jsonschema_snapshot-0.2.0/pytest_jsonschema_snapshot/tools/genson_addon/__init__.py +3 -0
  30. pytest_jsonschema_snapshot-0.2.0/pytest_jsonschema_snapshot/tools/genson_addon/format_detector.py +52 -0
  31. pytest_jsonschema_snapshot-0.2.0/pytest_jsonschema_snapshot/tools/genson_addon/to_schema_converter.py +119 -0
  32. pytest_jsonschema_snapshot-0.2.0/pytest_jsonschema_snapshot/tools/name_maker.py +153 -0
  33. pytest_jsonschema_snapshot-0.2.0/reinstall_plugin.sh +57 -0
  34. pytest_jsonschema_snapshot-0.2.0/requirements.txt +20 -0
  35. pytest_jsonschema_snapshot-0.2.0/tests/test_stats.py +102 -0
  36. pytest_jsonschema_snapshot-0.2.0/tests/tools/test_name_maker.py +233 -0
  37. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/TestDataClass.get_data.first.json +8 -0
  38. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/TestDataClass.get_data.first.schema.json +32 -0
  39. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/TestDataClass.get_data.json +8 -0
  40. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/TestDataClass.get_data.schema.json +32 -0
  41. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/array_formats_test.json +16 -0
  42. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/array_formats_test.schema.json +32 -0
  43. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/date_test.json +4 -0
  44. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/date_test.schema.json +18 -0
  45. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/datetime_test.json +4 -0
  46. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/datetime_test.schema.json +18 -0
  47. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/email_test.json +4 -0
  48. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/email_test.schema.json +18 -0
  49. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/get_data.first.json +8 -0
  50. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/get_data.first.schema.json +32 -0
  51. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/get_data.json +8 -0
  52. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/get_data.schema.json +32 -0
  53. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/ipv4_test.json +4 -0
  54. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/ipv4_test.schema.json +18 -0
  55. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/mixed_formats_test.json +8 -0
  56. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/mixed_formats_test.schema.json +38 -0
  57. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/multi_schema_one.json +3 -0
  58. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/multi_schema_three.json +3 -0
  59. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/multi_schema_two.json +3 -0
  60. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/regular_strings_test.json +5 -0
  61. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/regular_strings_test.schema.json +20 -0
  62. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/some_schema.json +53 -0
  63. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/some_schema.schema.json +156 -0
  64. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/strict_email_validation_test.json +3 -0
  65. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/strict_email_validation_test.schema.json +13 -0
  66. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/uri_test.json +4 -0
  67. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/uri_test.schema.json +18 -0
  68. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/uuid_test.json +4 -0
  69. pytest_jsonschema_snapshot-0.2.0/tests/usage/__snapshots__/uuid_test.schema.json +18 -0
  70. pytest_jsonschema_snapshot-0.2.0/tests/usage/test_base.py +44 -0
  71. pytest_jsonschema_snapshot-0.2.0/tests/usage/test_base_name_callable.py +45 -0
  72. pytest_jsonschema_snapshot-0.2.0/tests/usage/test_format_detection.py +84 -0
  73. pytest_jsonschema_snapshot-0.2.0/tests/usage/test_format_validation.py +10 -0
  74. pytest_jsonschema_snapshot-0.2.0/tests/usage/test_multiple_schema_creation.py +30 -0
@@ -0,0 +1,13 @@
1
+ [flake8]
2
+ max-line-length = 100
3
+ extend-ignore = E203,W503
4
+ exclude =
5
+ .git,
6
+ __pycache__,
7
+ .venv,
8
+ build,
9
+ dist,
10
+ *.egg-info,
11
+ docs/_build
12
+ per-file-ignores =
13
+ __init__.py:F401
@@ -0,0 +1,43 @@
1
+ name: "🐛 Bug report"
2
+ description: Report something that isn’t working as intended
3
+ title: "[Bug] <short title>"
4
+ labels: ["bug"]
5
+ assignees: ["miskler"]
6
+
7
+ body:
8
+ - type: markdown
9
+ attributes:
10
+ value: |
11
+ **Thanks for taking the time to report a bug!**
12
+
13
+ - type: textarea
14
+ id: steps
15
+ attributes:
16
+ label: What did you do?
17
+ description: Step-by-step commands or actions to reproduce the issue.
18
+ render: plaintext
19
+ validations:
20
+ required: true
21
+
22
+ - type: textarea
23
+ id: actual
24
+ attributes:
25
+ label: What happened?
26
+ description: Paste error messages or describe the incorrect behaviour. Logs can be attached below.
27
+ render: plaintext
28
+ validations:
29
+ required: true
30
+
31
+ - type: textarea
32
+ id: expected
33
+ attributes:
34
+ label: What did you expect to happen?
35
+ render: plaintext
36
+ validations:
37
+ required: true
38
+
39
+ - type: textarea
40
+ id: logs
41
+ attributes:
42
+ label: Logs / screenshots
43
+ description: Drag & drop log files or screenshots here.
@@ -0,0 +1,9 @@
1
+ blank_issues_enabled: false
2
+
3
+ contact_links:
4
+ - name: 📖 Read the docs
5
+ url: https://miskler.github.io/pytest-jsonschema-snapshot/basic/quick_start.html
6
+ about: Start here for “how-to” questions.
7
+ - name: 💬 Discord server (Discussions)
8
+ url: https://discord.gg/UnJnGHNbBp
9
+ about: General Q&A and community support.
@@ -0,0 +1,33 @@
1
+ name: "📚 Docs issue"
2
+ description: Flag inaccurate or missing documentation
3
+ title: "[Docs] <short title>"
4
+ labels: ["documentation"]
5
+ assignees: ["miskler"]
6
+
7
+ body:
8
+ - type: markdown
9
+ attributes:
10
+ value: |
11
+ **Help us keep the docs sharp!**
12
+
13
+ - type: input
14
+ id: url
15
+ attributes:
16
+ label: Link to the problematic page
17
+ placeholder: "https://example.com/docs/..."
18
+ validations:
19
+ required: true
20
+
21
+ - type: textarea
22
+ id: problem
23
+ attributes:
24
+ label: What’s broken or unclear?
25
+ render: markdown
26
+ validations:
27
+ required: true
28
+
29
+ - type: textarea
30
+ id: screenshots
31
+ attributes:
32
+ label: Screenshots (optional)
33
+ description: Drag & drop images if they help illustrate the issue.
@@ -0,0 +1,36 @@
1
+ name: "✨ Feature request"
2
+ description: Suggest an idea to improve the project
3
+ title: "[Feature] <short title>"
4
+ labels: ["feature", "enhancement"]
5
+ assignees: ["miskler"]
6
+
7
+ body:
8
+ - type: markdown
9
+ attributes:
10
+ value: |
11
+ **Thank you for helping us grow!**
12
+ Please fill out the fields below; mock-ups/screenshots are welcome.
13
+
14
+ - type: input
15
+ id: what
16
+ attributes:
17
+ label: What do you want to achieve?
18
+ placeholder: "e.g. Support dark mode in the web UI"
19
+ validations:
20
+ required: true
21
+
22
+ - type: textarea
23
+ id: how
24
+ attributes:
25
+ label: How should it look/work?
26
+ description: |
27
+ Describe the desired behaviour. Plain text is mandatory; you can drag-and-drop images below if helpful.
28
+ render: markdown
29
+ validations:
30
+ required: true
31
+
32
+ - type: textarea
33
+ id: context
34
+ attributes:
35
+ label: Additional context / attachments
36
+ description: Drag & drop any images or diagrams here.
@@ -0,0 +1,32 @@
1
+ <!--
2
+ This template auto-labels and assigns the PR.
3
+ Tick *one* “Type of change” checkbox ↓ to tag the PR correctly.
4
+ -->
5
+
6
+ # 📌 Summary
7
+ <!-- What problem does this PR solve? 1-2 sentences -->
8
+
9
+ Fixes #
10
+
11
+ ---
12
+
13
+ ## 🗂️ Type of change
14
+ <!-- Select exactly one - press x in selection -->
15
+ - [ ] 🐛 **Bug fix**
16
+ - [ ] ✨ **New feature**
17
+ - [ ] 📝 **Documentation**
18
+ - [ ] ♻️ **Refactor**
19
+ - [ ] 🔧 **Build / CI**
20
+ - [ ] 🚀 **Performance**
21
+ - [ ] 🧹 **Chore**
22
+
23
+ ---
24
+
25
+ ## 📷 Screenshots / GIF (optional)
26
+
27
+ ---
28
+
29
+ ## ✅ Pre-merge checklist
30
+ - [ ] I ran all tests / lints / type-checks
31
+ - [ ] I updated documentation (if needed)
32
+ - [ ] I added/updated unit tests
@@ -0,0 +1,45 @@
1
+ name: 'Build Documentation'
2
+ description: 'Build all documentation (main + examples) for pytest-jsonschema-snapshot'
3
+ outputs:
4
+ site-path:
5
+ description: 'Path to the built site'
6
+ value: ${{ steps.build.outputs.site-path }}
7
+ runs:
8
+ using: 'composite'
9
+ steps:
10
+ - name: Build main documentation
11
+ shell: bash
12
+ run: |
13
+ make docs
14
+
15
+ - name: Move build to _site
16
+ id: build
17
+ shell: bash
18
+ run: |
19
+ # Create main site structure
20
+ mkdir -p _site
21
+ cp -r docs/_build/html/* _site/
22
+
23
+ - name: Move coverage to _site
24
+ shell: bash
25
+ run: |
26
+ # Add coverage report
27
+ mkdir -p _site/coverage
28
+ cp -r htmlcov/* _site/coverage/
29
+ # Add coverage badge
30
+ cp coverage.svg _site/
31
+
32
+ - name: Move tests to _site
33
+ shell: bash
34
+ run: |
35
+ # Add tests report
36
+ mkdir -p _site/tests
37
+ cp -r tests-report.html _site/tests/
38
+
39
+ # Add tests badge
40
+ cp tests-badge.svg _site/
41
+
42
+ - name: Return output
43
+ shell: bash
44
+ run: |
45
+ echo "site-path=_site" >> $GITHUB_OUTPUT
@@ -0,0 +1,122 @@
1
+ name: Release Pipeline
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+ workflow_dispatch:
7
+ inputs:
8
+ action:
9
+ description: 'Choose what to execute'
10
+ required: true
11
+ default: 'all'
12
+ type: choice
13
+ options:
14
+ - 'all'
15
+ - 'pypi-publish'
16
+ - 'docs-build-publish'
17
+
18
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
19
+ permissions:
20
+ contents: read
21
+ pages: write
22
+ id-token: write
23
+
24
+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
25
+ concurrency:
26
+ group: "release"
27
+ cancel-in-progress: false
28
+
29
+ jobs:
30
+ # Step 1: Run tests and linting
31
+ test:
32
+ if: ${{ github.event_name == 'release' || github.event.inputs.action == 'all' || github.event.inputs.action == 'pypi-publish' || github.event.inputs.action == 'docs-build-publish' }}
33
+ uses: ./.github/workflows/reusable-test.yml
34
+ with:
35
+ upload-coverage: true
36
+
37
+ # Step 2: Build and deploy documentation
38
+ build-and-deploy-docs:
39
+ if: ${{ github.event_name == 'release' || github.event.inputs.action == 'all' || github.event.inputs.action == 'docs-build-publish' }}
40
+ runs-on: ubuntu-latest
41
+ needs: test
42
+ environment:
43
+ name: github-pages
44
+ url: ${{ steps.deployment.outputs.page_url }}
45
+ steps:
46
+ - name: Checkout
47
+ uses: actions/checkout@v4
48
+
49
+ - name: Setup Python 3.12 + deps
50
+ uses: actions/setup-python@v5
51
+ with:
52
+ python-version: '3.12'
53
+ cache: 'pip'
54
+ cache-dependency-path: |
55
+ **/pyproject.toml
56
+ **/requirements*.txt
57
+
58
+ - name: Install dev / docs dependencies
59
+ run: |
60
+ make install-dev
61
+
62
+ - name: Download coverage artifacts
63
+ uses: actions/download-artifact@v4
64
+ with:
65
+ name: coverage-reports
66
+ path: ./
67
+
68
+ - name: Setup Pages
69
+ uses: actions/configure-pages@v4
70
+
71
+ - name: Build Documentation
72
+ uses: ./.github/actions/build-docs
73
+
74
+ - name: Upload artifact
75
+ uses: actions/upload-pages-artifact@v3
76
+ with:
77
+ path: './_site'
78
+
79
+ - name: Deploy to GitHub Pages
80
+ id: deployment
81
+ uses: actions/deploy-pages@v4
82
+
83
+ # Step 3: Publish to PyPI
84
+ publish:
85
+ if: ${{ github.event_name == 'release' || github.event.inputs.action == 'all' || github.event.inputs.action == 'pypi-publish' }}
86
+ runs-on: ubuntu-latest
87
+ needs: test
88
+ environment: release
89
+
90
+ steps:
91
+ - name: Checkout code
92
+ uses: actions/checkout@v4
93
+
94
+ - name: Setup Python 3.12 + deps
95
+ uses: actions/setup-python@v5
96
+ with:
97
+ python-version: '3.12'
98
+ cache: 'pip'
99
+ cache-dependency-path: |
100
+ **/pyproject.toml
101
+ **/requirements*.txt
102
+
103
+ - name: Install dev / docs dependencies
104
+ run: |
105
+ make install-dev
106
+
107
+ - name: Install build dependencies
108
+ run: |
109
+ pip install build twine
110
+
111
+ - name: Build package
112
+ run: |
113
+ python -m build
114
+
115
+ - name: Check package
116
+ run: |
117
+ twine check dist/*
118
+
119
+ - name: Publish to PyPI
120
+ uses: pypa/gh-action-pypi-publish@release/v1
121
+ with:
122
+ verify-metadata: false
@@ -0,0 +1,133 @@
1
+ name: "Reusable Test Workflow"
2
+
3
+ on:
4
+ workflow_call:
5
+ inputs:
6
+ upload-coverage:
7
+ type: boolean
8
+ default: false
9
+ python-versions:
10
+ type: string
11
+ default: '["3.10","3.11","3.12","3.13"]'
12
+
13
+ concurrency:
14
+ group: ${{ github.workflow }}-${{ github.ref }}
15
+ cancel-in-progress: true
16
+
17
+ jobs:
18
+ tests:
19
+ runs-on: ubuntu-latest
20
+ strategy:
21
+ fail-fast: false
22
+ matrix:
23
+ python-version: ${{ fromJson(inputs.python-versions) }}
24
+ include:
25
+ - python-version: "3.12"
26
+ primary: true
27
+ steps:
28
+ - uses: actions/checkout@v4
29
+
30
+ - name: Setup Python ${{ matrix.python-version }}
31
+ uses: actions/setup-python@v5
32
+ with:
33
+ python-version: ${{ matrix.python-version }}
34
+ cache: "pip"
35
+ cache-dependency-path: |
36
+ **/pyproject.toml
37
+ **/requirements*.txt
38
+
39
+ - name: Install dev deps
40
+ run: make install-dev # pytest, flake8, mypy, …
41
+
42
+ - name: Run tests
43
+ run: |
44
+ pytest -n auto \
45
+ --cov=pytest_jsonschema_snapshot \
46
+ --cov-report=xml \
47
+ --cov-report=html \
48
+ --cov-report=term \
49
+ --junitxml=junit.xml
50
+
51
+ - name: Upload raw reports
52
+ if: always()
53
+ uses: actions/upload-artifact@v4
54
+ with:
55
+ name: junit-${{ matrix.python-version }}
56
+ path: |
57
+ htmlcov/
58
+ junit.xml
59
+ coverage.xml
60
+
61
+ reports:
62
+ needs: tests
63
+ if: contains(fromJson(inputs.python-versions), '3.12') && inputs.upload-coverage
64
+ runs-on: ubuntu-latest
65
+
66
+ steps:
67
+ - uses: actions/download-artifact@v4
68
+ with:
69
+ pattern: junit-3.12
70
+ merge-multiple: true
71
+
72
+ - uses: actions/setup-python@v5
73
+ with:
74
+ python-version: "3.12"
75
+
76
+ - name: Install reporting tools
77
+ run: python -m pip install --no-cache-dir "genbadge[all]" junit2html
78
+
79
+ - name: Generate badges & HTML report
80
+ run: |
81
+ genbadge tests -i junit.xml -o tests-badge.svg
82
+ genbadge coverage -i coverage.xml -o coverage.svg
83
+ junit2html junit.xml tests-report.html
84
+
85
+ - name: Upload test results to Codecov
86
+ if: ${{ !cancelled() }}
87
+ uses: codecov/test-results-action@v1
88
+ with:
89
+ token: ${{ secrets.CODECOV_TOKEN }}
90
+
91
+ - name: Upload coverage to Codecov
92
+ uses: codecov/codecov-action@v5
93
+ with:
94
+ token: ${{ secrets.CODECOV_TOKEN }}
95
+
96
+ - name: Upload final artifacts
97
+ uses: actions/upload-artifact@v4
98
+ with:
99
+ name: coverage-reports
100
+ path: |
101
+ htmlcov/
102
+ coverage.xml
103
+ coverage.svg
104
+ tests-badge.svg
105
+ tests-report.html
106
+
107
+ lint:
108
+ runs-on: ubuntu-latest
109
+ steps:
110
+ - uses: actions/checkout@v4
111
+ - uses: actions/setup-python@v5
112
+ with:
113
+ python-version: "3.12"
114
+ cache: "pip"
115
+ cache-dependency-path: |
116
+ **/pyproject.toml
117
+ **/requirements*.txt
118
+ - run: make install-dev # flake8 уже придёт
119
+ - run: make lint
120
+
121
+ type-check:
122
+ runs-on: ubuntu-latest
123
+ steps:
124
+ - uses: actions/checkout@v4
125
+ - uses: actions/setup-python@v5
126
+ with:
127
+ python-version: "3.12"
128
+ cache: "pip"
129
+ cache-dependency-path: |
130
+ **/pyproject.toml
131
+ **/requirements*.txt
132
+ - run: make install-dev # mypy уже придёт
133
+ - run: make type-check
@@ -0,0 +1,14 @@
1
+ name: Tests
2
+
3
+ on:
4
+ pull_request:
5
+ branches: [ main, develop ]
6
+ push:
7
+ branches: [ develop ]
8
+ workflow_dispatch:
9
+
10
+ jobs:
11
+ test:
12
+ uses: ./.github/workflows/reusable-test.yml
13
+ with:
14
+ upload-coverage: false
@@ -0,0 +1,174 @@
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
+ # 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
+
110
+ # pdm
111
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
112
+ #pdm.lock
113
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
114
+ # in version control.
115
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
116
+ .pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
121
+ __pypackages__/
122
+
123
+ # Celery stuff
124
+ celerybeat-schedule
125
+ celerybeat.pid
126
+
127
+ # SageMath parsed files
128
+ *.sage.py
129
+
130
+ # Environments
131
+ .env
132
+ .venv
133
+ env/
134
+ venv/
135
+ ENV/
136
+ env.bak/
137
+ venv.bak/
138
+
139
+ # Spyder project settings
140
+ .spyderproject
141
+ .spyproject
142
+
143
+ # Rope project settings
144
+ .ropeproject
145
+
146
+ # mkdocs documentation
147
+ /site
148
+
149
+ # mypy
150
+ .mypy_cache/
151
+ .dmypy.json
152
+ dmypy.json
153
+
154
+ # Pyre type checker
155
+ .pyre/
156
+
157
+ # pytype static type analyzer
158
+ .pytype/
159
+
160
+ # Cython debug symbols
161
+ cython_debug/
162
+
163
+ # PyCharm
164
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
165
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
166
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
167
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
168
+ #.idea/
169
+
170
+ # Ruff stuff:
171
+ .ruff_cache/
172
+
173
+ # PyPI configuration file
174
+ .pypirc
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Open Inflation
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.