In the past I’ve posted a few times about the creation and stagnation of a project of mine, pedal wrencher. In recent months I’ve taken a more structured approach to iteratively improving the app and the plan is to share the lessons learned along the way a bit more freely going forward. This is a […]
Category: Web Frameworks
Python web frameworks
Projects Update: April 2016
Over the past year or so I’ve made a conscious effort to put out more public facing work through this site, some side projects and through github. Now, as a few have started to mature and take shape, I wanted to do the first of what will become an occasionally recurring kind of post: projects […]
Micropackages and Open Source Trust Scaling
Like everybody else this week we had fun with the pad-left disaster. We’re from the Python community and our exposure to the node ecosystem is primarily for the client side. We’re big fans of the ecosystem that develops around react and as such quite a bit of our daily workflow involves npm. What frustrated me […]
A (really) minimal static website generator with python and jinja2
From time to time I throw together a static HTML site for something and love how easy it is to just upload the files to s3 and have a fast site with pretty much no cost or work involved. For single-page sites in particular, this is pretty near painless, but as you start to get […]
Microservices with Python, RabbitMQ and Nameko
“Micro-services is the new black” – Splitting the project in to independently scalable services is the currently the best option to ensure the evolution of the code. In Python there is a Framework called “Nameko” which makes it very easy and powerful. Micro services The term “Microservice Architecture” has sprung up over the last few […]
Flasgger – API playground with Flask and Swagger UI
What is Swagger? Swagger is a simple yet powerful representation of your RESTful API. With the largest ecosystem of API tooling on the planet, thousands of developers are supporting Swagger in almost every modern programming language and deployment environment. With a Swagger-enabled API, you get interactive documentation, client SDK generation and discoverability. What is Swagger […]
Python-driven Web Applications
This tutorial explores how to create dynamic web applications with Python. Originally published in Real Python Course 1: Introduction to Python Web Applications You know how to write useful Python scripts, and now you want to show them off to the world… but how? Most non-programmers won’t have any use for your .py script files. […]
Updated Django Website
One year later Last year I wrote about developing our company website with Django: http://blog.aclark.net/2015/01/11/new-django-website/index.html This year, I updated the site and am again very happy with the results. Here’s an overview of the interesting aspects. Makefile I’ve continued to develop Python projects using a Makefile. So much so I’m now attempting to genericize the […]
WSGI: The Server-Application Interface for Python
Nowadays, almost all Python frameworks use WSGI as a means, if not the only means, to communicate with their web servers. This is how Django, Flask and many other popular frameworks do it. This article intends to provide the reader with a glimpse into how WSGI works, and allow the reader to build a simple […]
Rewriting a Flask app in Django
I spent Saturday on rewriting a Flask app in Django. The app in question was Nikola Users, which is a very simple CRUD app. And yet, the Flask code was a mess, full of bugs and vulnerabilities. Eight hours later, I had a fully functional Django app that did more and fixed all problems. Original […]
Funding OSS
It’s time to have a conversation, folks. At PyCon AU this year, Russell Keith-Magee just gave an extremely interesting talk about the difficulty of funding OSS sustainably. I recommend watching that talk before reading the rest of this post if you have the time. Russell’s talk ends with something of a call to arms: he […]
Handling User Authentication with Angular and Flask
This post provides a solution to the question, “How do I handle user authentication with AngularJS and Flask?”. Before beginning, keep in mind that this is not the only solution to the question at hand, and it may not even be the right solution for your situation. Regardless of the solution you implement, it is […]
Let LoopBack Do It: A Walkthrough of the Node API Framework You’ve Been Dreaming Of
While Ruby has Rails and Python has Django, the dominant application development framework for Node has yet to be established. But, there is a powerful contender gaining steam: LoopBack, an open source API framework built by StrongLoop, the creators of Express. Let’s take a closer look at LoopBack and it’s capabilities by turning everything into […]
Scaffold a Flask Project
Let’s build a command-line utility for quickly generating a Flask boilerplate structure. This is a collaboration piece between Depado and the folks at Real Python. Modeled after the Flask-Skeleton project, this tool will automate a number of repetitive tasks so that you can quickly get a Flask project up and running with the structure, extensions, […]
Dockerizing Flask with Compose and Machine – from localhost to the cloud
Docker is a powerful tool for spinning up isolated, reproducible application environment containers. This piece looks at just that – how to containerize a Flask app for local development along with delivering the application to a cloud hosting provider via Docker Compose and Docker Machine. Updates: 11/16/2015: Updated to the latest versions of Docker – […]