GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - MKaras93/karas-project-template: Template with boiler plate for long term Python projects

BranchesTags
Open more actions menu

Latest commit

 

History

20 Commits
20 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
outputs
outputs
 
 
src
src
 
 
terraform
terraform
 
 
tests
tests
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
.pre-commit-config.yaml
.pre-commit-config.yaml
 
 
AGENTS.md
AGENTS.md
 
 
Dockerfile
Dockerfile
 
 
LICENSE.md
LICENSE.md
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
docker-compose.yaml
docker-compose.yaml
 
 
pyproject.toml
pyproject.toml
 
 

Repository files navigation

Karas Project Template - A simple project template to quickly start a Python project, with all the boilerplate ready, without wasting too much time on it.

The template includes:

  • uv as a dependency manager
  • tests file with a basic pytest test
  • docker-compose and Dockerfile for an image with dependencies installed via uv
  • pre-commit setup running ruff (code formatter and linter)
  • GitHub CI running ruff and pytest on Push to GitHub
  • basic structure for terraform files
  • .gitignore with support for all of the above and some other common file patterns
  • pydantic-based settings manager loading the right settings based on 'env' in .env file

Feel free to modify it for your needs. If you don't need some part, simply delete it.

It's published under unilicense, which means you can do with it whatever you want - you don't need to add credits or anything like that.

WARNING: Delete the license from your project and replace it with the right for you! I recommend using https://choosealicense.com/ for that.

But why?

When I come up with a new idea, I want to get right to the fun part - the coding. I want to code, not deal with quirks of setting up a GitHub pipeline! So I code, and after a few weeks I have a few hundreds/thousands lines of code... and a terrible mess! Adding ruff at this point messes up commit history, and even thinking about adding tests gives me nightmares. Don't even get me started on cloud infrastructure - I didn't have Terraform set up, so instead of a reproducible infrastructure as a code, I have a few random machines on AWS, which I'm too afraid to modify at this point.

This is meant to be my remedy.

Getting started

I usually use it with PyCharm and I do the following steps to start a new project from it:

  1. Go to pyproject.toml and in [project] change the name to the name of your project.
  2. Install uv if you haven't already:
    • Linux/macOS: Run make install-uv-unix
    • Windows: Run make install-uv-win
    • Or see https://docs.astral.sh/uv/getting-started/installation/ for alternative installation methods
  3. Run make install-dependencies to create a virtual environment and install dependencies (or uv sync directly).
  4. Run make test - if it passed, you are setup correctly.

About

Template with boiler plate for long term Python projects

Resources

Readme
License
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.