[HN Gopher] Show HN: GraphQL Client in the Terminal
       ___________________________________________________________________
        
       Show HN: GraphQL Client in the Terminal
        
       Author : eerimoq
       Score  : 33 points
       Date   : 2022-06-04 09:27 UTC (13 hours ago)
        
 (HTM) web link (github.com)
 (TXT) w3m dump (github.com)
        
       | metadat wrote:
       | (This is implemented in Python)
       | 
       | Would love to see a Rust port as a reference for how Rustaceans
       | would achieve comparable functionality, curious what the
       | tradeoffs would be (complexity and LoC).
        
         | datalopers wrote:
         | It issues HTTP requests and provides a small terminal UI. Why
         | does the language possibly matter?
        
           | monocasa wrote:
           | > as a reference for how Rustaceans would achieve comparable
           | functionality
        
           | imran-iq wrote:
           | A good example would be curlie (go frontend for curl -
           | https://github.com/rs/curlie) vs httpie (pure python -
           | https://github.com/httpie/httpie). Originally I used httpie
           | for its easier syntax, but it is very noticeably slower than
           | curlie. I presume this is why they are asking for a rust
           | version.
           | 
           | Another reason is that python is a bit harder to distribute
           | due to the nature of python packaging, where as rust compiles
           | to a single binary.
        
       | nothingisconvex wrote:
       | Why is the better than cURL?
        
         | codefreakxff wrote:
         | It is an interactive query builder that understands the schema,
         | and lets you arrow between fields and input values.
        
       | RedShift1 wrote:
       | Cool!
        
       | hleszek wrote:
       | For subscriptions, you could use graphql-python/gql
       | (https://github.com/graphql-python/gql) as a dependency instead
       | of requests and graphql-core directly and support the websockets
       | transport.
        
       | smlavine wrote:
       | Go programmers may also be interested in this project:
       | 
       | https://git.sr.ht/~emersion/gqlclient
       | 
       | Which could be used to write a similar program.
        
       ___________________________________________________________________
       (page generated 2022-06-04 23:00 UTC)