python-multipart 0.0.14__tar.gz → 0.0.15__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.
- {python_multipart-0.0.14 → python_multipart-0.0.15}/CHANGELOG.md +6 -1
- {python_multipart-0.0.14 → python_multipart-0.0.15}/PKG-INFO +1 -1
- python_multipart-0.0.15/multipart/__init__.py +20 -0
- python_multipart-0.0.15/multipart/decoders.py +1 -0
- python_multipart-0.0.15/multipart/exceptions.py +1 -0
- python_multipart-0.0.15/multipart/multipart.py +1 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/pyproject.toml +10 -1
- {python_multipart-0.0.14 → python_multipart-0.0.15}/python_multipart/__init__.py +1 -1
- {python_multipart-0.0.14 → python_multipart-0.0.15}/.gitignore +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/LICENSE.txt +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/README.md +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/python_multipart/decoders.py +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/python_multipart/exceptions.py +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/python_multipart/multipart.py +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/python_multipart/py.typed +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/__init__.py +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/compat.py +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/CRLF_in_header.http +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/CRLF_in_header.yaml +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/CR_in_header.http +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/CR_in_header.yaml +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/CR_in_header_value.http +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/CR_in_header_value.yaml +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/almost_match_boundary.http +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/almost_match_boundary.yaml +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/almost_match_boundary_without_CR.http +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/almost_match_boundary_without_CR.yaml +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/almost_match_boundary_without_LF.http +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/almost_match_boundary_without_LF.yaml +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/almost_match_boundary_without_final_hyphen.http +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/almost_match_boundary_without_final_hyphen.yaml +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/bad_end_of_headers.http +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/bad_end_of_headers.yaml +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/bad_header_char.http +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/bad_header_char.yaml +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/bad_initial_boundary.http +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/bad_initial_boundary.yaml +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/base64_encoding.http +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/base64_encoding.yaml +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/empty_header.http +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/empty_header.yaml +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/header_with_number.http +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/header_with_number.yaml +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/mixed_plain_and_base64_encoding.http +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/mixed_plain_and_base64_encoding.yaml +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/multiple_fields.http +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/multiple_fields.yaml +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/multiple_files.http +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/multiple_files.yaml +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/quoted_printable_encoding.http +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/quoted_printable_encoding.yaml +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/single_field.http +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/single_field.yaml +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/single_field_blocks.http +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/single_field_blocks.yaml +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/single_field_longer.http +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/single_field_longer.yaml +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/single_field_single_file.http +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/single_field_single_file.yaml +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/single_field_with_leading_newlines.http +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/single_field_with_leading_newlines.yaml +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/single_file.http +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/single_file.yaml +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/utf8_filename.http +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/utf8_filename.yaml +0 -0
- {python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_multipart.py +0 -0
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.0.15 (2024-10-27)
|
|
4
|
+
|
|
5
|
+
* Replace `FutureWarning` to `PendingDeprecationWarning` [#174](https://github.com/Kludex/python-multipart/pull/174).
|
|
6
|
+
* Add missing files to SDist [#171](https://github.com/Kludex/python-multipart/pull/171).
|
|
7
|
+
|
|
3
8
|
## 0.0.14 (2024-10-24)
|
|
4
9
|
|
|
5
|
-
* Fix import scheme for `multipart` module ([#168](https://github.com/
|
|
10
|
+
* Fix import scheme for `multipart` module ([#168](https://github.com/Kludex/python-multipart/pull/168)).
|
|
6
11
|
|
|
7
12
|
## 0.0.13 (2024-10-20)
|
|
8
13
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: python-multipart
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.15
|
|
4
4
|
Summary: A streaming multipart parser for Python
|
|
5
5
|
Project-URL: Homepage, https://github.com/Kludex/python-multipart
|
|
6
6
|
Project-URL: Documentation, https://kludex.github.io/python-multipart/
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# This only works if using a file system, other loaders not implemented.
|
|
2
|
+
|
|
3
|
+
import importlib.util
|
|
4
|
+
import sys
|
|
5
|
+
import warnings
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
|
|
8
|
+
for p in sys.path:
|
|
9
|
+
file_path = Path(p, "multipart.py")
|
|
10
|
+
if file_path.is_file():
|
|
11
|
+
spec = importlib.util.spec_from_file_location("multipart", file_path)
|
|
12
|
+
assert spec is not None, f"{file_path} found but not loadable!"
|
|
13
|
+
module = importlib.util.module_from_spec(spec)
|
|
14
|
+
sys.modules["multipart"] = module
|
|
15
|
+
assert spec.loader is not None, f"{file_path} must be loadable!"
|
|
16
|
+
spec.loader.exec_module(module)
|
|
17
|
+
break
|
|
18
|
+
else:
|
|
19
|
+
warnings.warn("Please use `import python_multipart` instead.", PendingDeprecationWarning, stacklevel=2)
|
|
20
|
+
from python_multipart import *
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from python_multipart.decoders import *
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from python_multipart.exceptions import *
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from python_multipart.multipart import *
|
|
@@ -68,7 +68,7 @@ Source = "https://github.com/Kludex/python-multipart"
|
|
|
68
68
|
path = "python_multipart/__init__.py"
|
|
69
69
|
|
|
70
70
|
[tool.hatch.build.targets.sdist]
|
|
71
|
-
include = ["/python_multipart", "/tests", "CHANGELOG.md", "LICENSE.txt"
|
|
71
|
+
include = ["/python_multipart", "/multipart", "/tests", "CHANGELOG.md", "LICENSE.txt"]
|
|
72
72
|
|
|
73
73
|
[tool.hatch.build.targets.wheel]
|
|
74
74
|
packages = ["python_multipart", "multipart"]
|
|
@@ -113,3 +113,12 @@ exclude_lines = [
|
|
|
113
113
|
"if self\\.debug:",
|
|
114
114
|
"except ImportError:",
|
|
115
115
|
]
|
|
116
|
+
|
|
117
|
+
[tool.check-sdist]
|
|
118
|
+
git-only = [
|
|
119
|
+
"docs",
|
|
120
|
+
"fuzz",
|
|
121
|
+
"scripts",
|
|
122
|
+
"mkdocs.yml",
|
|
123
|
+
"uv.lock"
|
|
124
|
+
]
|
|
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
|
{python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/CRLF_in_header.http
RENAMED
|
File without changes
|
{python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/CRLF_in_header.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/CR_in_header_value.http
RENAMED
|
File without changes
|
{python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/CR_in_header_value.yaml
RENAMED
|
File without changes
|
{python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/almost_match_boundary.http
RENAMED
|
File without changes
|
{python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/almost_match_boundary.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/bad_end_of_headers.http
RENAMED
|
File without changes
|
{python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/bad_end_of_headers.yaml
RENAMED
|
File without changes
|
{python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/bad_header_char.http
RENAMED
|
File without changes
|
{python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/bad_header_char.yaml
RENAMED
|
File without changes
|
{python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/bad_initial_boundary.http
RENAMED
|
File without changes
|
{python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/bad_initial_boundary.yaml
RENAMED
|
File without changes
|
{python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/base64_encoding.http
RENAMED
|
File without changes
|
{python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/base64_encoding.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/header_with_number.http
RENAMED
|
File without changes
|
{python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/header_with_number.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/multiple_fields.http
RENAMED
|
File without changes
|
{python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/multiple_fields.yaml
RENAMED
|
File without changes
|
{python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/multiple_files.http
RENAMED
|
File without changes
|
{python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/multiple_files.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/single_field_blocks.http
RENAMED
|
File without changes
|
{python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/single_field_blocks.yaml
RENAMED
|
File without changes
|
{python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/single_field_longer.http
RENAMED
|
File without changes
|
{python_multipart-0.0.14 → python_multipart-0.0.15}/tests/test_data/http/single_field_longer.yaml
RENAMED
|
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
|