swpreq 0.1.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.
- swpreq-0.1.0/CHANGELOG.md +30 -0
- swpreq-0.1.0/LICENSE +21 -0
- swpreq-0.1.0/MANIFEST.in +16 -0
- swpreq-0.1.0/PKG-INFO +1346 -0
- swpreq-0.1.0/README.md +1311 -0
- swpreq-0.1.0/pyproject.toml +60 -0
- swpreq-0.1.0/setup.cfg +4 -0
- swpreq-0.1.0/swpreq/__init__.py +80 -0
- swpreq-0.1.0/swpreq/_native.py +334 -0
- swpreq-0.1.0/swpreq/async_api.py +74 -0
- swpreq-0.1.0/swpreq/client.py +401 -0
- swpreq-0.1.0/swpreq/exceptions.py +73 -0
- swpreq-0.1.0/swpreq/hooks.py +29 -0
- swpreq-0.1.0/swpreq/lib/android-arm64/libswpreq.so +0 -0
- swpreq-0.1.0/swpreq/lib/android-armv7/libswpreq.so +0 -0
- swpreq-0.1.0/swpreq/lib/android-x64/libswpreq.so +0 -0
- swpreq-0.1.0/swpreq/lib/android-x86/libswpreq.so +0 -0
- swpreq-0.1.0/swpreq/lib/linux-arm64/libswpreq.so +0 -0
- swpreq-0.1.0/swpreq/lib/linux-armv7/libswpreq.so +0 -0
- swpreq-0.1.0/swpreq/lib/linux-x64/libswpreq.so +0 -0
- swpreq-0.1.0/swpreq/lib/macos-arm64/libswpreq.dylib +0 -0
- swpreq-0.1.0/swpreq/lib/macos-x64/libswpreq.dylib +0 -0
- swpreq-0.1.0/swpreq/lib/windows-arm64/swpreq.dll +0 -0
- swpreq-0.1.0/swpreq/lib/windows-x64/swpreq.dll +0 -0
- swpreq-0.1.0/swpreq/lib/windows-x86/swpreq.dll +0 -0
- swpreq-0.1.0/swpreq/multipart.py +83 -0
- swpreq-0.1.0/swpreq/oauth.py +142 -0
- swpreq-0.1.0/swpreq/response.py +128 -0
- swpreq-0.1.0/swpreq/retry.py +43 -0
- swpreq-0.1.0/swpreq/sse.py +99 -0
- swpreq-0.1.0/swpreq/streaming.py +55 -0
- swpreq-0.1.0/swpreq/sync_api.py +44 -0
- swpreq-0.1.0/swpreq/websocket.py +288 -0
- swpreq-0.1.0/swpreq.egg-info/PKG-INFO +1346 -0
- swpreq-0.1.0/swpreq.egg-info/SOURCES.txt +36 -0
- swpreq-0.1.0/swpreq.egg-info/dependency_links.txt +1 -0
- swpreq-0.1.0/swpreq.egg-info/not-zip-safe +1 -0
- swpreq-0.1.0/swpreq.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [0.1.0] - 2026-10-07
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Initial release
|
|
8
|
+
- Sync HTTP client (Client, Session)
|
|
9
|
+
- Async HTTP client (AsyncClient, AsyncSession)
|
|
10
|
+
- HTTP/1.1 and HTTP/2 support
|
|
11
|
+
- WebSocket support (embedded in Rust)
|
|
12
|
+
- SSE support
|
|
13
|
+
- Streaming response
|
|
14
|
+
- Multipart upload
|
|
15
|
+
- OAuth1 and OAuth2 helpers
|
|
16
|
+
- Retry policy (exponential, jitter)
|
|
17
|
+
- Hooks (request, response)
|
|
18
|
+
- Adapter (mount, unmount)
|
|
19
|
+
- Cookie jar
|
|
20
|
+
- Netrc support
|
|
21
|
+
- Encoding detection (BOM, charset)
|
|
22
|
+
- gzip, brotli, zstd, deflate compression
|
|
23
|
+
- Multi-platform support (Windows, Linux, macOS, Android)
|
|
24
|
+
- Multi-arch support (x64, arm64, armv7, x86)
|
|
25
|
+
|
|
26
|
+
### Performance
|
|
27
|
+
|
|
28
|
+
- 10.48x faster than requests (sequential, remote)
|
|
29
|
+
- 30.4 req/s async concurrent
|
|
30
|
+
- 3-21x speedup across workloads
|
swpreq-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 silentwolfproject
|
|
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.
|
swpreq-0.1.0/MANIFEST.in
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
include README.md
|
|
2
|
+
include LICENSE
|
|
3
|
+
include CHANGELOG.md
|
|
4
|
+
include pyproject.toml
|
|
5
|
+
include MANIFEST.in
|
|
6
|
+
|
|
7
|
+
recursive-include swpreq *.py
|
|
8
|
+
recursive-include swpreq *.pyi
|
|
9
|
+
recursive-include swpreq/lib *.dll
|
|
10
|
+
recursive-include swpreq/lib *.so
|
|
11
|
+
recursive-include swpreq/lib *.dylib
|
|
12
|
+
|
|
13
|
+
global-exclude __pycache__
|
|
14
|
+
global-exclude *.py[co]
|
|
15
|
+
global-exclude *.so.tmp
|
|
16
|
+
global-exclude *.egg-info
|