Safir

Latest version: v6.4.0

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

Scan your dependencies

Page 5 of 8

3.3.0

New features

- Add new function `safir.logging.configure_uvicorn_logging` that routes Uvicorn logging through structlog for consistent formatting. It also adds context to Uvicorn logs in the format recognized by Google's Cloud Logging.
- Support the newer project metadata structure and URL naming used by `pyproject.toml`-only packages in `safir.metadata.get_metadata`.

3.2.0

New features

- New support for [arq](https://arq-docs.helpmanual.io), the Redis-based asyncio distributed queue package. The `safir.arq` module provides an arq client and metadata/result data classes with a mock implementation for testing. The FastAPI dependency, `safir.dependencies.arq.arq_dependency`, provides a convenient way to use the arq client from HTTP handlers.

3.1.0

New features

- Add new FastAPI middleware `CaseInsensitiveQueryMiddleware` to aid in implementing the IVOA protocol requirement that the keys of query parameters be case-insensitive.

3.0.3

Bug fixes

- Correctly handle the possibility that `request.client` is `None`.

3.0.2

Bug fixes

- Fix handling of passwords containing special characters such as `` and `/` in `safir.database`.

3.0.1

Bug fixes

- `safir.database` retains the port in the database URL, if provided.

Page 5 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.