semvec/pypi-packages huggingface dataset:
wwt-data-formats 0.18.1
Low-level interface to WorldWide Telescope data formats
License: MIT

[wwt_data_formats] is a low-level Python package that interfaces with the
various XML serialization formats used by [WorldWide Telescope].

[wwt_data_formats]: https://wwt-data-formats.readthedocs.io/
[WorldWide Telescope]: https://worldwidetelescope.org/


For more information, including installation instructions, please visit [the
project homepage].

[the project homepage]: https://wwt-data-formats.readthedocs.io/
aiogram3-di 2.0.0
Dependency Injection implementation for aiogram 3.
License: MIT
Requires Python: >=3.10
Keywords: Aiogram,Telegram,Bots,DI,Dependency Injection

### Example of usage

```python
import logging
from os import getenv
from typing import Annotated

from aiogram import Router, Bot, Dispatcher
from aiogram.types import Message, User
from aiogram3_di import setup_di, Depends

router = Router()


def get_user_full_name(event_from_user: User) -> str:
    return event_from_user.full_name


@router.message()
async def start(
        message: Message, full_name: Annotated[str, Depends(get_user_full_name)]
) -> None:
    await message.answer(f"Hi {full_name}")


def main() -> None:
    logging.basicConfig(level=logging.INFO)

    bot = Bot(token=getenv("BOT_TOKEN"))

    dp = Dispatcher()

    dp.include_router(router)

    setup_di(dp)

    dp.run_polling(bot)


if __name__ == "__main__":
    main()
```

### Handler Dependencies.

You can use `Depends` in the flags parameter of the handler, for example: 

```python
flags={"dependencies": [Depends(verify_user)]}
```

### Details

It is inspired by [FastAPI](https://github.com/tiangolo/fastapi).

If you define a normal def, your function will be called in a different thread.

### License

MIT