Conversation
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.
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 307 |
| Duplication | 2 |
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
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



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:
The cURL parser handles real-world commands: correct flag arity (values like
--max-time 30no longer leak into the URL),-Fmultipart,--json,-d @file, and--data-urlencodeencoding.All logic cores are unit-tested (test/test_utils); ruff and bandit are clean; English/Traditional-Chinese i18n parity holds.