Open in app

Sign in

Write

Sign in

Rob Blackbourn
Rob Blackbourn

41 Followers

Home

About

May 23

Using asyncio start_tls in Python 3.11

An upgradable stream starts life as a plain old socket connection, but is capable of being “upgraded” to use Transport Layer Security (TLS). This is sometimes known as STARTTLS. Common examples of this are SMTP, LDAP, and HTTP proxy tunneling with CONNECT. The has been broken in Python, but is…

Python

3 min read

Python

3 min read


May 21

Reinventing the World Wide Web

Content for web pages consists of HTML, JavaScript, CSS. These three technologies have enabled some fantastic content, but they also present massive limitations. The introduction of WebAssembly has offered some interesting possibilities. The browser has the capability of running virtual machines executing code at near native speed. …

World Wide Web

2 min read

World Wide Web

2 min read


Dec 21, 2022

A Python client for .Net NegotiateStream

I find the .Net NegotiateStream class useful for internal services as it provides single sign on, authentication and basic encryption. However, as a python programmer, I couldn’t find a client library. TL;DR For the impatient the repo can be found on GitHub. The Protocol I won’t go into detail regarding the protocol, but…

Python

4 min read

Python

4 min read


Jul 10, 2022

Secure Communication With Python SSL Certificate and Asyncio

The documentation for using ssl certificates with asyncio streams is distributed over a number of packages, and can be confusing at first. In this post I’ll take a simple network service with no encryption to an HTTP service with both server and client certificate security. You can find the source…

Python

7 min read

Python

7 min read


Jun 25, 2022

Timezone-aware date manipulation for JavaScript in the Browser

The browser knows about two timezones: the local timezone and UTC. What if you are in New York, and you want to know the time in Tokyo? If you have access to data about the weather in France, but it doesn’t come with the timezone offset? …

JavaScript

2 min read

JavaScript

2 min read


Jul 26, 2021

Adding Web Workers To The Static Site Created With React And Python

In my previous articles I created a static site with react and python, then addressed issues of scalability. In this article I introduce Web Workers in order to run the Python code in it’s own thread, freeing up the UI thread. …

Python

4 min read

Python

4 min read


Jul 25, 2021

Improving The Static Site Created With React And Python

In a previous article I looked at how to create a static site using React and Python. There were a number of issues with the implementation that I wanted to provide better solutions for. You can find the code here. …

Reactjs

3 min read

Reactjs

3 min read


Jul 24, 2021

Create a Static Site Using React Running Python

This article shows how to create a React app that uses Python that runs as a static site. It uses React, material-ui, pyodide, Python and numpy. You can see the final app here, and a step by step guide here. The Problem I’m getting up to speed with linear algebra, but it’s…

React

8 min read

React

8 min read


Oct 8, 2020

Graphene 3 Queries, Mutations & Subscriptions

The next major release of Graphene (version 3) introduces support for asyncio methods. In this post I’ll write a small GraphQL service using Twitter as the source of data. You can find the source code on GitHub. Prerequisites If you want to run the code you’ll need a Twitter developer account…

Python

4 min read

Python

4 min read


Feb 2, 2020

Documenting Python With Markdown

I have a love hate relationship with the sphinx document generator. It is a hugely powerful set of tools, but I find the learning curve frustratingly steep. What I really want to do is use markdown. The mkdocs project uses markdown as it’s document syntax, so I’m ready to go…

Python

2 min read

Python

2 min read

Rob Blackbourn

Rob Blackbourn

41 Followers

GitHub: https://github.com/rob-blackbourn

Help

Status

About

Careers

Blog

Privacy

Terms

Text to speech

Teams