Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
426 changes: 405 additions & 21 deletions README.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions app/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Initializes the app package."""
2 changes: 2 additions & 0 deletions app/crud.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""CRUD operations for the application."""

from sqlalchemy.orm import Session

from . import models, schemas, utils
Expand Down
2 changes: 2 additions & 0 deletions app/database.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Database configuration and session management."""

from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
Expand Down
2 changes: 2 additions & 0 deletions app/main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Main application file for the FastAPI app."""

from typing import Annotated

from fastapi import FastAPI, Depends, HTTPException
Expand Down
2 changes: 2 additions & 0 deletions app/models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Database models for the application."""

from sqlalchemy import Boolean, Integer, Float, String
from sqlalchemy import Column, ForeignKey
from sqlalchemy.orm import relationship
Expand Down
2 changes: 2 additions & 0 deletions app/params.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Application parameters and configurations."""

import os

PATH2DB = os.path.join(os.path.dirname(__file__), "DB.db")
Expand Down
2 changes: 2 additions & 0 deletions app/schemas.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Schema definitions for the application."""

import enum
from typing import List, Dict, Set
from pydantic import BaseModel
Expand Down
2 changes: 2 additions & 0 deletions app/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Utility functions for the application."""

import hashlib
import secrets
import os
Expand Down
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
fastapi>=0.111.0
pydantic>=2.8.2
SQLAlchemy>=2.0.31
pycm>=4.0
matplotlib>=3.9.2
fastapi==0.111.0
pydantic==2.8.2
SQLAlchemy==2.0.31
pycm==4.5
matplotlib==3.10.8