https://github.com/levarc-hub/template-python
Template python repository
https://github.com/levarc-hub/template-python
dev-containers python templates
Last synced: 3 months ago
JSON representation
Template python repository
- Host: GitHub
- URL: https://github.com/levarc-hub/template-python
- Owner: levarc-hub
- License: mit
- Created: 2025-10-09T07:23:17.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2026-01-16T22:11:38.000Z (3 months ago)
- Last Synced: 2026-01-17T07:24:35.446Z (3 months ago)
- Topics: dev-containers, python, templates
- Language: Makefile
- Homepage:
- Size: 73.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# python-try
Template python repository
- devcontainer local python development
- dockerfile, image, container local testing
- Makefile, tooling local testing
## Main commands
Create devcontainer:
`Ctrl + Shift + P -> Dev Containers: Rebuild Container`
```sh
# add and use named commits - chore: | feat: | fix: | refactor:
git ac "feat: new feature" && git push
## bumps version and push tags to remote (default -> patch version)
# !! runs build -> push pipeline to ghcr
# !! runs release pipeline to make release on github
make release # make release
## Server live test, no docker
make live
## Build and run in docker container
make docker-build
```
### Debug image labels
```sh
IMAGE=ghcr.io/levarc-hub/template-python:$(git describe --tags --abbrev=0)
echo "ghp_PAT_token" | docker login ghcr.io -u levpa --password-stdin
docker pull $IMAGE
IMAGE_ID=$(docker images --format '{{.Repository}}:{{.Tag}} {{.ID}}' | grep $IMAGE | awk '{print $2}')
echo -e "\nIMAGE_ID: $IMAGE_ID\n"
docker inspect "$IMAGE_ID" --format='{{json .Config.Labels}}' | jq
```