pip_search_ng 0.5.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 (47) hide show
  1. pip_search_ng-0.5.0/.github/dependabot.yml +8 -0
  2. pip_search_ng-0.5.0/.github/workflows/ci.yml +62 -0
  3. pip_search_ng-0.5.0/.github/workflows/tag-release.yml +119 -0
  4. pip_search_ng-0.5.0/.gitignore +154 -0
  5. pip_search_ng-0.5.0/.ruff.toml +107 -0
  6. pip_search_ng-0.5.0/.vscode/launch.json +21 -0
  7. pip_search_ng-0.5.0/.vscode/settings.json +5 -0
  8. pip_search_ng-0.5.0/CHANGELOG.md +92 -0
  9. pip_search_ng-0.5.0/LICENSE +22 -0
  10. pip_search_ng-0.5.0/PKG-INFO +125 -0
  11. pip_search_ng-0.5.0/README.md +88 -0
  12. pip_search_ng-0.5.0/USE_POLICY.md +20 -0
  13. pip_search_ng-0.5.0/pyproject.toml +83 -0
  14. pip_search_ng-0.5.0/screenshot.jpg +0 -0
  15. pip_search_ng-0.5.0/src/pip_search/__init__.py +7 -0
  16. pip_search_ng-0.5.0/src/pip_search/cli/__init__.py +95 -0
  17. pip_search_ng-0.5.0/src/pip_search/cli/__main__.py +6 -0
  18. pip_search_ng-0.5.0/src/pip_search/http/__init__.py +3 -0
  19. pip_search_ng-0.5.0/src/pip_search/http/client.py +88 -0
  20. pip_search_ng-0.5.0/src/pip_search/http/tracing.py +38 -0
  21. pip_search_ng-0.5.0/src/pip_search/internal/__init__.py +3 -0
  22. pip_search_ng-0.5.0/src/pip_search/internal/challenge_solvers/__init__.py +29 -0
  23. pip_search_ng-0.5.0/src/pip_search/internal/challenge_solvers/errors.py +79 -0
  24. pip_search_ng-0.5.0/src/pip_search/internal/challenge_solvers/fastly.py +163 -0
  25. pip_search_ng-0.5.0/src/pip_search/internal/challenge_solvers/metrics.py +28 -0
  26. pip_search_ng-0.5.0/src/pip_search/internal/challenge_solvers/parser.py +70 -0
  27. pip_search_ng-0.5.0/src/pip_search/internal/challenge_solvers/pat.py +49 -0
  28. pip_search_ng-0.5.0/src/pip_search/internal/challenge_solvers/pow.py +94 -0
  29. pip_search_ng-0.5.0/src/pip_search/internal/challenge_solvers/response_builder.py +59 -0
  30. pip_search_ng-0.5.0/src/pip_search/internal/challenge_solvers/types.py +76 -0
  31. pip_search_ng-0.5.0/src/pip_search/internal/fingerprint/__init__.py +46 -0
  32. pip_search_ng-0.5.0/src/pip_search/internal/fingerprint/checksum.py +17 -0
  33. pip_search_ng-0.5.0/src/pip_search/internal/fingerprint/fingerprint.json +48 -0
  34. pip_search_ng-0.5.0/src/pip_search/internal/fingerprint/fingerprint.json.crc32 +1 -0
  35. pip_search_ng-0.5.0/src/pip_search/internal/fingerprint/provider.py +15 -0
  36. pip_search_ng-0.5.0/src/pip_search/pip_search.py +291 -0
  37. pip_search_ng-0.5.0/src/pip_search/utils.py +8 -0
  38. pip_search_ng-0.5.0/tests/__init__.py +1 -0
  39. pip_search_ng-0.5.0/tests/pip_search/http/test_tracing.py +15 -0
  40. pip_search_ng-0.5.0/tests/pip_search/internal/challenge_solvers/test_fastly_solver.py +114 -0
  41. pip_search_ng-0.5.0/tests/pip_search/internal/challenge_solvers/test_parser.py +53 -0
  42. pip_search_ng-0.5.0/tests/pip_search/internal/challenge_solvers/test_pow.py +91 -0
  43. pip_search_ng-0.5.0/tests/pip_search/internal/challenge_solvers/test_providers.py +54 -0
  44. pip_search_ng-0.5.0/tests/pip_search/internal/challenge_solvers/test_response_builder.py +81 -0
  45. pip_search_ng-0.5.0/tests/pip_search/internal/fingerprint/test_checksum.py +31 -0
  46. pip_search_ng-0.5.0/tests/pip_search/test_pip_search.py +18 -0
  47. pip_search_ng-0.5.0/uv.lock +714 -0
@@ -0,0 +1,8 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "uv"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
7
+ cooldown:
8
+ default-days: 7
@@ -0,0 +1,62 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ branches:
9
+ - "**"
10
+ workflow_call:
11
+
12
+ permissions: {}
13
+
14
+ concurrency:
15
+ # github.workflow names the caller during workflow_call; keep this group distinct.
16
+ group: ci-${{ github.ref }}
17
+ cancel-in-progress: true
18
+
19
+ jobs:
20
+ checks:
21
+ name: Checks
22
+ runs-on: ubuntu-24.04
23
+ permissions:
24
+ contents: read
25
+
26
+ steps:
27
+ - name: Checkout repository
28
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
29
+ with:
30
+ persist-credentials: false
31
+
32
+ - name: Set up Python
33
+ uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
34
+ with:
35
+ python-version: "3.14"
36
+
37
+ - name: Set up uv
38
+ uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
39
+
40
+ - name: Sync dependencies
41
+ run: uv sync --locked
42
+
43
+ - name: Run checks
44
+ run: uv run --locked poe check
45
+
46
+ - name: Run tests
47
+ run: uv run --locked poe test
48
+
49
+ zizmor:
50
+ name: zizmor
51
+ runs-on: ubuntu-latest
52
+ permissions:
53
+ contents: read
54
+ security-events: write # Upload zizmor SARIF results
55
+ steps:
56
+ - name: Checkout repository
57
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
58
+ with:
59
+ persist-credentials: false
60
+
61
+ - name: Run zizmor
62
+ uses: its-me/action.zizmor@392b0dc19f1522c07e51606686176c0fbff54750 # v1.0.6
@@ -0,0 +1,119 @@
1
+ name: Tag Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+ workflow_dispatch:
8
+
9
+ permissions: {}
10
+
11
+ concurrency:
12
+ group: ${{ github.workflow }}-${{ github.ref }}
13
+ cancel-in-progress: true
14
+
15
+ env:
16
+ RELEASE_TAG: ${{ github.ref_name }}
17
+
18
+ jobs:
19
+ validate:
20
+ name: Validate release
21
+ permissions:
22
+ contents: read
23
+ security-events: write # Upload zizmor SARIF results
24
+ uses: $/.github/workflows/ci.yml
25
+
26
+ build:
27
+ name: Build (sdist + wheel)
28
+ needs: [validate]
29
+ runs-on: ubuntu-24.04
30
+ permissions:
31
+ contents: read
32
+
33
+ steps:
34
+ - name: Checkout repository
35
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
36
+ with:
37
+ fetch-depth: 0
38
+ persist-credentials: false
39
+ ref: ${{ env.RELEASE_TAG }}
40
+
41
+ - name: Set up Python
42
+ uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
43
+ with:
44
+ python-version: "3.14"
45
+
46
+ - name: Set up uv
47
+ uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
48
+ with:
49
+ enable-cache: false
50
+
51
+ - name: Build sdist + wheel
52
+ run: uv build
53
+
54
+ - name: Upload dist artifacts
55
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
56
+ with:
57
+ name: dist
58
+ path: dist/*
59
+
60
+ publish-github:
61
+ name: Create GitHub Release
62
+ needs: [build]
63
+ runs-on: ubuntu-24.04
64
+
65
+ permissions:
66
+ contents: write # create and upload the release
67
+
68
+ steps:
69
+ - name: Download dist artifacts
70
+ uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
71
+ with:
72
+ name: dist
73
+ path: dist
74
+
75
+ - name: Create GitHub Release
76
+ run: >-
77
+ gh release create "$RELEASE_TAG" dist/*
78
+ --repo "$GITHUB_REPOSITORY"
79
+ --title "$RELEASE_TAG"
80
+ --generate-notes
81
+ --latest
82
+ env:
83
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
84
+
85
+ publish-pypi:
86
+ name: Publish to PyPI
87
+ needs: [build]
88
+ runs-on: ubuntu-24.04
89
+
90
+ environment:
91
+ name: pypi
92
+ url: https://pypi.org/p/pip-search-ng
93
+
94
+ permissions:
95
+ id-token: write # Trusted Publishing and PEP 740 attestations
96
+ contents: read
97
+
98
+ steps:
99
+ - name: Download dist artifacts
100
+ uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
101
+ with:
102
+ name: dist
103
+ path: dist
104
+
105
+ - name: Set up Python
106
+ uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
107
+ with:
108
+ python-version: "3.14"
109
+
110
+ - name: Set up uv
111
+ uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
112
+ with:
113
+ enable-cache: false
114
+
115
+ - name: Generate PEP 740 attestations
116
+ uses: astral-sh/attest-action@39b6ce43875c196a579e31635b11aa2a2036384a # v0.0.7
117
+
118
+ - name: Publish to PyPI
119
+ run: uv publish
@@ -0,0 +1,154 @@
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
+ # poetry
98
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102
+ #poetry.lock
103
+
104
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
105
+ __pypackages__/
106
+
107
+ # Celery stuff
108
+ celerybeat-schedule
109
+ celerybeat.pid
110
+
111
+ # SageMath parsed files
112
+ *.sage.py
113
+
114
+ # Environments
115
+ .env
116
+ .venv
117
+ env/
118
+ venv/
119
+ ENV/
120
+ env.bak/
121
+ venv.bak/
122
+
123
+ # Spyder project settings
124
+ .spyderproject
125
+ .spyproject
126
+
127
+ # Rope project settings
128
+ .ropeproject
129
+
130
+ # mkdocs documentation
131
+ /site
132
+
133
+ # mypy
134
+ .mypy_cache/
135
+ .dmypy.json
136
+ dmypy.json
137
+
138
+ # Pyre type checker
139
+ .pyre/
140
+
141
+ # pytype static type analyzer
142
+ .pytype/
143
+
144
+ # Cython debug symbols
145
+ cython_debug/
146
+
147
+ # PyCharm
148
+ # JetBrains specific template is maintainted in a separate JetBrains.gitignore that can
149
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
150
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
151
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
152
+ #.idea/
153
+ /.python-version
154
+ .DS_Store
@@ -0,0 +1,107 @@
1
+ # Python version target for modernizations
2
+ target-version = "py314"
3
+ line-length = 100 # From upgrade/pyproject.toml
4
+ #indent-width = 2
5
+ respect-gitignore = true
6
+
7
+ # Files to exclude
8
+ exclude = [
9
+ ".git",
10
+ "__pycache__",
11
+ ".venv",
12
+ "build",
13
+ "dist",
14
+ "*.egg-info",
15
+ ".pytest_cache",
16
+ ".mypy_cache",
17
+ ".ruff_cache",
18
+ ]
19
+
20
+ [lint]
21
+ # Comprehensive rule selection combining modernization + code quality
22
+ select = [
23
+ # Core Python modernization (our priority)
24
+ "UP", # pyupgrade - modernize Python code for target version
25
+ "FA", # flake8-future-annotations - add future annotations import
26
+ "ANN204", # flake8-annotations - require return type for __init__
27
+ "TCH", # flake8-type-checking - move imports under TYPE_CHECKING
28
+ "PYI", # flake8-pyi - type stub files best practices
29
+
30
+ # Code quality from upgrade/pyproject.toml
31
+ "E", # pycodestyle errors
32
+ "W", # pycodestyle warnings
33
+ "F", # pyflakes
34
+ "I", # isort - import sorting
35
+ "N", # pep8-naming
36
+ "B", # flake8-bugbear
37
+ "C4", # flake8-comprehensions
38
+ "SIM", # flake8-simplify
39
+ "RUF", # ruff-specific rules
40
+ "PT", # flake8-pytest-style
41
+ "PIE", # flake8-pie
42
+ "COM", # flake8-commas
43
+ ]
44
+
45
+ # Specific modernization rules to enforce
46
+ extend-select = [
47
+ # Python 3.10+ type hint modernization
48
+ "UP006", # Use `list` instead of `List` for type annotations
49
+ "UP007", # Use `X | Y` for union types instead of `Optional`
50
+ "UP035", # Import from collections.abc instead of typing
51
+ "UP037", # Remove quotes from annotations when possible
52
+ "UP040", # Type alias with TypeAlias annotation
53
+
54
+ # Future annotations
55
+ "FA100", # Add `from __future__ import annotations` when needed
56
+ "FA102", # Add `from __future__ import annotations` for PEP 604 unions
57
+ ]
58
+
59
+ ignore = [
60
+ # From upgrade/pyproject.toml (preserve these)
61
+ "E501", # line too long (handled by formatter)
62
+ "B008", # do not perform function calls in argument defaults
63
+ "N818", # exception name should be named with an Error suffix
64
+ "COM812", # trailing comma missing (handled by formatter)
65
+ "S101", # security issues
66
+ "PT011", # pytest-style
67
+
68
+ # Avoid conflicts with modernization goals
69
+ "T201", # print found (keep prints for now)
70
+ "T20", # Remove T20 from select since we're ignoring T201
71
+ ]
72
+
73
+ # Allow automatic fixes including unsafe ones
74
+ unfixable = []
75
+
76
+ # Per-file ignores
77
+ [lint.per-file-ignores]
78
+ "test_*.py" = ["T201"] # Allow print in tests
79
+ "*_test.py" = ["T201"] # Allow print in tests
80
+
81
+ [lint.pyupgrade]
82
+ # Use Python 3.10+ style type hints
83
+ keep-runtime-typing = false
84
+
85
+ [lint.flake8-annotations]
86
+ # Configuration for annotation rules
87
+ allow-star-arg-any = true
88
+ suppress-none-returning = false
89
+ mypy-init-return = true # Require -> None for __init__
90
+
91
+ [lint.isort]
92
+ # Import sorting configuration
93
+ force-single-line = false
94
+ length-sort-straight = true
95
+
96
+ [lint.flake8-bugbear]
97
+ # Allow common patterns
98
+ extend-immutable-calls = ["fastapi.Depends", "fastapi.Query", "pydantic.Field"]
99
+
100
+ [format]
101
+ # Code formatting options
102
+ quote-style = "double"
103
+ indent-style = "space"
104
+ skip-magic-trailing-comma = false
105
+ line-ending = "auto"
106
+ docstring-code-format = true # Format code in docstrings
107
+ docstring-code-line-length = 88 # Shorter lines in docstrings
@@ -0,0 +1,21 @@
1
+ {
2
+ // Use IntelliSense to learn about possible attributes.
3
+ // Hover to view descriptions of existing attributes.
4
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
+ "version": "0.2.0",
6
+ "configurations": [
7
+ {
8
+ "name": "Python: Module",
9
+ "type": "python",
10
+ "request": "launch",
11
+ "module": "pip_search",
12
+ "args": [
13
+ "--sort",
14
+ "name",
15
+ "bs4 ",
16
+ "--date_format",
17
+ "%Y-%m-%d",
18
+ ]
19
+ }
20
+ ]
21
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "python.linting.flake8Enabled": true,
3
+ "python.linting.enabled": true,
4
+ "python.pythonPath": "venv/bin/python"
5
+ }
@@ -0,0 +1,92 @@
1
+ ### 0.5.0
2
+
3
+ - Rebrand to pip-search-ng
4
+ - Release on PyPi
5
+
6
+ ### 0.3.0 - 0.4.7
7
+
8
+ - Move this log to CHANGELOG.md (from README.md)
9
+ - README.md: update installation instructions (@God-damnit-all)
10
+ - chore: deprecate Python < 3.14
11
+ - chore(fix):
12
+ - Errors reported by linters
13
+ - GH actions
14
+ - Narrow expected exception catches
15
+ - Centralize Fastly, parser, and PoW exception messages on exception
16
+ classes
17
+ - Rework mock side-effect setup so vulture can analyze it
18
+ - Refactor version fallback handling to satisfy return-count lint.
19
+ - Cap async version-fetch connection pools to the semaphore concurrency
20
+ limit
21
+ - Update dependencies and GitHub actions
22
+
23
+ ### 0.2.1
24
+
25
+ - README.md: refer link to Acceptable Use Policy and add "2026 edition"
26
+
27
+ ### 0.2.0
28
+
29
+ - `--debug` changed to `--log-level`
30
+ - HTTP tracing moved to TRACE log level
31
+ - LICENSE update: Acceptable Use Policy
32
+
33
+ ### 0.1.0
34
+
35
+ - Migrate packaging/build to `pyproject.toml` + Hatch, define `project.scripts`, and align dev workflows with `uv` + Poe tasks (`lint`, `typecheck`, `test`).
36
+ - Move from a legacy flat module layout to a structured package split: `cli/`, `http/`, `internal/`, and typed domain models (`dataclass`, `StrEnum`, protocols).
37
+ - Fix passing through CAPTCHA: add a new Fastly challenge solver orchestration flow:
38
+ - `FastlyChallengeSolver` handles probe -> script fetch -> parse -> round-based post-back.
39
+ - Pluggable providers for PAT, PoW, and client metrics.
40
+ - Robust parser/error taxonomy and explicit unsolvable handling (e.g., CAPTCHA).
41
+ - Improve HTTP layer via a custom `httpx.Client` wrapper with request/response tracing and sensitive-header redaction.
42
+ - Add Loguru-based `--log-level` control (default `WARNING`; levels: `TRACE`, `DEBUG`, `INFO`, `SUCCESS`, `WARNING`, `ERROR`, `CRITICAL`).
43
+ - Scope verbose HTTP request/response tracing to `TRACE`; keep `DEBUG` focused on internal solver/search diagnostics.
44
+ - Refactor search pipeline for clearer config/options handling, stronger typing, and concurrent missing-version resolution.
45
+ - Expand tests significantly around challenge parsing/solving, providers, response builder, tracing, and search behavior.
46
+
47
+ ### 0.0.14
48
+
49
+ - Passing through CAPTCHA
50
+
51
+ ### 0.0.13
52
+
53
+ - Updated for version info
54
+
55
+ ### 0.0.12
56
+
57
+ - Updated to comply with new PyPi.org format
58
+
59
+ ### 0.0.11
60
+
61
+ - Add date format options
62
+
63
+ ### 0.0.10
64
+
65
+ - Add sorting options
66
+ - Changes thanks to @dsoares and @genevera
67
+
68
+ ### 0.0.9
69
+
70
+ - Hotfix for Python 3.8 to 3.10 compatibility
71
+ - Changes thanks to @jiyeqian
72
+
73
+ ### 0.0.8 *(deleted for compatibility issues with python 3.8 to 3.10)*
74
+
75
+ - Updated for better compatibility and better display
76
+ - Changes thanks to @RCristiano
77
+
78
+ ### 0.0.7
79
+
80
+ - Merge from pip_search_color, colorized output with hyperlink features
81
+ - Changes thanks to @kkatayama
82
+
83
+ ### 0.0.6
84
+
85
+ - Parsing with beautiful soup, allowing results with one package to be parsed
86
+ - Changes thanks to @nsultova
87
+
88
+ ### 0.0.4
89
+
90
+ - Add multiple keywords support
91
+ - Add usage info
92
+ - Changes thanks to @Maxz44
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Victor Garric
4
+ Copyright (c) 2026 Peter A.
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.