pepe-http 0.34.0 → 0.35.0

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.
package/CHANGELOG.md CHANGED
@@ -6,6 +6,123 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
8
  ## [Unreleased]
9
+ ## [0.35.0](https://github.com/omarmhaimdat/pepe/compare/v0.34.0...v0.35.0) - 2026-10-11
10
+
11
+ ### Added
12
+
13
+ - *(install)* pepe-http on npm and PyPI ([#154](https://github.com/omarmhaimdat/pepe/pull/154))
14
+
15
+ pepe installs from npm and from PyPI, both as `pepe-http`, both giving
16
+ the command `pepe`.
17
+
18
+ ```bash
19
+ npm install -g pepe-http # or: npx pepe-http -n 100 https://example.com
20
+ pipx install pepe-http # or: pip install pepe-http
21
+ ```
22
+
23
+ ## The name
24
+
25
+ `pepe-cli` is taken on both registries (on npm by ttoss/pepe, on PyPI by
26
+ a protein-embedding tool), and `pepe` itself is taken on PyPI.
27
+ `pepe-http` is free on both, says what pepe is, and reads the same
28
+ everywhere: `npx pepe-http`, `pipx install pepe-http`, the command
29
+ `pepe`. The Python module is `pepe_http` to match.
30
+
31
+ ## npm
32
+
33
+ dist's built-in npm installer: `installers` gains `"npm"`, `npm-package
34
+ = "pepe-http"` (no scope), and `publish-jobs` gains `"npm"`. `dist
35
+ generate` (0.33.0, the pinned version) regenerated
36
+ `.github/workflows/release.yml`; since `allow-dirty = ["ci"]` keeps dist
37
+ from touching the file, I ran it with that line off and then put back
38
+ the two hand edits the setting protects: Dependabot's
39
+ `actions/checkout@v7` (dist writes v6) and `contents: write` on the
40
+ action job. The diff of release.yml is additions only: the `publish-npm`
41
+ job, the `custom-publish-pypi` job, and both in `announce`. `dist plan`
42
+ lists `pepe-npm-package.tar.gz`. The npm package takes `description` and
43
+ `homepage` from Cargo.toml.
44
+
45
+ ## PyPI
46
+
47
+ There is no dist installer for PyPI, so `packaging/pypi/` is a small
48
+ pure-Python package: `pepe_http/__init__.py`, with `__main__.py`,
49
+ `pyproject.toml`, `README.md` and the root `LICENSE` copied. Standard
50
+ library only, Python 3.9+. On first run it maps the platform to a
51
+ release target (macOS arm64/x86_64, Linux x86_64/aarch64 musl, Windows
52
+ x86_64; Windows on ARM gets the x86_64 build), downloads
53
+ `pepe-<triple>.tar.xz`/`.zip` and its `.sha256` from the GitHub release
54
+ of the package's own version, refuses a mismatch, reads only the
55
+ `pepe`/`pepe.exe` member out of the archive, writes it next to its place
56
+ and moves it in, under `~/.cache/pepe-http`
57
+ (`~/Library/Caches/pepe-http` on macOS, `%LOCALAPPDATA%\pepe-http\Cache`
58
+ on Windows; `PEPE_HTTP_CACHE_DIR` overrides), then `os.execv`s it (on
59
+ Windows, a subprocess whose exit code is passed on). Every later run
60
+ only runs it.
61
+
62
+ The version lives in `pepe_http.__version__` (what `pyproject.toml`
63
+ reads through `dynamic`), so it works from a checkout too;
64
+ `.github/workflows/publish-pypi.yml`, a custom dist publish job like
65
+ `publish-homebrew.yml`, sets it from the release tag, builds with
66
+ `python -m build`, installs the wheel and runs `pepe --version` against
67
+ the release the host job has just created, and publishes with
68
+ `pypa/gh-action-pypi-publish@release/v1` under `id-token: write`
69
+ (trusted publishing, no token).
70
+
71
+
72
+
73
+ ### Other
74
+
75
+ - main.rs split by mode, the help in order of use, usage errors that say what to do ([#153](https://github.com/omarmhaimdat/pepe/pull/153))
76
+
77
+ Three things in one pass over the same files.
78
+
79
+ **The split.** `src/main.rs` was 2,100 lines with every mode's runner in
80
+ it. It is now the dispatch alone (270 lines); the modes are in
81
+ `src/modes/`, one file each (run, ping, ramp, compare, api, flow,
82
+ replay, logs), what they share in `modes/mod.rs`, and the terminal
83
+ handling (raw mode, Ctrl-C, the way out when the terminal stops reading)
84
+ in `src/terminal.rs`. A pure move: no behaviour changed.
85
+
86
+ **The help.** `pepe --help` lists the commands in the order people reach
87
+ for them: ping, ramp, compare, api, flow, replay, logs, then schema and
88
+ mcp, then self-update and completions. Man pages, completions and the
89
+ reference page regenerated.
90
+
91
+ **The errors.** Every usage error names the flag and says what to give
92
+ instead. Before and after:
93
+
94
+ ```
95
+ Duration must have a unit (s, m, h). Examples: 10s, 5m, 2h
96
+ -z "10" is not a duration: a number and a unit, as in 10s, 5m or 2h
97
+
98
+ Concurrency cannot be greater than the number of requests. -c 50 -n 10
99
+ -c 50 is more than the 10 requests of -n: lower -c, raise -n, or run for a time instead with -z 30s
100
+
101
+ Invalid header "Nope": expected 'Name: value'
102
+ header "Nope": a header is Name: value, as in -H 'Accept: application/json'
103
+ ```
104
+
105
+ Same for the timeout, the method, the proxy, the rate, `--trace-header`,
106
+ `--every` and `--warmup`. A pepe with nothing to run and no terminal
107
+ says so in one line instead of printing the whole help.
108
+
109
+ `cargo test`, clippy with `-D warnings`, and the site check pass.
110
+
111
+
112
+ - *(site)* the front page in the docs' style ([#152](https://github.com/omarmhaimdat/pepe/pull/152))
113
+
114
+ pepe.mhaimdat.com was a page of its own, a terminal in monospace, beside
115
+ a documentation site that looked nothing like it. It is now one site in
116
+ one style: the front page opens like the docs' overview (logo, name, one
117
+ sentence, three buttons), then the install line with a tab per platform,
118
+ the home recording, a card per mode, the three benchmark numbers and a
119
+ footer, using the docs' stylesheet and script, light and dark.
120
+
121
+ The four dashboard screenshots the old page showed are removed with it
122
+ (the recordings show the same); the publish job's URL check no longer
123
+ lists them. Checked in the browser at phone and desktop widths.
124
+
125
+
9
126
  ## [0.34.0](https://github.com/omarmhaimdat/pepe/compare/v0.33.0...v0.34.0) - 2026-10-11
10
127
 
11
128
  ### Added
@@ -19,7 +19,7 @@
19
19
  "hasInstallScript": true,
20
20
  "license": "MIT",
21
21
  "name": "pepe-http",
22
- "version": "0.34.0"
22
+ "version": "0.35.0"
23
23
  },
24
24
  "node_modules/detect-libc": {
25
25
  "engines": {
@@ -48,5 +48,5 @@
48
48
  }
49
49
  },
50
50
  "requires": true,
51
- "version": "0.34.0"
51
+ "version": "0.35.0"
52
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "artifactDownloadUrls": [
3
- "https://github.com/omarmhaimdat/pepe/releases/download/v0.34.0"
3
+ "https://github.com/omarmhaimdat/pepe/releases/download/v0.35.0"
4
4
  ],
5
5
  "author": "Omar MHAIMDAT",
6
6
  "bin": {
@@ -119,7 +119,7 @@
119
119
  "zipExt": ".tar.xz"
120
120
  }
121
121
  },
122
- "version": "0.34.0",
122
+ "version": "0.35.0",
123
123
  "volta": {
124
124
  "node": "18.14.1",
125
125
  "npm": "9.5.0"