Skip to content

Example python app with fast api #1

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

Merged
merged 1 commit into from
Apr 12, 2025
Merged

Example python app with fast api #1

merged 1 commit into from
Apr 12, 2025

Conversation

githubofkrishnadhas
Copy link
Contributor

This project is a FastAPI-based Python application that allows users to submit their name and favorite color, with endpoints to retrieve the submitted data. It includes features like logging with JSON formatting, in-memory storage for demonstration purposes, and automated dependency management using Dependabot.

Key Features

API Endpoints:

  • GET /: Root endpoint with a welcome message.
  • GET /healthcheck: Healthcheck endpoint to verify service status.
  • POST /usercolour/: Accepts a user's name and favorite color.
  • GET /allusercolour/: Lists all submitted user-color mappings.

Logging:

Configured using python-json-logger for JSON-formatted logs.
Logs are set up for the application and Uvicorn server.

Dependency Management:

Uses Poetry for managing dependencies and packaging.

  • Automated updates are configured via Dependabot.

Release Workflow:

A GitHub Actions workflow (release.yml) automates release creation when pull requests are merged into the main branch.
Dockerized Deployment:

Includes a [Dockerfile] for containerized deployment using Python 3.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant