python misc code, able to run in docker and local.
Python Version: 3.11
# crate the environment in local
conda create -n python-misc python=3.11
# activate the environment
conda activate python-misc
# deactivate the environment
conda deactivate
# build & start container (docker-compose.yml)
docker-compose up -d --build
# docker-compose -f docker-compose.yml up -d --build
docker rmi $(docker images -f "dangling=true" -q)
for example to execute hello.py
under module Hello
docker exec python-misc python Hello/hello.py
# more examples:
docker exec python-misc python LearnSQLALchemy/0_check_version.py