Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiorouter-0.1.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

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

Hashes for aiorouter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 31901dffea6912b61518e70aac9d0c139af02257be6a63a3557849259dbd6993
MD5 89eabdcbc6d0b062649b071808d590d9
BLAKE2b-256 7c3d23c0c112f2571e3865abb4f142db40a8e36aba4d7cecb4bd68e30b4445aa

See more details on using hashes here.

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

Hashes for aiorouter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e36648975e6baf2455cd8d89b072afcb9a5cfb7e36b5f41a1fd5a980e369be03
MD5 3d258f8b4f4a94d1f04d12e27b17a6c0
BLAKE2b-256 8da3976dbf4705ae56efe65dc8b4888cdcd07f0aa83691f545e262e0b76fb587

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page