Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate from flask to fast api for uvicorn and asgi support #75

Merged
merged 13 commits into from
Sep 26, 2024

Conversation

dtam
Copy link
Contributor

@dtam dtam commented Sep 13, 2024

missing pg suport

Pull Request Type

  • Breaking Change
  • Feature
  • Bug Fix
  • Non-bug Patch (dependency update, non-production code, etc.)

Link to Notion Task or Github Issue

Summary of Feature(s)

Summary of Bug Fix(es)

Previous Behaviour

Description of the bug and it's impact

New Behaviour

Description of the bug fix and it's impact

Other details

Dependencies

@dtam dtam changed the title Dtam/feature/fast api migrate from flask to fast api for uvicorn and asgi support Sep 14, 2024
guardrails_api/app.py Outdated Show resolved Hide resolved
guardrails_api/app.py Outdated Show resolved Hide resolved
@dtam dtam requested a review from CalebCourier September 17, 2024 21:47
CalebCourier
CalebCourier previously approved these changes Sep 18, 2024
@CalebCourier
Copy link
Contributor

Code looks good, some of the tests are not happy though

@dtam dtam requested a review from CalebCourier September 19, 2024 20:56
*args,
**payload,
)
if inspect.iscoroutinefunction(guard):
Copy link
Contributor

Choose a reason for hiding this comment

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

Super pedantic, but any reason to not call it once and inspect on the result? albeit, I think the type checker gets a little more angry with that method

@zsimjee zsimjee merged commit a1e71a9 into main Sep 26, 2024
1 check passed
@zsimjee zsimjee deleted the dtam/feature/fast_api branch September 26, 2024 22:35
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.

3 participants