<?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: karbaladev.ir</title>
    <description>The latest articles on DEV Community by karbaladev.ir (@karbaladevir).</description>
    <link>https://dev.to/karbaladevir</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4038449%2F6bcf2aa3-31a1-4928-9034-2137abda8fb7.gif</url>
      <title>DEV Community: karbaladev.ir</title>
      <link>https://dev.to/karbaladevir</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/karbaladevir"/>
    <language>en</language>
    <item>
      <title>Introducing aiodot: Async Python SDK for MyDot.one</title>
      <dc:creator>karbaladev.ir</dc:creator>
      <pubDate>Mon, 20 Jul 2026 15:32:05 +0000</pubDate>
      <link>https://dev.to/karbaladevir/introducing-aiodot-async-python-sdk-for-mydotone-3do6</link>
      <guid>https://dev.to/karbaladevir/introducing-aiodot-async-python-sdk-for-mydotone-3do6</guid>
      <description>&lt;h1&gt;
  
  
  Introducing aiodot — An Async Python SDK for MyDot.one
&lt;/h1&gt;

&lt;p&gt;&lt;em&gt;Building modern, asynchronous applications should be simple. That's why I created **aiodot&lt;/em&gt;&lt;em&gt;.&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Why I Built aiodot
&lt;/h2&gt;

&lt;p&gt;When I started working with the MyDot.one API, I noticed there wasn't a modern Python SDK focused on asynchronous programming.&lt;/p&gt;

&lt;p&gt;Most examples required writing repetitive HTTP requests, handling authentication manually, refreshing tokens, and managing sessions.&lt;/p&gt;

&lt;p&gt;As someone who frequently builds bots and automation tools with &lt;code&gt;asyncio&lt;/code&gt;, I wanted something that felt as natural as working with libraries like &lt;code&gt;aiohttp&lt;/code&gt; or &lt;code&gt;aiogram&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;aiodot&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  What is aiodot?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;aiodot&lt;/strong&gt; is an asynchronous Python SDK for the MyDot.one API.&lt;/p&gt;

&lt;p&gt;It takes care of the boring parts so you can focus on building your application.&lt;/p&gt;

&lt;h3&gt;
  
  
  Features
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Fully asynchronous API&lt;/li&gt;
&lt;li&gt;Login using username and password&lt;/li&gt;
&lt;li&gt;Automatic session management&lt;/li&gt;
&lt;li&gt;Automatic token refresh&lt;/li&gt;
&lt;li&gt;Clean and Pythonic interface&lt;/li&gt;
&lt;li&gt;More than 60 supported API endpoints&lt;/li&gt;
&lt;li&gt;Built on top of aiohttp&lt;/li&gt;
&lt;li&gt;Designed for bots, automation and backend services&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Installation
&lt;/h2&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;aiodot
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  Login
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;aiodot&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Client&lt;/span&gt;

&lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Client&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;login&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;your_username&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;password&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;your_password&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it.&lt;/p&gt;

&lt;p&gt;No manual HTTP requests.&lt;/p&gt;

&lt;p&gt;No authentication boilerplate.&lt;/p&gt;




&lt;h2&gt;
  
  
  Fetch Your Profile
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;me&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;me&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;me&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;me&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The goal is to make the SDK feel natural for Python developers.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why Async?
&lt;/h2&gt;

&lt;p&gt;Modern applications rarely execute a single request.&lt;/p&gt;

&lt;p&gt;Bots, APIs and automation systems often send dozens or hundreds of requests concurrently.&lt;/p&gt;

&lt;p&gt;Using asynchronous programming means:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Better performance&lt;/li&gt;
&lt;li&gt;Less waiting&lt;/li&gt;
&lt;li&gt;Lower resource usage&lt;/li&gt;
&lt;li&gt;Cleaner concurrent code&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Instead of blocking your application while waiting for network responses, &lt;code&gt;aiodot&lt;/code&gt; allows your event loop to continue doing useful work.&lt;/p&gt;




&lt;h2&gt;
  
  
  Example
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;asyncio&lt;/span&gt;

&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;aiodot&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;Client&lt;/span&gt;


&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
    &lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Client&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

    &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;login&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;username&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;password&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;password&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="n"&gt;profile&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;me&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

    &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;profile&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;


&lt;span class="n"&gt;asyncio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Simple.&lt;/p&gt;

&lt;p&gt;Readable.&lt;/p&gt;

&lt;p&gt;Async.&lt;/p&gt;




&lt;h2&gt;
  
  
  Who is this library for?
&lt;/h2&gt;

&lt;p&gt;aiodot is useful if you're building:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Automation tools&lt;/li&gt;
&lt;li&gt;Bots&lt;/li&gt;
&lt;li&gt;Backend services&lt;/li&gt;
&lt;li&gt;Dashboards&lt;/li&gt;
&lt;li&gt;Personal scripts&lt;/li&gt;
&lt;li&gt;API integrations&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  What's Next?
&lt;/h2&gt;

&lt;p&gt;I'm actively working on improving the project.&lt;/p&gt;

&lt;p&gt;Planned improvements include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Better documentation&lt;/li&gt;
&lt;li&gt;More API coverage&lt;/li&gt;
&lt;li&gt;Type hints everywhere&lt;/li&gt;
&lt;li&gt;Additional examples&lt;/li&gt;
&lt;li&gt;Community contributions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Suggestions and pull requests are always welcome.&lt;/p&gt;




&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;Building open-source software is one of the best ways to learn.&lt;/p&gt;

&lt;p&gt;aiodot started as a personal tool, but I hope it becomes useful for other developers working with MyDot.one.&lt;/p&gt;

&lt;p&gt;If you try it, I'd love to hear your feedback.&lt;/p&gt;

&lt;p&gt;Happy coding! 🚀&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;em&gt;(Add your repository here)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;PyPI:&lt;/strong&gt; &lt;em&gt;(Add your PyPI package link here)&lt;/em&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  python #opensource #async #aiohttp
&lt;/h1&gt;

</description>
      <category>programming</category>
      <category>python</category>
      <category>api</category>
      <category>news</category>
    </item>
  </channel>
</rss>
