Library to manage aiogram routers more easily.
Project description
aiorouter 🚀
aiorouter is a convenient library designed to simplify the management of routers in projects based on aiogram. It automates the process of collecting all routers in your project, making it easier to organize and scale your bot.
📦 Installation
pip install aiorouter
💡 Features
🔍 Automatic Router Discovery: The library recursively scans all directories and modules in your project, finding and gathering all routers in one place.
🚀 Easy to Use: A simple and intuitive API that allows you to quickly set up and use it in your project.
### 🛠️ Example Usage
from aiorouter import RouterManager
# Specify the root directory of your project where the router modules are located.
router_manager = RouterManager(root_path="bot")
# Collect all routers from the modules.
routers = router_manager.collect_routers()
# Now you have a list of all routers, ready to be used in your bot!
for router in routers:
# Add each router to the main bot application
app.include_router(router)
### 🌟 Why Choose aiorouter?
📈 Simplifies Development: Focus on your bot's logic without worrying about organizational details.
⏱️ Saves Time: Automatically collecting routers reduces the chances of errors and saves you time.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aiorouter-0.1.0.tar.gz
(2.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aiorouter-0.1.0.tar.gz.
File metadata
- Download URL: aiorouter-0.1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31901dffea6912b61518e70aac9d0c139af02257be6a63a3557849259dbd6993
|
|
| MD5 |
89eabdcbc6d0b062649b071808d590d9
|
|
| BLAKE2b-256 |
7c3d23c0c112f2571e3865abb4f142db40a8e36aba4d7cecb4bd68e30b4445aa
|
File details
Details for the file aiorouter-0.1.0-py3-none-any.whl.
File metadata
- Download URL: aiorouter-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e36648975e6baf2455cd8d89b072afcb9a5cfb7e36b5f41a1fd5a980e369be03
|
|
| MD5 |
3d258f8b4f4a94d1f04d12e27b17a6c0
|
|
| BLAKE2b-256 |
8da3976dbf4705ae56efe65dc8b4888cdcd07f0aa83691f545e262e0b76fb587
|