Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: cesaryuan/python-scripting-api
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: reqable/python-scripting-api
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 12 commits
  • 3 files changed
  • 2 contributors

Commits on Jun 16, 2024

  1. Copy the full SHA
    cefb9ad View commit details
  2. Copy the full SHA
    74d9e06 View commit details
  3. Copy the full SHA
    d45828b View commit details

Commits on Jun 23, 2024

  1. Merge pull request reqable#1 from cesaryuan/fix

    Fix ModuleNotFoundError when running reqable script directly
    MegatronKing authored Jun 23, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    81285a4 View commit details

Commits on Aug 1, 2024

  1. Copy the full SHA
    64a447b View commit details
  2. Copy the full SHA
    ba90e11 View commit details

Commits on Nov 3, 2024

  1. Copy the full SHA
    a8ab5db View commit details

Commits on Nov 15, 2024

  1. Add comment api

    MegatronKing committed Nov 15, 2024
    Copy the full SHA
    90d36a4 View commit details

Commits on Feb 27, 2025

  1. Copy the full SHA
    978d35d View commit details

Commits on Mar 4, 2025

  1. Copy the full SHA
    2727e24 View commit details

Commits on Mar 17, 2025

  1. Copy the full SHA
    caf39cd View commit details

Commits on Apr 15, 2025

  1. Copy the full SHA
    6c8b045 View commit details
Showing with 150 additions and 76 deletions.
  1. +1 −4 reqable/__init__.py
  2. +10 −0 reqable/main.py
  3. +139 −72 reqable/reqable.py
5 changes: 1 addition & 4 deletions reqable/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
import main

if __name__== '__main__':
main.main()
from reqable.reqable import *
10 changes: 10 additions & 0 deletions reqable/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import sys
import os

pwd = os.path.dirname(os.path.abspath(__file__))
if pwd not in sys.path:
sys.path.append(pwd)

import json
from reqable import CaptureContext, CaptureHttpRequest, CaptureHttpResponse
import addons
@@ -25,6 +31,8 @@ def onRequest(request):
callback.write(json.dumps({
'request': result.serialize(),
'env': context.env,
'highlight': context.highlight,
'comment': context.comment,
'shared': context.shared,
}))

@@ -38,6 +46,8 @@ def onResponse(response):
callback.write(json.dumps({
'response': result.serialize(),
'env': context.env,
'highlight': context.highlight,
'comment': context.comment,
'shared': context.shared,
}))

Loading