Skip to content

Implement code changes to enhance functionality and improve performance#3

Merged
faizanazim11 merged 1 commit intomasterfrom
fix/fastapi-params
Sep 30, 2025
Merged

Implement code changes to enhance functionality and improve performance#3
faizanazim11 merged 1 commit intomasterfrom
fix/fastapi-params

Conversation

@faizanazim11
Copy link
Copy Markdown
Contributor

This pull request introduces a minor version bump and adds support for configuring FastAPI's lifespan events and exception handlers via the FastAPIConfig model. These changes improve the flexibility of how the FastAPI application can be initialized and managed.

Enhancements to FastAPI configuration:

  • Added a new optional lifespan field to the FastAPIConfig model, allowing lifespan event handlers to be specified during app initialization.
  • Updated the generate_fastapi_app function to pass the lifespan and exception_handlers parameters from the configuration model to the FastAPI constructor, enabling more customizable app behavior.

Version update:

  • Bumped the project version from 0.1.0 to 0.1.1 in pyproject.toml to reflect the new features.

Copilot AI review requested due to automatic review settings September 30, 2025 17:16
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for configuring FastAPI's lifespan events and bumps the version from 0.1.0 to 0.1.1. The changes enable more flexible FastAPI application initialization by allowing developers to specify lifespan event handlers and ensuring exception handlers are properly passed to the FastAPI constructor.

  • Added optional lifespan field to FastAPIConfig model
  • Updated generate_fastapi_app function to pass both lifespan and exception_handlers to FastAPI constructor
  • Incremented version number to reflect new functionality

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/tp_auth_serverside/core/fastapi_configurer.py Added lifespan field to FastAPIConfig and updated generate_fastapi_app to pass lifespan and exception_handlers parameters
pyproject.toml Version bump from 0.1.0 to 0.1.1

@faizanazim11 faizanazim11 merged commit 5db2c00 into master Sep 30, 2025
1 check passed
@faizanazim11 faizanazim11 deleted the fix/fastapi-params branch September 30, 2025 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants