Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 29 09:15
    piddubnyi opened #29
  • Sep 21 15:32
    yijia-zhan opened #28
  • Apr 08 11:55
    hxss opened #27
  • Feb 09 14:21
    mercurykd opened #26
  • Dec 06 2019 16:24
    codewzrd opened #25
  • Nov 28 2019 09:23
    mercurykd commented #23
  • Nov 28 2019 09:01
    mercurykd commented #23
  • Nov 28 2019 09:00
    mercurykd commented #23
  • Nov 25 2019 18:41
    mercurykd commented #23
  • Nov 25 2019 18:37
    kylebebak commented #23
  • Nov 25 2019 18:37
    kylebebak labeled #23
  • Nov 12 2019 14:09
    coveralls commented #24
  • Nov 12 2019 14:08
    dependabot[bot] labeled #24
  • Nov 12 2019 14:08
    dependabot[bot] opened #24
  • Nov 12 2019 14:08

    dependabot[bot] on bundler

    Bump ffi from 1.9.17 to 1.11.2 … (compare)

  • Nov 12 2019 14:07

    kylebebak on 2.39.2

    (compare)

  • Nov 12 2019 14:07

    kylebebak on master

    Improves curl_to_request to gra… (compare)

  • Nov 03 2019 09:07
    mercurykd opened #23
  • Jul 06 2019 14:11
    kylebebak labeled #22
  • Jul 05 2019 15:05
    kylebebak commented #22
Kyle Bebak
@kylebebak

Welcome, Bienvenidos

I've been working on Requester for a few months and am pretty happy with where it's at
But I'd love to get more people involved in its development, so I invited you folks
Keith Hall
@keith-hall
do you have a roadmap of features that you want help implementing, or do you want more people to support requester/manage the issues list? :) or hoping we have ideas for improvements? ;)
Kyle Bebak
@kylebebak
Hey Keith, that's a good question. The roadmap is here. I'm updating it right now.
As for issues, I don't need any help with them yet. There haven't been hardly any, but that's probably because the plugin still has very few users.
Keith Hall
@keith-hall
ah for some reason I didn't think of looking at the contributing guide, despite it making sense lol
Kyle Bebak
@kylebebak
Hey Keith, I just updated the roadmap
Kyle Bebak
@kylebebak
I'm also open to suggestions for new features, improvements to architecture, etc. The contributing doc explains how Requester works at a high level. If something isn't clear feel free to ask!
Keith Hall
@keith-hall
your OpenAPI idea sounds cool, I can't say that I understand it well enough to contribute though unfortunately (hearing of it for the first time now)
one thing I'd really love is a decent way to test SOAP web services
i.e. give requester a wsdl url, and it would suggest the methods that can be executed and help input and validate the required fields
but I'm not sure how feasible that is within ST in a user friendly way without working with the raw soap envelopes
also I need to remind myself how well requester deals with ssl client certificates etc.
Kyle Bebak
@kylebebak
Requester deals with SSL certificates however Requests deals with SSL. It delegates all the work to Requests and its syntax is basically a superset of Requests syntax
Regarding SOAP, I can't say that I understand it well enough to contribute there! WSDL sounds a bit like a GraphQL schema, i.e. your parse it to determine what kinds of requests can be sent
This is something I added to Requester a while back, but WSDL is XML and seems like its scope is broader than GraphQL
I don't use XML-based APIs on the job, but if you want to work on this that would be awesome
Keith Hall
@keith-hall
:+1:
Bishal Sharma
@precogtyrant
is it possible to do iterations using this package?
Kyle Bebak
@kylebebak
Hey Bishal, what do you mean by iterations?
Bishal Sharma
@precogtyrant
Hi @kylebebak something like this:
pages = [1,2]
for p in pages:
...requests.get(f"http://myapi.com/a/?page={p}")
Kyle Bebak
@kylebebak
Ahh, gotcha. No, this isn't possible
Requester's parser is simple -- it finds calls to requests using a regular expression
It doesn't know anything about block statements (if, for, etc)
Kyle Bebak
@kylebebak
Also, remember that Sublime Text runs Python 3.3, which means you can't use the new format string syntax
requests.get('http://myapi.com/a/?page=1')
requests.get('http://myapi.com/a/?page=2')
You could write both requests out and then send them in parallel, but this is probably not what you're looking for
If you want to use an if loop with requests, I would just write Python code to do that and run it in the console
Bishal Sharma
@precogtyrant
hi @kylebebak thanks for your response.
yes i use ruby for sending requests currently (on sublime text) but the output is shown in the console window (same with python) unlike requester that displays output right inside the text editor with the necessary highlighting for json which is nice. that is why i wanted to see if there is a way to run loops with reqeuster.
Bishal Sharma
@precogtyrant
i have used insomnia, postman etc. in the past to run requests but none of these tools allow iteration which is why i have to always go back to doing it in the console. Requester is good for requests with large response bodies since its lightweight. since its mentioned it is possible to set env variables using python , i just wanted to ask if it is possible to do iterations as well using python.
Kyle Bebak
@kylebebak
Well, I'm glad you're using Requester, and I'm glad you asked the question. Unfortunately, I doubt the library will ever support iteration. Parsing arbitrarily complex Python code for calls to requests seems like it implies writing a fully-fledged Python parser from scratch
If someone knows a lot about ASTs and whether they can be used to find function calls and extract the arg/kwarg list for each of these calls, it might be possible to build this feature in theory
But I kind of doubt it
Bishal Sharma
@precogtyrant
thanks @kylebebak