<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Daniel Seifert</title>
    <description>The latest articles on DEV Community by Daniel Seifert (@dfseifert).</description>
    <link>https://dev.to/dfseifert</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F803788%2Fd7965dce-e8cf-449d-9ad6-b712ff6d5e7b.jpeg</url>
      <title>DEV Community: Daniel Seifert</title>
      <link>https://dev.to/dfseifert</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dfseifert"/>
    <language>en</language>
    <item>
      <title>Using GraphQL the pythonic way.</title>
      <dc:creator>Daniel Seifert</dc:creator>
      <pubDate>Mon, 01 Aug 2022 11:25:41 +0000</pubDate>
      <link>https://dev.to/dfseifert/using-graphql-the-pythonic-way-1o1g</link>
      <guid>https://dev.to/dfseifert/using-graphql-the-pythonic-way-1o1g</guid>
      <description>&lt;h1&gt;
  
  
  Introduction
&lt;/h1&gt;

&lt;p&gt;My main task at work is to implement different interfaces, ranging from database connections to SOAP, RESTful and eventually GraphQL services.&lt;/p&gt;

&lt;p&gt;One day whilst implementing another GraphQL service, I thought: "Hold up, why am I writing these graphql queries when i could generate them automatically?"&lt;/p&gt;

&lt;p&gt;So I did what every programmer would do. I settled down in my basement, put every other project on hold and dove head over heels into a new project. The result? &lt;a href="https://qlient-org.github.io/python-qlient/site/"&gt;qlient&lt;/a&gt;. A "blazingly" fast and modern graphql client that was designed with simplicity in mind.&lt;/p&gt;

&lt;h1&gt;
  
  
  Installation
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://qlient-org.github.io/python-qlient/site/"&gt;qlient&lt;/a&gt; is a pure-python module. This means that there is no C code which needs to be compiled.&lt;/p&gt;

&lt;p&gt;This package is build with &lt;a href="https://python-poetry.org/"&gt;poetry&lt;/a&gt; so installation is as you might expect.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;qlient
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h1&gt;
  
  
  Usage
&lt;/h1&gt;

&lt;p&gt;My goal was to make the usage as natural and intuitive as possible. It should feel like writing casual python code.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;All examples use a made up http server.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Queries
&lt;/h2&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;h2&gt;
  
  
  Mutations
&lt;/h2&gt;

&lt;p&gt;But it is not just queries you can do, mutations are supported as well:&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


&lt;h2&gt;
  
  
  Subscriptions
&lt;/h2&gt;

&lt;p&gt;And why stop there when we can add subscriptions as well?&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


&lt;h1&gt;
  
  
  Conclusion
&lt;/h1&gt;

&lt;p&gt;If you don't want to write the graphql queries yourself, why don't you go ahead and try out the new &lt;a href="https://qlient-org.github.io/python-qlient/site/"&gt;qlient&lt;/a&gt; yourself?&lt;/p&gt;

&lt;p&gt;I am happy and open for any thoughts and feedbacks.&lt;/p&gt;

</description>
      <category>python</category>
      <category>graphql</category>
      <category>tutorial</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
