Skip to content

Add developer tools suite and harden cURL importer#128

Merged
JE-Chen merged 2 commits into
mainfrom
dev
Jul 24, 2026
Merged

Add developer tools suite and harden cURL importer#128
JE-Chen merged 2 commits into
mainfrom
dev

Conversation

@JE-Chen

@JE-Chen JE-Chen commented Jul 24, 2026

Copy link
Copy Markdown
Member

Adds a suite of developer/API-automation tool tabs (menu + dock), each with a Qt-free logic core and a shared copy / open-in-editor / save output row:

  • cURL import — generates requests / pytest / APITestka (Python + JSON action) / LoadDensity scripts
  • JWT decoder, timestamp converter, hash generator
  • query/JSON converter, regex tester, HTTP status reference, text diff, JSON format
  • response inspector — detects status code, headers, JSON body and JWTs, and can open a finding in its dedicated tool

The cURL parser handles real-world commands: correct flag arity (values like --max-time 30 no longer leak into the URL), -F multipart, --json, -d @file, and --data-urlencode encoding.

All logic cores are unit-tested (test/test_utils); ruff and bandit are clean; English/Traditional-Chinese i18n parity holds.

Add tool tabs (menu + dock) for common API-automation tasks, each with a Qt-free logic core and a consistent copy / open-in-editor / save output row: cURL import, JWT decoder, timestamp converter, hash generator, query/JSON converter, regex tester, HTTP status reference, text diff, JSON format, and a response inspector that ties the status/JSON/JWT tools together.

The cURL importer generates requests / pytest / APITestka / LoadDensity scripts and handles real-world commands: correct flag arity so values no longer leak into the URL, -F multipart, --json, -d @file, and --data-urlencode encoding.
@codacy-production

codacy-production Bot commented Jul 24, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 307 complexity · 2 duplication

Metric Results
Complexity 307
Duplication 2

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

- add_dock: replace 16-branch if/elif with a dispatch table (S3776)
- request_codegen: extract duplicated "data=data" literal to a constant (S1192)
- jwt_decoder/query_convert: catch only ValueError, dropping subclasses already
  covered (S5713); remove now-unused binascii import
- test_hash_text: compare two separate calls instead of one expression (S5863)
- hash_text: build digests via hashlib.new(name, usedforsecurity=False) so there
  are no direct md5/sha1 call sites for the security scanners
- jwt placeholder: use a schematic <header>.<payload>.<signature> hint instead of
  a realistic sample token flagged as a detected JWT
@sonarqubecloud

Copy link
Copy Markdown

@JE-Chen
JE-Chen merged commit f985445 into main Jul 24, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant