Skip to content
Programming Notes
  • Home
  • Docker Starters
  • Author.instance().info()
  • Toggle website search
Menu Close
  • Home
  • Docker Starters
  • Author.instance().info()
  • Toggle website search

python

  1. Home>
  2. python

PyTorch in Docker

  • Post author:Van Ly
  • Post published:March 3, 2024
  • Post category:docker/programming/Python

I'm getting into the fray that is Generative AI since, according to some, my job as a programmer will soon be taken over by some literal code cranking machine. There…

Continue ReadingPyTorch in Docker

Celery with RabbitMQ on Docker

  • Post author:Van Ly
  • Post published:September 4, 2023
  • Post category:celery/django/docker/programming/Python

Picking up from Django app template w/ Docker, here are the steps to add Celery to the Django app. Add RabbitMQ as the message queue Modify docker-compose.yml to include: services:…

Continue ReadingCelery with RabbitMQ on Docker

Django app template w/ Docker

  • Post author:Van Ly
  • Post published:April 22, 2023
  • Post category:django/docker/programming/Python

Revisiting https://www.pn.therealvan.com/2021/01/24/postgresql-and-mysql-docker-containers/, this post focuses on a plain Django app with minimal dependencies: exclude pipenv using the default SQLite DB Bootstrapping Start with these files: Dockerfile FROM python:3 ENV PYTHONUNBUFFERED…

Continue ReadingDjango app template w/ Docker

Django I18N on Windows

  • Post author:Van Ly
  • Post published:June 2, 2021
  • Post category:django/i18n/programming

Concise run book on I18N to get things started Prerequisite Know the difference between locale name and language name: Locale name: <language code>_<COUNTRY CODE> (examples: "en_US", "fr_CA"), case sensitive.Language name:…

Continue ReadingDjango I18N on Windows

Loading Resources from Python Packages

  • Post author:Van Ly
  • Post published:March 28, 2021
  • Post category:programming/Python

Start with importlib_resources Start with the package importlib_resources. Properly export modules In order for a resource to be accessible, the module (or most likely the submodule) containing it needs to…

Continue ReadingLoading Resources from Python Packages

Python Package Publishing Notes

  • Post author:Van Ly
  • Post published:March 28, 2021
  • Post category:programming/Python

Foundations For the most part, the doc How to Publish an Open-Source Python Package to PyPI – Real Python is what I followed. However, had that been it, I wouldn't…

Continue ReadingPython Package Publishing Notes
  • Author.instance().info()
  • Docker Starters
Copyright - WordPress Theme by OceanWP