Skip to content

A project submission to finish off a Python Foundry training : This application is a simple Git activity insights provider

License

Notifications You must be signed in to change notification settings

pratsj9/git-lens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-lens

A Git activity insights utility

License

This project is licensed under the MIT License. See the LICENSE file for details.

Requirements

  • Python 3.13+
  • uv (recommended) or pip

Quickstart

Using uv:

  • Install uv: https://docs.astral.sh/uv/
  • Create and sync the environment:
    • uv sync --managed-python --all-groups
  • Run the API:
    • uv run python -m src.main

Using pip:

  • python -m venv .venv && source .venv/bin/activate
  • pip install -e .
  • python -m src.main

The server starts on http://127.0.0.1:1506.

API Docs

  • Swagger UI: /api/ref (enabled: True)

Project layout

  • src/ Python package with application code
  • src/api FastAPI routers and endpoints
  • src/db SQLModel models and DB utilities (DuckDB by default)
  • src/services Service layer

Linting & Formatting

  • Ruff and dprint are configured. If you use uv, you can run:
    • uv run ruff check
    • dprint check

Configuration

  • Defaults are baked into src/server.py via APIServerConfig. You can also call APIServerConfig.from_yaml to load settings from a YAML file with environment interpolation.

About

A project submission to finish off a Python Foundry training : This application is a simple Git activity insights provider

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published