pslr 1.0.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 (46) hide show
  1. pslr-1.0.0/.cargo/config.toml +5 -0
  2. pslr-1.0.0/.editorconfig +17 -0
  3. pslr-1.0.0/.github/CODE_OF_CONDUCT.md +1 -0
  4. pslr-1.0.0/.github/ISSUE_TEMPLATE/config.yml +1 -0
  5. pslr-1.0.0/.github/ISSUE_TEMPLATE/feature-request.yml +10 -0
  6. pslr-1.0.0/.github/ISSUE_TEMPLATE/issue.yml +26 -0
  7. pslr-1.0.0/.github/SECURITY.md +1 -0
  8. pslr-1.0.0/.github/workflows/main.yml +204 -0
  9. pslr-1.0.0/.gitignore +12 -0
  10. pslr-1.0.0/.pre-commit-config.yaml +78 -0
  11. pslr-1.0.0/.readthedocs.yaml +24 -0
  12. pslr-1.0.0/.typos.toml +10 -0
  13. pslr-1.0.0/CONTRIBUTING.rst +18 -0
  14. pslr-1.0.0/Cargo.lock +132 -0
  15. pslr-1.0.0/Cargo.toml +19 -0
  16. pslr-1.0.0/LICENSE +21 -0
  17. pslr-1.0.0/LICENSE-PSL +376 -0
  18. pslr-1.0.0/PKG-INFO +77 -0
  19. pslr-1.0.0/README.rst +45 -0
  20. pslr-1.0.0/docs/Makefile +20 -0
  21. pslr-1.0.0/docs/_static/logo.svg +78 -0
  22. pslr-1.0.0/docs/api.rst +136 -0
  23. pslr-1.0.0/docs/changelog.rst +8 -0
  24. pslr-1.0.0/docs/conf.py +87 -0
  25. pslr-1.0.0/docs/history.rst +111 -0
  26. pslr-1.0.0/docs/index.rst +40 -0
  27. pslr-1.0.0/docs/installation.rst +18 -0
  28. pslr-1.0.0/pyproject.toml +151 -0
  29. pslr-1.0.0/rust-toolchain.toml +2 -0
  30. pslr-1.0.0/scripts/benchmark.py +91 -0
  31. pslr-1.0.0/scripts/generate_data.py +214 -0
  32. pslr-1.0.0/src/data.rs +19 -0
  33. pslr-1.0.0/src/lib.rs +340 -0
  34. pslr-1.0.0/src/pslr/__init__.py +9 -0
  35. pslr-1.0.0/src/pslr/_lookup.pyi +64 -0
  36. pslr-1.0.0/src/pslr/py.typed +0 -0
  37. pslr-1.0.0/tests/__init__.py +0 -0
  38. pslr-1.0.0/tests/conftest.py +7 -0
  39. pslr-1.0.0/tests/data/test_psl.txt +98 -0
  40. pslr-1.0.0/tests/test_compat.py +112 -0
  41. pslr-1.0.0/tests/test_properties.py +204 -0
  42. pslr-1.0.0/tests/test_psl_data.py +52 -0
  43. pslr-1.0.0/tests/test_pslr.py +251 -0
  44. pslr-1.0.0/tests/test_signatures.py +105 -0
  45. pslr-1.0.0/tox.ini +21 -0
  46. pslr-1.0.0/uv.lock +1050 -0
@@ -0,0 +1,5 @@
1
+ [alias]
2
+ t = "test --no-default-features"
3
+
4
+ [build]
5
+ rustflags = ["-C", "force-frame-pointers=yes"]
@@ -0,0 +1,17 @@
1
+ # http://editorconfig.org
2
+
3
+ root = true
4
+
5
+ [*]
6
+ indent_style = space
7
+ indent_size = 2
8
+ trim_trailing_whitespace = true
9
+ insert_final_newline = true
10
+ charset = utf-8
11
+ end_of_line = lf
12
+
13
+ [*.py]
14
+ indent_size = 4
15
+
16
+ [Makefile]
17
+ indent_style = tab
@@ -0,0 +1 @@
1
+ This project follows [Django's Code of Conduct](https://www.djangoproject.com/conduct/).
@@ -0,0 +1 @@
1
+ blank_issues_enabled: false
@@ -0,0 +1,10 @@
1
+ name: Feature Request
2
+ description: Request an enhancement or new feature.
3
+ body:
4
+ - type: textarea
5
+ id: description
6
+ attributes:
7
+ label: Description
8
+ description: Please describe your feature request with appropriate detail.
9
+ validations:
10
+ required: true
@@ -0,0 +1,26 @@
1
+ name: Issue
2
+ description: File an issue
3
+ body:
4
+ - type: input
5
+ id: python_version
6
+ attributes:
7
+ label: Python Version
8
+ description: Which version of Python were you using?
9
+ placeholder: 3.14.0
10
+ validations:
11
+ required: false
12
+ - type: input
13
+ id: package_version
14
+ attributes:
15
+ label: Package Version
16
+ description: Which version of this package were you using? If not the latest version, please check this issue has not since been resolved.
17
+ placeholder: 1.0.0
18
+ validations:
19
+ required: false
20
+ - type: textarea
21
+ id: description
22
+ attributes:
23
+ label: Description
24
+ description: Please describe your issue.
25
+ validations:
26
+ required: true
@@ -0,0 +1 @@
1
+ Please report security issues directly over email to me@adamj.eu
@@ -0,0 +1,204 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ tags:
8
+ - '**'
9
+ pull_request:
10
+
11
+ concurrency:
12
+ group: ${{ github.head_ref || github.run_id }}
13
+ cancel-in-progress: true
14
+
15
+ env:
16
+ CARGO_TERM_COLOR: always
17
+
18
+ jobs:
19
+ tests-rust:
20
+ runs-on: ubuntu-24.04
21
+
22
+ steps:
23
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
24
+ with:
25
+ persist-credentials: false
26
+
27
+ - name: Run tests
28
+ run: cargo test --verbose
29
+
30
+ tests:
31
+ name: Python ${{ matrix.python-version }}
32
+ runs-on: ubuntu-24.04
33
+
34
+ strategy:
35
+ matrix:
36
+ python-version:
37
+ - '3.10'
38
+ - '3.11'
39
+ - '3.12'
40
+ - '3.13'
41
+ - '3.14'
42
+ - '3.15'
43
+
44
+ steps:
45
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
46
+ with:
47
+ persist-credentials: false
48
+
49
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
50
+ with:
51
+ python-version: ${{ matrix.python-version }}
52
+ allow-prereleases: true
53
+
54
+ - name: Install uv
55
+ uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
56
+ with:
57
+ enable-cache: true
58
+
59
+ - name: Run tox targets for ${{ matrix.python-version }}
60
+ run: uvx --with tox-uv tox run -f py$(echo ${{ matrix.python-version }} | tr -d .)
61
+
62
+ - name: Upload coverage data
63
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
64
+ with:
65
+ name: coverage-data-${{ matrix.python-version }}
66
+ path: '${{ github.workspace }}/.coverage/*'
67
+ include-hidden-files: true
68
+ if-no-files-found: error
69
+
70
+ coverage:
71
+ name: Coverage
72
+ runs-on: ubuntu-24.04
73
+ needs: tests
74
+ if: always()
75
+ steps:
76
+ - name: Check all test jobs passed
77
+ if: needs.tests.result != 'success'
78
+ run: exit 1
79
+
80
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
81
+ with:
82
+ persist-credentials: false
83
+
84
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
85
+ with:
86
+ python-version: '3.13'
87
+
88
+ - name: Install uv
89
+ uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
90
+
91
+ - name: Install dependencies
92
+ run: uv pip install --system coverage[toml]
93
+
94
+ - name: Download data
95
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
96
+ with:
97
+ path: .coverage
98
+ pattern: coverage-data-*
99
+ merge-multiple: true
100
+
101
+ - name: Combine coverage and fail if it's <100%
102
+ run: |
103
+ python -m coverage combine
104
+ python -m coverage html --skip-covered --skip-empty
105
+ python -m coverage report --fail-under=100
106
+ echo "## Coverage summary" >> $GITHUB_STEP_SUMMARY
107
+ python -m coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
108
+
109
+ - name: Upload HTML report
110
+ if: failure()
111
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
112
+ with:
113
+ name: html-report
114
+ path: htmlcov
115
+
116
+ build:
117
+ name: Build os=${{ matrix.os }} target=${{ matrix.target }} ml=${{ matrix.manylinux || 'auto' }}
118
+ if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'Build')
119
+ strategy:
120
+ fail-fast: false
121
+ matrix:
122
+ include:
123
+ - os: linux
124
+ target: x86_64
125
+ - os: linux
126
+ target: aarch64
127
+ - os: linux
128
+ target: armv7
129
+
130
+ # musllinux
131
+ - os: linux
132
+ manylinux: musllinux_1_1
133
+ target: x86_64
134
+ - os: linux
135
+ manylinux: musllinux_1_1
136
+ target: aarch64
137
+
138
+ # macos
139
+ - os: macos
140
+ target: x86_64
141
+ - os: macos
142
+ target: aarch64
143
+
144
+ # windows
145
+ - os: windows
146
+ target: x86_64
147
+ - os: windows
148
+ target: aarch64
149
+
150
+ runs-on: ${{ (matrix.os == 'linux' && matrix.target == 'aarch64' && 'ubuntu-24.04-arm') || (matrix.os == 'linux' && matrix.target == 'armv7' && 'ubuntu-24.04-arm') || (matrix.os == 'linux' && 'ubuntu-24.04') || (matrix.os == 'macos' && matrix.target == 'aarch64' && 'macos-15') || (matrix.os == 'macos' && matrix.target == 'x86_64' && 'macos-15-intel') || (matrix.os == 'windows' && matrix.target == 'aarch64' && 'windows-11-arm') || (matrix.os == 'windows' && 'windows-2022') || 'unknown' }}
151
+
152
+ steps:
153
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
154
+ with:
155
+ persist-credentials: false
156
+
157
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
158
+ with:
159
+ python-version: '3.14'
160
+
161
+ - name: Build sdist
162
+ if: matrix.os == 'linux' && matrix.target == 'x86_64'
163
+ uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
164
+ with:
165
+ command: sdist
166
+ args: --out dist
167
+
168
+ - name: Build wheels
169
+ uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
170
+ with:
171
+ target: ${{ matrix.target }}
172
+ manylinux: ${{ matrix.manylinux || 'auto' }}
173
+ args: --release --locked --out dist --find-interpreter
174
+
175
+ - run: ${{ (matrix.os == 'windows' && 'dir') || 'ls -lh' }} dist/
176
+
177
+ - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
178
+ with:
179
+ name: dist-${{ matrix.os }}-${{ matrix.target }}-${{ matrix.manylinux || 'auto' }}
180
+ path: dist
181
+
182
+ release:
183
+ needs: [tests-rust, coverage, build]
184
+ if: success() && startsWith(github.ref, 'refs/tags/')
185
+ runs-on: ubuntu-24.04
186
+ environment: release
187
+
188
+ permissions:
189
+ contents: read
190
+ id-token: write
191
+
192
+ steps:
193
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
194
+ with:
195
+ persist-credentials: false
196
+
197
+ - name: get dist artifacts
198
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
199
+ with:
200
+ merge-multiple: true
201
+ pattern: dist-*
202
+ path: dist
203
+
204
+ - uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
pslr-1.0.0/.gitignore ADDED
@@ -0,0 +1,12 @@
1
+ *.egg-info/
2
+ *.pyc
3
+ *.so
4
+ /.coverage
5
+ /.coverage.*
6
+ /.tox
7
+ /build/
8
+ /dist/
9
+ /target/
10
+ /.venv/
11
+ /docs/_build/
12
+ /.hypothesis/
@@ -0,0 +1,78 @@
1
+ ci:
2
+ autoupdate_schedule: monthly
3
+ skip:
4
+ - cargo-clippy
5
+ - cargo-fmt
6
+
7
+ default_language_version:
8
+ python: python3.14
9
+
10
+ repos:
11
+ - repo: https://github.com/pre-commit/pre-commit-hooks
12
+ rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0
13
+ hooks:
14
+ - id: check-added-large-files
15
+ - id: check-case-conflict
16
+ - id: check-json
17
+ - id: check-merge-conflict
18
+ - id: check-symlinks
19
+ - id: check-toml
20
+ - id: end-of-file-fixer
21
+ - id: trailing-whitespace
22
+ - repo: https://github.com/crate-ci/typos
23
+ rev: 12ffd4a04b4893ab75db66a59aaad2d996c3e982 # frozen: v1
24
+ hooks:
25
+ - id: typos
26
+ exclude: |
27
+ (?x)^(
28
+ src/data\.rs
29
+ |tests/data/test_psl\.txt
30
+ )$
31
+ - repo: https://github.com/tox-dev/pyproject-fmt
32
+ rev: b82a24a520c5d496cb7b23b4e9b63537c280f51b # frozen: v2.27.0
33
+ hooks:
34
+ - id: pyproject-fmt
35
+ - repo: https://github.com/tox-dev/tox-ini-fmt
36
+ rev: 69e8f0ead1b1164c731b4a702896e3218feecf0b # frozen: 1.8.1
37
+ hooks:
38
+ - id: tox-ini-fmt
39
+ - repo: https://github.com/rstcheck/rstcheck
40
+ rev: 27a8027d6c6df787891a01b76e8298bac493fb58 # frozen: v6.3.0
41
+ hooks:
42
+ - id: rstcheck
43
+ additional_dependencies:
44
+ - sphinx==8.1.3
45
+ - tomli==2.0.1
46
+ - repo: https://github.com/adamchainz/blacken-docs
47
+ rev: dda8db18cfc68df532abf33b185ecd12d5b7b326 # frozen: 1.20.0
48
+ hooks:
49
+ - id: blacken-docs
50
+ additional_dependencies:
51
+ - black==25.1.0
52
+ - repo: https://github.com/astral-sh/ruff-pre-commit
53
+ rev: 7c55798a78262d14b2074abf623d8a992ebb70d4 # frozen: v0.16.2
54
+ hooks:
55
+ - id: ruff-check
56
+ args: [ --fix ]
57
+ - id: ruff-format
58
+ - repo: https://github.com/pre-commit/mirrors-mypy
59
+ rev: 41e691678310dfd3833f7ab4e180ddb014310356 # frozen: v2.3.0
60
+ hooks:
61
+ - id: mypy
62
+ additional_dependencies:
63
+ - pytest==7.1.2
64
+
65
+ - repo: local
66
+ hooks:
67
+ - id: cargo-fmt
68
+ name: cargo fmt
69
+ entry: cargo fmt --
70
+ language: system
71
+ types: [rust]
72
+ pass_filenames: false
73
+ - id: cargo-clippy
74
+ name: cargo clippy
75
+ entry: cargo clippy -- -D warnings
76
+ language: system
77
+ types: [rust]
78
+ pass_filenames: false
@@ -0,0 +1,24 @@
1
+ # .readthedocs.yml
2
+ # Read the Docs configuration file
3
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4
+
5
+ version: 2
6
+
7
+ build:
8
+ os: ubuntu-24.04
9
+ tools:
10
+ python: "3.14"
11
+ rust: latest
12
+
13
+ python:
14
+ install:
15
+ - method: uv
16
+ command: sync
17
+ groups:
18
+ - docs
19
+
20
+ sphinx:
21
+ configuration: docs/conf.py
22
+ fail_on_warning: true
23
+
24
+ formats: all
pslr-1.0.0/.typos.toml ADDED
@@ -0,0 +1,10 @@
1
+ # Configuration file for 'typos' tool
2
+ # https://github.com/crate-ci/typos
3
+
4
+ [default]
5
+ extend-ignore-re = [
6
+ # Single line ignore comments
7
+ "(?Rm)^.*(#|//)\\s*typos: ignore$",
8
+ # Multi-line ignore comments
9
+ "(?s)(#|//)\\s*typos: off.*?\\n\\s*(#|//)\\s*typos: on"
10
+ ]
@@ -0,0 +1,18 @@
1
+ ============
2
+ Contributing
3
+ ============
4
+
5
+ Updating the data
6
+ -----------------
7
+
8
+ ``scripts/generate_data.py`` builds the data table (``src/data.rs``) by downloading the `Public Suffix List <https://publicsuffix.org/>`__ direct from its source, and vendors the list's own test data (``tests/data/test_psl.txt``) from its |source repository|__.
9
+
10
+ .. |source repository| replace:: source repository
11
+ __ https://github.com/publicsuffix/list
12
+
13
+ The generated files are checked in, so a regular install or build downloads nothing.
14
+ To regenerate with the latest list, run the script with uv:
15
+
16
+ .. code-block:: sh
17
+
18
+ uv run scripts/generate_data.py
pslr-1.0.0/Cargo.lock ADDED
@@ -0,0 +1,132 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "heck"
7
+ version = "0.5.0"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
10
+
11
+ [[package]]
12
+ name = "libc"
13
+ version = "0.2.189"
14
+ source = "registry+https://github.com/rust-lang/crates.io-index"
15
+ checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
16
+
17
+ [[package]]
18
+ name = "once_cell"
19
+ version = "1.21.4"
20
+ source = "registry+https://github.com/rust-lang/crates.io-index"
21
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
22
+
23
+ [[package]]
24
+ name = "portable-atomic"
25
+ version = "1.15.0"
26
+ source = "registry+https://github.com/rust-lang/crates.io-index"
27
+ checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
28
+
29
+ [[package]]
30
+ name = "proc-macro2"
31
+ version = "1.0.107"
32
+ source = "registry+https://github.com/rust-lang/crates.io-index"
33
+ checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
34
+ dependencies = [
35
+ "unicode-ident",
36
+ ]
37
+
38
+ [[package]]
39
+ name = "pslr"
40
+ version = "1.0.0"
41
+ dependencies = [
42
+ "pyo3",
43
+ ]
44
+
45
+ [[package]]
46
+ name = "pyo3"
47
+ version = "0.29.2"
48
+ source = "registry+https://github.com/rust-lang/crates.io-index"
49
+ checksum = "4688ddedf473e32662b9b067670129a8afb8c18e351482c70d62ba4a88171e8b"
50
+ dependencies = [
51
+ "libc",
52
+ "once_cell",
53
+ "portable-atomic",
54
+ "pyo3-build-config",
55
+ "pyo3-ffi",
56
+ "pyo3-macros",
57
+ ]
58
+
59
+ [[package]]
60
+ name = "pyo3-build-config"
61
+ version = "0.29.2"
62
+ source = "registry+https://github.com/rust-lang/crates.io-index"
63
+ checksum = "f41027e41b4bd03f6e60f9f417fe24a6341a6bb744edd62b6f709f2a52ea30e9"
64
+ dependencies = [
65
+ "target-lexicon",
66
+ ]
67
+
68
+ [[package]]
69
+ name = "pyo3-ffi"
70
+ version = "0.29.2"
71
+ source = "registry+https://github.com/rust-lang/crates.io-index"
72
+ checksum = "e591a95526fead067432c3b3a33fc74770b87b1e04e73671090d9c2055a2b327"
73
+ dependencies = [
74
+ "libc",
75
+ "pyo3-build-config",
76
+ ]
77
+
78
+ [[package]]
79
+ name = "pyo3-macros"
80
+ version = "0.29.2"
81
+ source = "registry+https://github.com/rust-lang/crates.io-index"
82
+ checksum = "73225868fc1cd84eef2c3c230ddb91273bf1de46aeb8a4248da76d32a0924a1c"
83
+ dependencies = [
84
+ "proc-macro2",
85
+ "pyo3-macros-backend",
86
+ "quote",
87
+ "syn",
88
+ ]
89
+
90
+ [[package]]
91
+ name = "pyo3-macros-backend"
92
+ version = "0.29.2"
93
+ source = "registry+https://github.com/rust-lang/crates.io-index"
94
+ checksum = "571575aa3749fa6216757dd47d2a3e7ef360f329a40f0666a9fbd14889024952"
95
+ dependencies = [
96
+ "heck",
97
+ "proc-macro2",
98
+ "quote",
99
+ "syn",
100
+ ]
101
+
102
+ [[package]]
103
+ name = "quote"
104
+ version = "1.0.47"
105
+ source = "registry+https://github.com/rust-lang/crates.io-index"
106
+ checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
107
+ dependencies = [
108
+ "proc-macro2",
109
+ ]
110
+
111
+ [[package]]
112
+ name = "syn"
113
+ version = "2.0.119"
114
+ source = "registry+https://github.com/rust-lang/crates.io-index"
115
+ checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
116
+ dependencies = [
117
+ "proc-macro2",
118
+ "quote",
119
+ "unicode-ident",
120
+ ]
121
+
122
+ [[package]]
123
+ name = "target-lexicon"
124
+ version = "0.13.5"
125
+ source = "registry+https://github.com/rust-lang/crates.io-index"
126
+ checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
127
+
128
+ [[package]]
129
+ name = "unicode-ident"
130
+ version = "1.0.24"
131
+ source = "registry+https://github.com/rust-lang/crates.io-index"
132
+ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
pslr-1.0.0/Cargo.toml ADDED
@@ -0,0 +1,19 @@
1
+ [package]
2
+ name = "pslr"
3
+ version = "1.0.0"
4
+ edition = "2021"
5
+ readme = "README.rst"
6
+
7
+ [dependencies]
8
+ pyo3 = { version = "0.29.0" }
9
+
10
+ [features]
11
+ default = ["extension-module"]
12
+ extension-module = ["pyo3/extension-module"]
13
+
14
+ [lib]
15
+ name = "pslr_lookup"
16
+ crate-type = ["cdylib", "rlib"]
17
+
18
+ [profile.release]
19
+ lto = true
pslr-1.0.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Adam Johnson
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.