Introducing aiodot — An Async Python SDK for MyDot.one
Building modern, asynchronous applications should be simple. That's why I created **aiodot.
Why I Built aiodot
When I started working with the MyDot.one API, I noticed there wasn't a modern Python SDK focused on asynchronous programming.
Most examples required writing repetitive HTTP requests, handling authentication manually, refreshing tokens, and managing sessions.
As someone who frequently builds bots and automation tools with asyncio, I wanted something that felt as natural as working with libraries like aiohttp or aiogram.
So I built aiodot.
What is aiodot?
aiodot is an asynchronous Python SDK for the MyDot.one API.
It takes care of the boring parts so you can focus on building your application.
Features
- Fully asynchronous API
- Login using username and password
- Automatic session management
- Automatic token refresh
- Clean and Pythonic interface
- More than 60 supported API endpoints
- Built on top of aiohttp
- Designed for bots, automation and backend services
Installation
pip install aiodot
Login
from aiodot import Client
client = Client()
await client.login(
username="your_username",
password="your_password"
)
That's it.
No manual HTTP requests.
No authentication boilerplate.
Fetch Your Profile
me = await client.me()
print(me.username)
print(me.id)
The goal is to make the SDK feel natural for Python developers.
Why Async?
Modern applications rarely execute a single request.
Bots, APIs and automation systems often send dozens or hundreds of requests concurrently.
Using asynchronous programming means:
- Better performance
- Less waiting
- Lower resource usage
- Cleaner concurrent code
Instead of blocking your application while waiting for network responses, aiodot allows your event loop to continue doing useful work.
Example
import asyncio
from aiodot import Client
async def main():
client = Client()
await client.login(
username="username",
password="password"
)
profile = await client.me()
print(profile)
asyncio.run(main())
Simple.
Readable.
Async.
Who is this library for?
aiodot is useful if you're building:
- Automation tools
- Bots
- Backend services
- Dashboards
- Personal scripts
- API integrations
What's Next?
I'm actively working on improving the project.
Planned improvements include:
- Better documentation
- More API coverage
- Type hints everywhere
- Additional examples
- Community contributions
Suggestions and pull requests are always welcome.
Final Thoughts
Building open-source software is one of the best ways to learn.
aiodot started as a personal tool, but I hope it becomes useful for other developers working with MyDot.one.
If you try it, I'd love to hear your feedback.
Happy coding! 🚀
GitHub: (Add your repository here)
PyPI: (Add your PyPI package link here)
Top comments (0)