Async / Await with Python

Asynchronous programming with Python, explained.

On Realpython, to read.

Once again, here on LivePython. Sometimes it’s better to listen.

Get started with Kubernetes (using Python)

Jason Haley wrote a brief tutorial to get the Pythonista started with Kubernetes. Worth reading if you are new to the topic.

Enable Kubernetes in Docker Desktop

So, you know you want to run your application in Kubernetes but don’t know where to start. Or maybe you’re getting started but still don’t know what you don’t know. In this blog you’ll walk through how to containerize an application and get it running in Kubernetes.This walk-through assumes you are a developer or at least comfortable with the command line (preferably bash shell).

Source: Get started with Kubernetes (using Python) – Kubernetes

Predicting Stack Overflow Tags with Google’s Cloud AI

Check out a cool project that leverages Stack Overflow Data and Google’s Cloud AI to predict what tags would work best on Stack Overflow questions.

Source: Predicting Stack Overflow Tags with Google’s Cloud AI – Stack Overflow Blog

Prism Break

Seit 2 Wochen ist klar, dass die ganze Welt überwacht wird. An den ersten paar Tagen war die Empörung noch groß, jetzt sieht die ganze Welt Edward Snowden nur noch als den Helden der Tagesaktuellen Soap. Dabei ist der Kern der Sache, dass abhehört und überwacht wird. Und dagegen hilft es nicht, auf Facebook einen Status von irgendjemandem zu liken. Continue reading “Prism Break”

Django with Celery

Erste Schritte mit Celery und Django-Celery

Installation:

In debian wheezy, einfach folgende Pakete installieren:

python-celery
python-django-celery

settings.py:

INSTALLED_APPS = (
  ...,
  'djcelery',
  'kombu.transport.django',
  ...,
)
import djcelery
djcelery.setup_loader()
BROKER_URL="django://"

PROJECT/APP/tasks.py:

from celery.task import Task
from celery.registry import tasks

class SomeTask(Task):
  def run(self, SomeArg, **kwargs):
    return SomeResult

tasks.register(SomeTask)

celeryd:

./manage.py celeryd

Allerdings produziert settings.DEBUG folgende Warning:

UserWarning: Using settings.DEBUG leads to a memory leak, never use
this setting in production environments!

See also: