wheezy.http 3.2.1__tar.gz → 3.2.2__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.
- {wheezy_http-3.2.1/src/wheezy.http.egg-info → wheezy_http-3.2.2}/PKG-INFO +17 -15
- {wheezy_http-3.2.1 → wheezy_http-3.2.2}/README.md +2 -2
- wheezy_http-3.2.2/pyproject.toml +76 -0
- wheezy_http-3.2.2/setup.py +60 -0
- {wheezy_http-3.2.1 → wheezy_http-3.2.2}/src/wheezy/http/__init__.py +1 -6
- {wheezy_http-3.2.1 → wheezy_http-3.2.2}/src/wheezy/http/application.py +0 -3
- {wheezy_http-3.2.1 → wheezy_http-3.2.2}/src/wheezy/http/authorization.py +0 -3
- {wheezy_http-3.2.1 → wheezy_http-3.2.2}/src/wheezy/http/cache.py +0 -3
- {wheezy_http-3.2.1 → wheezy_http-3.2.2}/src/wheezy/http/cachepolicy.py +0 -3
- {wheezy_http-3.2.1 → wheezy_http-3.2.2}/src/wheezy/http/cacheprofile.py +6 -8
- {wheezy_http-3.2.1 → wheezy_http-3.2.2}/src/wheezy/http/config.py +0 -4
- {wheezy_http-3.2.1 → wheezy_http-3.2.2}/src/wheezy/http/cookie.py +4 -5
- {wheezy_http-3.2.1 → wheezy_http-3.2.2}/src/wheezy/http/functional.py +1 -3
- {wheezy_http-3.2.1 → wheezy_http-3.2.2}/src/wheezy/http/method.py +0 -3
- {wheezy_http-3.2.1 → wheezy_http-3.2.2}/src/wheezy/http/middleware.py +0 -3
- {wheezy_http-3.2.1 → wheezy_http-3.2.2}/src/wheezy/http/parse.py +0 -3
- {wheezy_http-3.2.1 → wheezy_http-3.2.2}/src/wheezy/http/request.py +0 -3
- {wheezy_http-3.2.1 → wheezy_http-3.2.2}/src/wheezy/http/response.py +0 -3
- {wheezy_http-3.2.1 → wheezy_http-3.2.2}/src/wheezy/http/transforms.py +0 -3
- {wheezy_http-3.2.1 → wheezy_http-3.2.2/src/wheezy.http.egg-info}/PKG-INFO +17 -15
- {wheezy_http-3.2.1 → wheezy_http-3.2.2}/src/wheezy.http.egg-info/SOURCES.txt +1 -2
- wheezy_http-3.2.2/src/wheezy.http.egg-info/requires.txt +5 -0
- wheezy_http-3.2.1/setup.py +0 -79
- wheezy_http-3.2.1/src/wheezy/__init__.py +0 -8
- wheezy_http-3.2.1/src/wheezy.http.egg-info/namespace_packages.txt +0 -1
- wheezy_http-3.2.1/src/wheezy.http.egg-info/requires.txt +0 -1
- {wheezy_http-3.2.1 → wheezy_http-3.2.2}/LICENSE +0 -0
- {wheezy_http-3.2.1 → wheezy_http-3.2.2}/MANIFEST.in +0 -0
- {wheezy_http-3.2.1 → wheezy_http-3.2.2}/setup.cfg +0 -0
- {wheezy_http-3.2.1 → wheezy_http-3.2.2}/src/wheezy/http/_cgi.py +0 -0
- {wheezy_http-3.2.1 → wheezy_http-3.2.2}/src/wheezy.http.egg-info/dependency_links.txt +0 -0
- {wheezy_http-3.2.1 → wheezy_http-3.2.2}/src/wheezy.http.egg-info/not-zip-safe +0 -0
- {wheezy_http-3.2.1 → wheezy_http-3.2.2}/src/wheezy.http.egg-info/top_level.txt +0 -0
|
@@ -1,25 +1,23 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: wheezy.http
|
|
3
|
-
Version: 3.2.
|
|
3
|
+
Version: 3.2.2
|
|
4
4
|
Summary: A lightweight http request-response library
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
Author-email: Andriy Kornatskyy <andriy.kornatskyy@live.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/akornatskyy/wheezy.http
|
|
8
|
+
Project-URL: Source, https://github.com/akornatskyy/wheezy.http
|
|
9
|
+
Project-URL: Issues, https://github.com/akornatskyy/wheezy.http/issues
|
|
10
|
+
Keywords: wsgi,http,request,response,cache,cachepolicy,cookie,functional,middleware,transforms
|
|
11
11
|
Classifier: Environment :: Web Environment
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
14
13
|
Classifier: Natural Language :: English
|
|
15
14
|
Classifier: Operating System :: OS Independent
|
|
16
15
|
Classifier: Programming Language :: Python
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
19
16
|
Classifier: Programming Language :: Python :: 3.10
|
|
20
17
|
Classifier: Programming Language :: Python :: 3.11
|
|
21
18
|
Classifier: Programming Language :: Python :: 3.12
|
|
22
19
|
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
23
21
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
24
22
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
25
23
|
Classifier: Topic :: Internet :: WWW/HTTP
|
|
@@ -30,14 +28,18 @@ Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware
|
|
|
30
28
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
31
29
|
Classifier: Topic :: Software Development :: Quality Assurance
|
|
32
30
|
Classifier: Topic :: Software Development :: Testing
|
|
33
|
-
Requires-Python: >=3.
|
|
31
|
+
Requires-Python: >=3.10
|
|
34
32
|
Description-Content-Type: text/markdown
|
|
35
33
|
License-File: LICENSE
|
|
36
|
-
Requires-Dist: wheezy.core>=
|
|
34
|
+
Requires-Dist: wheezy.core>=3.2.2
|
|
35
|
+
Provides-Extra: cython
|
|
36
|
+
Requires-Dist: Cython>=3.0; extra == "cython"
|
|
37
|
+
Requires-Dist: setuptools>=61.0; extra == "cython"
|
|
38
|
+
Dynamic: license-file
|
|
37
39
|
|
|
38
40
|
# wheezy.http
|
|
39
41
|
|
|
40
|
-
[](https://github.com/akornatskyy/wheezy.http/actions/workflows/tests.yml)
|
|
41
43
|
[](https://coveralls.io/github/akornatskyy/wheezy.http?branch=master)
|
|
42
44
|
[](https://wheezyhttp.readthedocs.io/en/latest/?badge=latest)
|
|
43
45
|
[](https://badge.fury.io/py/wheezy.http)
|
|
@@ -62,7 +64,7 @@ Resources:
|
|
|
62
64
|
## Install
|
|
63
65
|
|
|
64
66
|
[wheezy.http](https://pypi.org/project/wheezy.http/) requires
|
|
65
|
-
[python](https://www.python.org) version 3.
|
|
67
|
+
[python](https://www.python.org) version 3.10+. It is independent of operating
|
|
66
68
|
system. You can install it from [pypi](https://pypi.org/project/wheezy.http/)
|
|
67
69
|
site:
|
|
68
70
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# wheezy.http
|
|
2
2
|
|
|
3
|
-
[](https://github.com/akornatskyy/wheezy.http/actions/workflows/tests.yml)
|
|
4
4
|
[](https://coveralls.io/github/akornatskyy/wheezy.http?branch=master)
|
|
5
5
|
[](https://wheezyhttp.readthedocs.io/en/latest/?badge=latest)
|
|
6
6
|
[](https://badge.fury.io/py/wheezy.http)
|
|
@@ -25,7 +25,7 @@ Resources:
|
|
|
25
25
|
## Install
|
|
26
26
|
|
|
27
27
|
[wheezy.http](https://pypi.org/project/wheezy.http/) requires
|
|
28
|
-
[python](https://www.python.org) version 3.
|
|
28
|
+
[python](https://www.python.org) version 3.10+. It is independent of operating
|
|
29
29
|
system. You can install it from [pypi](https://pypi.org/project/wheezy.http/)
|
|
30
30
|
site:
|
|
31
31
|
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "wheezy.http"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
description = "A lightweight http request-response library"
|
|
9
|
+
readme = { file = "README.md", content-type = "text/markdown" }
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = "MIT"
|
|
12
|
+
license-files = ["LICENSE"]
|
|
13
|
+
authors = [{ name = "Andriy Kornatskyy", email = "andriy.kornatskyy@live.com" }]
|
|
14
|
+
keywords = [
|
|
15
|
+
"wsgi",
|
|
16
|
+
"http",
|
|
17
|
+
"request",
|
|
18
|
+
"response",
|
|
19
|
+
"cache",
|
|
20
|
+
"cachepolicy",
|
|
21
|
+
"cookie",
|
|
22
|
+
"functional",
|
|
23
|
+
"middleware",
|
|
24
|
+
"transforms",
|
|
25
|
+
]
|
|
26
|
+
classifiers = [
|
|
27
|
+
"Environment :: Web Environment",
|
|
28
|
+
"Intended Audience :: Developers",
|
|
29
|
+
"Natural Language :: English",
|
|
30
|
+
"Operating System :: OS Independent",
|
|
31
|
+
"Programming Language :: Python",
|
|
32
|
+
"Programming Language :: Python :: 3.10",
|
|
33
|
+
"Programming Language :: Python :: 3.11",
|
|
34
|
+
"Programming Language :: Python :: 3.12",
|
|
35
|
+
"Programming Language :: Python :: 3.13",
|
|
36
|
+
"Programming Language :: Python :: 3.14",
|
|
37
|
+
"Programming Language :: Python :: Implementation :: CPython",
|
|
38
|
+
"Programming Language :: Python :: Implementation :: PyPy",
|
|
39
|
+
"Topic :: Internet :: WWW/HTTP",
|
|
40
|
+
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
|
|
41
|
+
"Topic :: Internet :: WWW/HTTP :: WSGI",
|
|
42
|
+
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
|
|
43
|
+
"Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware",
|
|
44
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
45
|
+
"Topic :: Software Development :: Quality Assurance",
|
|
46
|
+
"Topic :: Software Development :: Testing",
|
|
47
|
+
]
|
|
48
|
+
dependencies = ["wheezy.core>=3.2.2"]
|
|
49
|
+
|
|
50
|
+
[project.optional-dependencies]
|
|
51
|
+
cython = ["Cython>=3.0", "setuptools>=61.0"]
|
|
52
|
+
|
|
53
|
+
[project.urls]
|
|
54
|
+
Homepage = "https://github.com/akornatskyy/wheezy.http"
|
|
55
|
+
Source = "https://github.com/akornatskyy/wheezy.http"
|
|
56
|
+
Issues = "https://github.com/akornatskyy/wheezy.http/issues"
|
|
57
|
+
|
|
58
|
+
[tool.setuptools]
|
|
59
|
+
packages = ["wheezy.http"]
|
|
60
|
+
package-dir = { "" = "src" }
|
|
61
|
+
zip-safe = false
|
|
62
|
+
include-package-data = true
|
|
63
|
+
|
|
64
|
+
# [tool.setuptools.package-data]
|
|
65
|
+
# "wheezy.core" = ["py.typed"]
|
|
66
|
+
|
|
67
|
+
[tool.setuptools.dynamic]
|
|
68
|
+
version = { attr = "wheezy.http.__version__" }
|
|
69
|
+
|
|
70
|
+
[tool.pytest.ini_options]
|
|
71
|
+
pythonpath = ["src"]
|
|
72
|
+
consider_namespace_packages = true
|
|
73
|
+
|
|
74
|
+
[tool.coverage.run]
|
|
75
|
+
source = ["src/wheezy/http"]
|
|
76
|
+
omit = ["*/test_*.py", "*/tests/*", "src/wheezy/http/_cgi.py"]
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
|
|
3
|
+
import os
|
|
4
|
+
from glob import glob
|
|
5
|
+
|
|
6
|
+
from setuptools import Extension, setup # type: ignore[import]
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def module_name_from_src_path(path: str) -> str:
|
|
10
|
+
"""Derive a fully-qualified module name from a file path under ./src.
|
|
11
|
+
|
|
12
|
+
Cython's default path-to-module logic relies on finding __init__.py files.
|
|
13
|
+
For PEP 420 namespace packages (e.g. "wheezy"), that inference stops too
|
|
14
|
+
early, which can produce incorrect module names (e.g. "http.*").
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
rel = os.path.relpath(path, "src")
|
|
18
|
+
rel_no_ext = os.path.splitext(rel)[0]
|
|
19
|
+
return rel_no_ext.replace(os.sep, ".")
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def optional_cython_extensions() -> object:
|
|
23
|
+
try:
|
|
24
|
+
from Cython.Build import cythonize # type: ignore[import]
|
|
25
|
+
except ImportError:
|
|
26
|
+
return None
|
|
27
|
+
|
|
28
|
+
package_root = os.path.join("src", "wheezy", "http")
|
|
29
|
+
|
|
30
|
+
sources: list[str] = []
|
|
31
|
+
sources.extend(glob(os.path.join(package_root, "*.py")))
|
|
32
|
+
|
|
33
|
+
extensions: list[Extension] = []
|
|
34
|
+
for src_path in sources:
|
|
35
|
+
basename = os.path.basename(src_path)
|
|
36
|
+
if basename in ("__init__.py", "_cgi.py"):
|
|
37
|
+
continue
|
|
38
|
+
extensions.append(
|
|
39
|
+
Extension(module_name_from_src_path(src_path), [src_path])
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
return cythonize(
|
|
43
|
+
extensions,
|
|
44
|
+
nthreads=2,
|
|
45
|
+
compiler_directives={"language_level": 3},
|
|
46
|
+
quiet=True,
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def main() -> None:
|
|
51
|
+
extra = {}
|
|
52
|
+
ext_modules = optional_cython_extensions()
|
|
53
|
+
if ext_modules is not None:
|
|
54
|
+
extra["ext_modules"] = ext_modules
|
|
55
|
+
|
|
56
|
+
setup(**extra)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
if __name__ == "__main__":
|
|
60
|
+
main()
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
"""
|
|
2
|
-
"""
|
|
3
|
-
|
|
4
|
-
# flake8: noqa: F401
|
|
5
|
-
|
|
6
1
|
from wheezy.http.application import WSGIApplication
|
|
7
2
|
from wheezy.http.authorization import secure
|
|
8
3
|
from wheezy.http.cache import response_cache
|
|
@@ -72,4 +67,4 @@ __all__ = (
|
|
|
72
67
|
"temporary_redirect",
|
|
73
68
|
"unauthorized",
|
|
74
69
|
)
|
|
75
|
-
__version__ = "3.2.
|
|
70
|
+
__version__ = "3.2.2"
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
"""
|
|
3
|
-
|
|
4
|
-
from datetime import datetime
|
|
1
|
+
from datetime import datetime, timezone
|
|
5
2
|
from time import time
|
|
6
3
|
|
|
7
4
|
from wheezy.core.datetime import format_http_datetime, total_seconds
|
|
8
5
|
|
|
9
6
|
from wheezy.http.cachepolicy import HTTPCachePolicy
|
|
10
7
|
|
|
8
|
+
UTC = timezone.utc
|
|
11
9
|
CACHEABILITY = {
|
|
12
10
|
"none": "no-cache",
|
|
13
11
|
"server": "no-cache",
|
|
@@ -17,7 +15,7 @@ CACHEABILITY = {
|
|
|
17
15
|
}
|
|
18
16
|
|
|
19
17
|
SUPPORTED = CACHEABILITY.keys()
|
|
20
|
-
|
|
18
|
+
fromtimestamp = datetime.fromtimestamp
|
|
21
19
|
|
|
22
20
|
|
|
23
21
|
class CacheProfile(object):
|
|
@@ -93,11 +91,11 @@ class CacheProfile(object):
|
|
|
93
91
|
policy.no_store()
|
|
94
92
|
now = int(time())
|
|
95
93
|
if self.http_max_age:
|
|
96
|
-
policy.last_modified(
|
|
97
|
-
policy.expires(
|
|
94
|
+
policy.last_modified(fromtimestamp(now, UTC))
|
|
95
|
+
policy.expires(fromtimestamp(now + self.http_max_age, UTC))
|
|
98
96
|
policy.max_age_delta = self.http_max_age
|
|
99
97
|
else:
|
|
100
|
-
now =
|
|
98
|
+
now = fromtimestamp(now, UTC)
|
|
101
99
|
policy.modified = now
|
|
102
100
|
now = format_http_datetime(now)
|
|
103
101
|
policy.http_last_modified = now
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
"""
|
|
3
|
-
|
|
4
|
-
from datetime import datetime
|
|
1
|
+
from datetime import datetime, timezone
|
|
5
2
|
from time import time
|
|
6
3
|
|
|
7
4
|
from wheezy.core.datetime import format_http_datetime
|
|
8
5
|
|
|
6
|
+
UTC = timezone.utc
|
|
7
|
+
|
|
9
8
|
|
|
10
9
|
class HTTPCookie(object):
|
|
11
10
|
"""HTTP Cookie
|
|
@@ -45,7 +44,7 @@ class HTTPCookie(object):
|
|
|
45
44
|
if max_age is None:
|
|
46
45
|
self.expires = expires
|
|
47
46
|
else:
|
|
48
|
-
self.expires = datetime.
|
|
47
|
+
self.expires = datetime.fromtimestamp(time() + max_age, UTC)
|
|
49
48
|
if domain is None:
|
|
50
49
|
self.domain = options["HTTP_COOKIE_DOMAIN"]
|
|
51
50
|
else:
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
""" ``functional`` module.
|
|
2
|
-
"""
|
|
3
|
-
|
|
4
1
|
import re
|
|
5
2
|
from http.cookies import SimpleCookie
|
|
6
3
|
from io import BytesIO
|
|
@@ -428,6 +425,7 @@ except ImportError: # pragma: nocover
|
|
|
428
425
|
|
|
429
426
|
class HTMLParserAdapter(HTMLParser):
|
|
430
427
|
def __init__(self, target):
|
|
428
|
+
super(HTMLParserAdapter, self).__init__()
|
|
431
429
|
self.strict = True
|
|
432
430
|
self.reset()
|
|
433
431
|
self.target = target
|
|
@@ -1,25 +1,23 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: wheezy.http
|
|
3
|
-
Version: 3.2.
|
|
3
|
+
Version: 3.2.2
|
|
4
4
|
Summary: A lightweight http request-response library
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
Author-email: Andriy Kornatskyy <andriy.kornatskyy@live.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/akornatskyy/wheezy.http
|
|
8
|
+
Project-URL: Source, https://github.com/akornatskyy/wheezy.http
|
|
9
|
+
Project-URL: Issues, https://github.com/akornatskyy/wheezy.http/issues
|
|
10
|
+
Keywords: wsgi,http,request,response,cache,cachepolicy,cookie,functional,middleware,transforms
|
|
11
11
|
Classifier: Environment :: Web Environment
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
14
13
|
Classifier: Natural Language :: English
|
|
15
14
|
Classifier: Operating System :: OS Independent
|
|
16
15
|
Classifier: Programming Language :: Python
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
19
16
|
Classifier: Programming Language :: Python :: 3.10
|
|
20
17
|
Classifier: Programming Language :: Python :: 3.11
|
|
21
18
|
Classifier: Programming Language :: Python :: 3.12
|
|
22
19
|
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
23
21
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
24
22
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
25
23
|
Classifier: Topic :: Internet :: WWW/HTTP
|
|
@@ -30,14 +28,18 @@ Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware
|
|
|
30
28
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
31
29
|
Classifier: Topic :: Software Development :: Quality Assurance
|
|
32
30
|
Classifier: Topic :: Software Development :: Testing
|
|
33
|
-
Requires-Python: >=3.
|
|
31
|
+
Requires-Python: >=3.10
|
|
34
32
|
Description-Content-Type: text/markdown
|
|
35
33
|
License-File: LICENSE
|
|
36
|
-
Requires-Dist: wheezy.core>=
|
|
34
|
+
Requires-Dist: wheezy.core>=3.2.2
|
|
35
|
+
Provides-Extra: cython
|
|
36
|
+
Requires-Dist: Cython>=3.0; extra == "cython"
|
|
37
|
+
Requires-Dist: setuptools>=61.0; extra == "cython"
|
|
38
|
+
Dynamic: license-file
|
|
37
39
|
|
|
38
40
|
# wheezy.http
|
|
39
41
|
|
|
40
|
-
[](https://github.com/akornatskyy/wheezy.http/actions/workflows/tests.yml)
|
|
41
43
|
[](https://coveralls.io/github/akornatskyy/wheezy.http?branch=master)
|
|
42
44
|
[](https://wheezyhttp.readthedocs.io/en/latest/?badge=latest)
|
|
43
45
|
[](https://badge.fury.io/py/wheezy.http)
|
|
@@ -62,7 +64,7 @@ Resources:
|
|
|
62
64
|
## Install
|
|
63
65
|
|
|
64
66
|
[wheezy.http](https://pypi.org/project/wheezy.http/) requires
|
|
65
|
-
[python](https://www.python.org) version 3.
|
|
67
|
+
[python](https://www.python.org) version 3.10+. It is independent of operating
|
|
66
68
|
system. You can install it from [pypi](https://pypi.org/project/wheezy.http/)
|
|
67
69
|
site:
|
|
68
70
|
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
LICENSE
|
|
2
2
|
MANIFEST.in
|
|
3
3
|
README.md
|
|
4
|
+
pyproject.toml
|
|
4
5
|
setup.py
|
|
5
|
-
src/wheezy/__init__.py
|
|
6
6
|
src/wheezy.http.egg-info/PKG-INFO
|
|
7
7
|
src/wheezy.http.egg-info/SOURCES.txt
|
|
8
8
|
src/wheezy.http.egg-info/dependency_links.txt
|
|
9
|
-
src/wheezy.http.egg-info/namespace_packages.txt
|
|
10
9
|
src/wheezy.http.egg-info/not-zip-safe
|
|
11
10
|
src/wheezy.http.egg-info/requires.txt
|
|
12
11
|
src/wheezy.http.egg-info/top_level.txt
|
wheezy_http-3.2.1/setup.py
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python
|
|
2
|
-
|
|
3
|
-
import multiprocessing
|
|
4
|
-
import os
|
|
5
|
-
import re
|
|
6
|
-
|
|
7
|
-
from setuptools import setup
|
|
8
|
-
|
|
9
|
-
extra = {}
|
|
10
|
-
try:
|
|
11
|
-
from Cython.Build import cythonize
|
|
12
|
-
|
|
13
|
-
p = os.path.join("src", "wheezy", "http")
|
|
14
|
-
extra["ext_modules"] = cythonize(
|
|
15
|
-
[os.path.join(p, "*.py")],
|
|
16
|
-
exclude=os.path.join(p, "__init__.py"),
|
|
17
|
-
# https://github.com/cython/cython/issues/3262
|
|
18
|
-
nthreads=0 if multiprocessing.get_start_method() == "spawn" else 2,
|
|
19
|
-
compiler_directives={"language_level": 3},
|
|
20
|
-
quiet=True,
|
|
21
|
-
)
|
|
22
|
-
except ImportError:
|
|
23
|
-
pass
|
|
24
|
-
|
|
25
|
-
README = open(os.path.join(os.path.dirname(__file__), "README.md")).read()
|
|
26
|
-
VERSION = (
|
|
27
|
-
re.search(
|
|
28
|
-
r'__version__ = "(.+)"',
|
|
29
|
-
open("src/wheezy/http/__init__.py").read(),
|
|
30
|
-
)
|
|
31
|
-
.group(1)
|
|
32
|
-
.strip()
|
|
33
|
-
)
|
|
34
|
-
|
|
35
|
-
setup(
|
|
36
|
-
name="wheezy.http",
|
|
37
|
-
version=VERSION,
|
|
38
|
-
python_requires=">=3.8",
|
|
39
|
-
description="A lightweight http request-response library",
|
|
40
|
-
long_description=README,
|
|
41
|
-
long_description_content_type="text/markdown",
|
|
42
|
-
url="https://github.com/akornatskyy/wheezy.http",
|
|
43
|
-
author="Andriy Kornatskyy",
|
|
44
|
-
author_email="andriy.kornatskyy@live.com",
|
|
45
|
-
license="MIT",
|
|
46
|
-
classifiers=[
|
|
47
|
-
"Environment :: Web Environment",
|
|
48
|
-
"Intended Audience :: Developers",
|
|
49
|
-
"License :: OSI Approved :: MIT License",
|
|
50
|
-
"Natural Language :: English",
|
|
51
|
-
"Operating System :: OS Independent",
|
|
52
|
-
"Programming Language :: Python",
|
|
53
|
-
"Programming Language :: Python :: 3.8",
|
|
54
|
-
"Programming Language :: Python :: 3.9",
|
|
55
|
-
"Programming Language :: Python :: 3.10",
|
|
56
|
-
"Programming Language :: Python :: 3.11",
|
|
57
|
-
"Programming Language :: Python :: 3.12",
|
|
58
|
-
"Programming Language :: Python :: 3.13",
|
|
59
|
-
"Programming Language :: Python :: Implementation :: CPython",
|
|
60
|
-
"Programming Language :: Python :: Implementation :: PyPy",
|
|
61
|
-
"Topic :: Internet :: WWW/HTTP",
|
|
62
|
-
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
|
|
63
|
-
"Topic :: Internet :: WWW/HTTP :: WSGI",
|
|
64
|
-
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
|
|
65
|
-
"Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware",
|
|
66
|
-
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
67
|
-
"Topic :: Software Development :: Quality Assurance",
|
|
68
|
-
"Topic :: Software Development :: Testing",
|
|
69
|
-
],
|
|
70
|
-
keywords="wsgi http request response cache cachepolicy cookie "
|
|
71
|
-
"functional middleware transforms",
|
|
72
|
-
packages=["wheezy", "wheezy.http"],
|
|
73
|
-
package_dir={"": "src"},
|
|
74
|
-
namespace_packages=["wheezy"],
|
|
75
|
-
zip_safe=False,
|
|
76
|
-
install_requires=["wheezy.core>=0.1.104"],
|
|
77
|
-
platforms="any",
|
|
78
|
-
**extra
|
|
79
|
-
)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
wheezy
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
wheezy.core>=0.1.104
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|