Skip to content

Commit

Permalink
Rename library to primp
Browse files Browse the repository at this point in the history
  • Loading branch information
deedy5 committed Jul 27, 2024
1 parent d0121b6 commit a13aa32
Show file tree
Hide file tree
Showing 10 changed files with 87 additions and 182 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
for version in 3.8 3.9 3.10 3.11 3.12; do
uv venv --preview --python $version
source .venv/bin/activate
uv pip install pyreqwest_impersonate --no-index --find-links dist --force-reinstall
uv pip install primp --no-index --find-links dist --force-reinstall
uv pip install pytest
pytest
done
Expand All @@ -77,7 +77,7 @@ jobs:
for version in 3.8 3.9 3.10 3.11 3.12; do
uv venv --preview --python $version
source .venv/bin/activate
uv pip install pyreqwest_impersonate --no-index --find-links dist --force-reinstall
uv pip install primp --no-index --find-links dist --force-reinstall
uv pip install pytest
pytest
done
Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
for version in 3.8 3.9 3.10 3.11 3.12; do
python$version -m venv .venv
source .venv/bin/activate
pip install pyreqwest_impersonate --no-index --find-links dist --force-reinstall
pip install primp --no-index --find-links dist --force-reinstall
pip install pytest
pytest
done
Expand Down Expand Up @@ -162,7 +162,7 @@ jobs:
for version in 3.8 3.9 3.10 3.11 3.12; do
uv venv --preview --python $version
source .venv/Scripts/activate
uv pip install pyreqwest_impersonate --no-index --find-links dist --force-reinstall
uv pip install primp --no-index --find-links dist --force-reinstall
uv pip install pytest
pytest
done
Expand Down Expand Up @@ -200,7 +200,7 @@ jobs:
for version in 3.8 3.9 3.10 3.11 3.12; do
uv venv --preview --python $version
source .venv/bin/activate
uv pip install pyreqwest_impersonate --no-index --find-links dist --force-reinstall
uv pip install primp --no-index --find-links dist --force-reinstall
uv pip install pytest
pytest
done
Expand Down Expand Up @@ -253,7 +253,7 @@ jobs:
- name: Install dependencies
run: |
pip install -r benchmark/requirements.txt
pip install pyreqwest_impersonate --no-index --find-links ./ --force-reinstall
pip install primp --no-index --find-links ./ --force-reinstall
- name: Start Uvicorn server
run: |
uvicorn benchmark.server:app --host 0.0.0.0 --port 8000 &
Expand All @@ -269,9 +269,9 @@ jobs:
git add \*.jpg
git diff --quiet && git diff --staged --quiet || git commit -m "Update generated image"
git checkout -b update-generated-image
git push https://${{ secrets.PUSH_TOKEN }}@github.com/deedy5/pyreqwest_impersonate.git update-generated-image || echo "No changes to push"
git push https://${{ secrets.PUSH_TOKEN }}@github.com/deedy5/primp.git update-generated-image || echo "No changes to push"
git fetch origin
git checkout main
git merge update-generated-image
git push https://${{ secrets.PUSH_TOKEN }}@github.com/deedy5/pyreqwest_impersonate.git main
git push https://${{ secrets.PUSH_TOKEN }}@github.com/deedy5/primp.git main
git push origin --delete update-generated-image
168 changes: 36 additions & 132 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "pyreqwest_impersonate"
name = "primp"
version = "0.5.3"
edition = "2021"
description = "HTTP client that can impersonate web browsers, mimicking their headers and `TLS/JA3/JA4/HTTP2` fingerprints"
Expand All @@ -8,12 +8,12 @@ authors = ["deedy5"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "pyreqwest_impersonate"
name = "primp"
crate-type = ["cdylib"]

[dependencies]
pyo3 = { version = "0.22", features = ["extension-module", "abi3-py38", "indexmap"] }
reqwest-impersonate = { version = "0.11", default-features = false, features = [
rquest = { version = "0.11", default-features = false, features = [
"cookies",
"boring-tls",
"impersonate",
Expand Down
Loading

0 comments on commit a13aa32

Please sign in to comment.