All libraries related wheezy.web and wheezy.template have been recently migrated from bitbucket to github.
Saturday, August 29, 2020
Saturday, August 1, 2020
Python ASGI CLI
Call ASGI Python application module from command line (without an application server), just like CURL. Interested?
Thursday, July 9, 2020
Authorization in Microservices Landscape
Overview
This article outlines a high-level design of authentication and authorization options in Azure per a typical SPA use case interacting with multiple microservices. Compares API gateway pattern versus a direct client-to-API communication in microservices environment.Use Case
A user should be able to request the following information:- User profile via Azure Graph API.
- User documents via SharePoint Online API.
- Aggregated data from two other internal systems.
+----------------------+
+-> | Azure Graph API |
| +----------------------+
+---------+ | +----------------------+
| browser |-+-> | Azure SharePoint API |
+---------+ | +----------------------+
| +----------------------+ +--------+
+-> | App API |---> | API #1 |
+----------------------+ +--------+
+---------------------------+ | +--------+
|Microsoft Identity Platform| +----> | API #2 |
+---------------------------+ +--------+
Wednesday, May 27, 2015
Asynchronous Python in Web Applications
Asynchronous or non-blocking IO allows worker to process other requests before current request has finished. That is possible in case a processing of current web request is related to an operation that is IO bound.
Prerequisites
What is important to understand about applicability of async pattern for IO bound operations, they must:- Utilize the same event loop, in this case worker's event loop can switch to next in the queue (otherwise it is blocked).
- Have long latency (otherwise you are wasting event loop queue for short requests).
Labels:
python
,
wheezy.web
Saturday, April 4, 2015
wheezy template: static website generator
Sometimes you need a quick way to generate a static web site and put it up on a server. Here is how you can generate a static website with wheezy.template.
Let's suppose the following structure of the site:
content/
`- index.html
- main.html
shared/
`- master.html
snippet/
`- script.html
- widget.html
Labels:
python
,
wheezy.template
Subscribe to:
Posts
(
Atom
)