Asgi-request-duration

Latest version: v1.0.5

Safety actively analyzes 723685 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.0.5

✨ Features
- πŸ†™ Version bump to **1.0.5**.
- πŸ“ˆ Added download badge to `README` for better visibility of package popularity.
- πŸ“– Updated `README.md` to enhance structure and add usage examples for Starlette.
- πŸ›  Added new Starlette example with `RequestDurationMiddleware` and removed outdated examples.

πŸ”„ Refactor
- πŸ”§ Refactored decorators to use `Callable` type hints for improved precision and readability.
- πŸ”§ Refactored test fixtures to improve middleware configuration and add new test cases.
- πŸ”§ Refactored tests to use `TestClass` for header name and precision validation.

πŸ›  Fixes
- ✏️ Updated pytest configuration to enable verbose output and set asyncio mode for better test behavior.
- ✏️ Improved formatting and example configuration in `README`.

πŸ“‹ Notes
- πŸ”„ Updated Starlette dependency for compatibility.

1.0.4

✨ Features
- πŸ†™ Version bump to **1.0.4**.

πŸ”„ Refactor
- πŸ”§ Refactored imports to use relative paths for consistency.

πŸ“‹ Notes
- πŸ”„ Updated dependencies for compatibility.

1.0.3

✨ Features
- πŸ†™ Version bump to **1.0.3**.

πŸ”„ Refactor
- πŸ”§ Refactored `RequestDurationMiddleware` to improve early return logic.

πŸ“‹ Notes
- βœ… Fully compatible with Python 3.11+.

1.0.2

✨ Features
- πŸ†™ Version bump to **1.0.2**.

πŸ“š Enhancements
- ✍️ Added type annotations to decorators and exception descriptions.
- ✍️ Added type annotations to constants in the `asgi_request_duration` module.
- πŸ“ Introduced a module docstring to describe the functionality of the **ASGI Request Duration** package.

πŸ”„ Refactor
- πŸ”§ Refactored `__all__` declaration to use tuple syntax for better readability and performance.

πŸ“‹ Notes
- βœ… Fully compatible with Python 3.11+.

1.0.1

✨ Features
- πŸ†™ Version bump to **1.0.1**.

πŸ› Bug Fixes
- ❌ None this time β€” everything’s smooth sailing!

πŸ“‹ Notes
- βœ… Fully compatible with Python 3.11+.

1.0.0

✨ Features
- πŸ†™ Version bump to **1.0.0**.
- 🌟 Updated **Starlette** to the latest version for improved compatibility and performance.

πŸ› Bug Fixes
- ❌ None this time β€” everything’s smooth sailing!

πŸ“‹ Notes
- βœ… Fully compatible with Python 3.11+.

Links

Releases

Β© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.