urlpattern 0.1.0__tar.gz → 0.1.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.
- urlpattern-0.1.1/.devcontainer/devcontainer.json +24 -0
- urlpattern-0.1.1/.github/dependabot.yml +12 -0
- {urlpattern-0.1.0 → urlpattern-0.1.1}/Cargo.lock +1 -1
- {urlpattern-0.1.0 → urlpattern-0.1.1}/Cargo.toml +1 -1
- {urlpattern-0.1.0 → urlpattern-0.1.1}/PKG-INFO +7 -5
- {urlpattern-0.1.0 → urlpattern-0.1.1}/README.md +5 -4
- {urlpattern-0.1.0 → urlpattern-0.1.1}/urlpattern.pyi +4 -4
- {urlpattern-0.1.0 → urlpattern-0.1.1}/.github/workflows/CI.yml +0 -0
- /urlpattern-0.1.0/gitignore.txt → /urlpattern-0.1.1/.gitignore +0 -0
- {urlpattern-0.1.0 → urlpattern-0.1.1}/.vscode/extensions.json +0 -0
- {urlpattern-0.1.0 → urlpattern-0.1.1}/.vscode/settings.json +0 -0
- /urlpattern-0.1.0/LICENSE.txt → /urlpattern-0.1.1/LICENSE +0 -0
- {urlpattern-0.1.0 → urlpattern-0.1.1}/pyproject.toml +0 -0
- {urlpattern-0.1.0 → urlpattern-0.1.1}/src/lib.rs +0 -0
- {urlpattern-0.1.0 → urlpattern-0.1.1}/tests/__init__.py +0 -0
- {urlpattern-0.1.0 → urlpattern-0.1.1}/tests/test_lib.py +0 -0
- {urlpattern-0.1.0 → urlpattern-0.1.1}/tests/urlpatterntestdata.json +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
|
2
|
+
// README at: https://github.com/devcontainers/templates/tree/main/src/python
|
|
3
|
+
{
|
|
4
|
+
"name": "Python 3",
|
|
5
|
+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
|
6
|
+
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye",
|
|
7
|
+
|
|
8
|
+
// Features to add to the dev container. More info: https://containers.dev/features.
|
|
9
|
+
"features": {
|
|
10
|
+
"ghcr.io/devcontainers/features/rust:1": {}
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
14
|
+
// "forwardPorts": [],
|
|
15
|
+
|
|
16
|
+
// Use 'postCreateCommand' to run commands after the container is created.
|
|
17
|
+
"postCreateCommand": "pip3 install --user maturin pytest && python3 -m venv .venv"
|
|
18
|
+
|
|
19
|
+
// Configure tool-specific properties.
|
|
20
|
+
// "customizations": {},
|
|
21
|
+
|
|
22
|
+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
|
23
|
+
// "remoteUser": "root"
|
|
24
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# To get started with Dependabot version updates, you'll need to specify which
|
|
2
|
+
# package ecosystems to update and where the package manifests are located.
|
|
3
|
+
# Please see the documentation for more information:
|
|
4
|
+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
|
5
|
+
# https://containers.dev/guide/dependabot
|
|
6
|
+
|
|
7
|
+
version: 2
|
|
8
|
+
updates:
|
|
9
|
+
- package-ecosystem: "devcontainers"
|
|
10
|
+
directory: "/"
|
|
11
|
+
schedule:
|
|
12
|
+
interval: weekly
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: urlpattern
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Classifier: Development Status :: 4 - Beta
|
|
5
5
|
Classifier: Intended Audience :: Developers
|
|
6
6
|
Classifier: License :: OSI Approved :: MIT License
|
|
@@ -17,7 +17,7 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
17
17
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
18
18
|
Classifier: Topic :: Internet :: WWW/HTTP
|
|
19
19
|
Classifier: Typing :: Typed
|
|
20
|
-
License-File: LICENSE
|
|
20
|
+
License-File: LICENSE
|
|
21
21
|
Summary: An implementation of the URL Pattern Standard for Python written in Rust
|
|
22
22
|
Keywords: urlpattern
|
|
23
23
|
Author: 방성범 (Bang Seongbeom) <bangseongbeom@gmail.com>
|
|
@@ -31,6 +31,11 @@ Project-URL: Issues, https://github.com/urlpattern/python-urlpattern/issues
|
|
|
31
31
|
|
|
32
32
|
# URL Pattern
|
|
33
33
|
|
|
34
|
+
[](https://pypi.org/project/urlpattern/)
|
|
35
|
+
[](https://pypi.org/project/urlpattern/)
|
|
36
|
+
[](https://github.com/astral-sh/ruff)
|
|
37
|
+
[](https://github.com/urlpattern/python-urlpattern/actions)
|
|
38
|
+
|
|
34
39
|
An implementation of [the URL Pattern Standard](https://urlpattern.spec.whatwg.org/) for Python written in Rust
|
|
35
40
|
|
|
36
41
|
This is a thin wrapper of [denoland/rust-urlpattern](https://github.com/denoland/rust-urlpattern) with [PyO3](https://github.com/PyO3/pyo3) + [Maturin](https://github.com/PyO3/maturin).
|
|
@@ -64,6 +69,3 @@ print(result["pathname"]["groups"]["foo"]) # output: abc
|
|
|
64
69
|
print(result["pathname"]["groups"]["bar"]) # output: def
|
|
65
70
|
```
|
|
66
71
|
|
|
67
|
-
## License
|
|
68
|
-
|
|
69
|
-
[MIT License](/LICENSE)
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# URL Pattern
|
|
2
2
|
|
|
3
|
+
[](https://pypi.org/project/urlpattern/)
|
|
4
|
+
[](https://pypi.org/project/urlpattern/)
|
|
5
|
+
[](https://github.com/astral-sh/ruff)
|
|
6
|
+
[](https://github.com/urlpattern/python-urlpattern/actions)
|
|
7
|
+
|
|
3
8
|
An implementation of [the URL Pattern Standard](https://urlpattern.spec.whatwg.org/) for Python written in Rust
|
|
4
9
|
|
|
5
10
|
This is a thin wrapper of [denoland/rust-urlpattern](https://github.com/denoland/rust-urlpattern) with [PyO3](https://github.com/PyO3/pyo3) + [Maturin](https://github.com/PyO3/maturin).
|
|
@@ -32,7 +37,3 @@ result = pattern.exec("/abc/def", "https://test.example")
|
|
|
32
37
|
print(result["pathname"]["groups"]["foo"]) # output: abc
|
|
33
38
|
print(result["pathname"]["groups"]["bar"]) # output: def
|
|
34
39
|
```
|
|
35
|
-
|
|
36
|
-
## License
|
|
37
|
-
|
|
38
|
-
[MIT License](/LICENSE)
|
|
@@ -4,12 +4,12 @@ URLPatternInput: TypeAlias = str | URLPatternInit
|
|
|
4
4
|
|
|
5
5
|
class URLPattern:
|
|
6
6
|
@overload
|
|
7
|
-
def __init__(input: URLPatternInput, baseURL: str): ...
|
|
7
|
+
def __init__(self, input: URLPatternInput, baseURL: str): ...
|
|
8
8
|
@overload
|
|
9
|
-
def __init__(input: URLPatternInput = {}): ...
|
|
10
|
-
def test(input: URLPatternInput = {}, baseURL: str | None = None) -> bool: ...
|
|
9
|
+
def __init__(self, input: URLPatternInput = {}): ...
|
|
10
|
+
def test(self, input: URLPatternInput = {}, baseURL: str | None = None) -> bool: ...
|
|
11
11
|
def exec(
|
|
12
|
-
input: URLPatternInput = {}, baseURL: str | None = None
|
|
12
|
+
self, input: URLPatternInput = {}, baseURL: str | None = None
|
|
13
13
|
) -> URLPatternResult | None: ...
|
|
14
14
|
@property
|
|
15
15
|
def protocol(self) -> str: ...
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|