http-tls 0.2.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.
- http_tls-0.2.1/.github/ISSUE_TEMPLATE/bug_report.yml +33 -0
- http_tls-0.2.1/.github/ISSUE_TEMPLATE/feature_request.yml +13 -0
- http_tls-0.2.1/.github/workflows/release.yml +86 -0
- http_tls-0.2.1/.gitignore +28 -0
- http_tls-0.2.1/Cargo.lock +1969 -0
- http_tls-0.2.1/Cargo.toml +36 -0
- http_tls-0.2.1/LICENSE +21 -0
- http_tls-0.2.1/PKG-INFO +230 -0
- http_tls-0.2.1/README.md +215 -0
- http_tls-0.2.1/pyproject.toml +26 -0
- http_tls-0.2.1/python/http_tls/__init__.py +79 -0
- http_tls-0.2.1/python/http_tls/__init__.pyi +86 -0
- http_tls-0.2.1/python/http_tls/exceptions.py +27 -0
- http_tls-0.2.1/python/http_tls/py.typed +1 -0
- http_tls-0.2.1/python/http_tls/requests.py +546 -0
- http_tls-0.2.1/python/http_tls/status_codes.py +72 -0
- http_tls-0.2.1/python/http_tls/structures.py +48 -0
- http_tls-0.2.1/src/lib.rs +591 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
name: 🐛 Bug Report
|
|
2
|
+
description: Create a report to help us fix a bug or bypass failure
|
|
3
|
+
title: "[Bug]: "
|
|
4
|
+
labels: ["bug"]
|
|
5
|
+
body:
|
|
6
|
+
- type: markdown
|
|
7
|
+
attributes:
|
|
8
|
+
value: Thanks for taking the time to report this issue!
|
|
9
|
+
- type: input
|
|
10
|
+
id: url
|
|
11
|
+
attributes:
|
|
12
|
+
label: Target URL
|
|
13
|
+
description: The website URL that triggered the issue (or tls.peet.ws)
|
|
14
|
+
placeholder: https://example.com
|
|
15
|
+
validations:
|
|
16
|
+
required: true
|
|
17
|
+
- type: textarea
|
|
18
|
+
id: reproduce
|
|
19
|
+
attributes:
|
|
20
|
+
label: Steps to Reproduce
|
|
21
|
+
description: Minimal Python code to reproduce the issue
|
|
22
|
+
placeholder: |
|
|
23
|
+
import http_tls
|
|
24
|
+
resp = http_tls.get("...")
|
|
25
|
+
validations:
|
|
26
|
+
required: true
|
|
27
|
+
- type: textarea
|
|
28
|
+
id: expected
|
|
29
|
+
attributes:
|
|
30
|
+
label: Expected Behavior
|
|
31
|
+
description: What did you expect to happen?
|
|
32
|
+
validations:
|
|
33
|
+
required: true
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
name: 💡 Feature Request / New Browser Preset
|
|
2
|
+
description: Suggest an idea, optimization, or request a new browser impersonation target
|
|
3
|
+
title: "[Feature]: "
|
|
4
|
+
labels: ["enhancement"]
|
|
5
|
+
body:
|
|
6
|
+
- type: textarea
|
|
7
|
+
id: feature
|
|
8
|
+
attributes:
|
|
9
|
+
label: Feature Description / New Preset
|
|
10
|
+
description: Describe the feature or browser version you would like added
|
|
11
|
+
placeholder: E.g., Add preset for Chrome 156 / Safari iOS 18.5
|
|
12
|
+
validations:
|
|
13
|
+
required: true
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
name: CI & Release Wheels
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main, master]
|
|
6
|
+
tags: ['v*']
|
|
7
|
+
pull_request:
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: write
|
|
11
|
+
id-token: write
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
build-wheels:
|
|
15
|
+
name: Build Wheels on ${{ matrix.os }} (${{ matrix.target }})
|
|
16
|
+
runs-on: ${{ matrix.os }}
|
|
17
|
+
strategy:
|
|
18
|
+
fail-fast: false
|
|
19
|
+
matrix:
|
|
20
|
+
include:
|
|
21
|
+
# Windows
|
|
22
|
+
- os: windows-latest
|
|
23
|
+
target: x86_64-pc-windows-msvc
|
|
24
|
+
# Linux
|
|
25
|
+
- os: ubuntu-latest
|
|
26
|
+
target: x86_64-unknown-linux-gnu
|
|
27
|
+
- os: ubuntu-latest
|
|
28
|
+
target: aarch64-unknown-linux-gnu
|
|
29
|
+
# macOS
|
|
30
|
+
- os: macos-latest
|
|
31
|
+
target: x86_64-apple-darwin
|
|
32
|
+
- os: macos-latest
|
|
33
|
+
target: aarch64-apple-darwin
|
|
34
|
+
|
|
35
|
+
steps:
|
|
36
|
+
- uses: actions/checkout@v4
|
|
37
|
+
|
|
38
|
+
- name: Set up Python
|
|
39
|
+
uses: actions/setup-python@v5
|
|
40
|
+
with:
|
|
41
|
+
python-version: '3.11'
|
|
42
|
+
|
|
43
|
+
- name: Build wheels
|
|
44
|
+
uses: PyO3/maturin-action@v1
|
|
45
|
+
with:
|
|
46
|
+
target: ${{ matrix.target }}
|
|
47
|
+
args: --release --out dist
|
|
48
|
+
sccache: 'true'
|
|
49
|
+
|
|
50
|
+
- name: Upload wheels
|
|
51
|
+
uses: actions/upload-artifact@v4
|
|
52
|
+
with:
|
|
53
|
+
name: wheels-${{ matrix.os }}-${{ matrix.target }}
|
|
54
|
+
path: dist
|
|
55
|
+
|
|
56
|
+
build-sdist:
|
|
57
|
+
name: Build Source Distribution (sdist)
|
|
58
|
+
runs-on: ubuntu-latest
|
|
59
|
+
steps:
|
|
60
|
+
- uses: actions/checkout@v4
|
|
61
|
+
- name: Build sdist
|
|
62
|
+
uses: PyO3/maturin-action@v1
|
|
63
|
+
with:
|
|
64
|
+
command: sdist
|
|
65
|
+
args: --out dist
|
|
66
|
+
- name: Upload sdist
|
|
67
|
+
uses: actions/upload-artifact@v4
|
|
68
|
+
with:
|
|
69
|
+
name: sdist
|
|
70
|
+
path: dist
|
|
71
|
+
|
|
72
|
+
release:
|
|
73
|
+
name: Publish to PyPI
|
|
74
|
+
runs-on: ubuntu-latest
|
|
75
|
+
needs: [build-wheels, build-sdist]
|
|
76
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
77
|
+
permissions:
|
|
78
|
+
id-token: write
|
|
79
|
+
steps:
|
|
80
|
+
- uses: actions/download-artifact@v4
|
|
81
|
+
with:
|
|
82
|
+
path: dist
|
|
83
|
+
merge-multiple: true
|
|
84
|
+
|
|
85
|
+
- name: Publish to PyPI
|
|
86
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Rust
|
|
2
|
+
target/
|
|
3
|
+
**/*.rs.bk
|
|
4
|
+
Cargo.lock
|
|
5
|
+
|
|
6
|
+
# Python
|
|
7
|
+
__pycache__/
|
|
8
|
+
*.py[cod]
|
|
9
|
+
*$py.class
|
|
10
|
+
*.pyd
|
|
11
|
+
*.so
|
|
12
|
+
*.dylib
|
|
13
|
+
.pytest_cache/
|
|
14
|
+
*.egg-info/
|
|
15
|
+
dist/
|
|
16
|
+
build/
|
|
17
|
+
*.whl
|
|
18
|
+
|
|
19
|
+
# Virtual Environments
|
|
20
|
+
.venv/
|
|
21
|
+
venv/
|
|
22
|
+
ENV/
|
|
23
|
+
|
|
24
|
+
# IDE
|
|
25
|
+
.idea/
|
|
26
|
+
.vscode/
|
|
27
|
+
*.swp
|
|
28
|
+
*.swo
|