<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>python on Daniel Pullan</title><link>https://danielpullan.co.uk/tags/python/</link><description>Recent content in python on Daniel Pullan</description><generator>Hugo</generator><language>en-gb</language><lastBuildDate>Wed, 30 Jul 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://danielpullan.co.uk/tags/python/index.xml" rel="self" type="application/rss+xml"/><item><title>Add push notifications to form submissions</title><link>https://danielpullan.co.uk/blog/form/</link><pubDate>Wed, 30 Jul 2025 00:00:00 +0000</pubDate><guid>https://danielpullan.co.uk/blog/form/</guid><description>&lt;p&gt;Part of having your own IT Support business is trying to onboard new customers. At &lt;a href="https://delfino.training"&gt;Delfino Training&lt;/a&gt;, we&amp;rsquo;re pretty good at plastering our website absolutely everywhere. It&amp;rsquo;s on our advertising material, branded hoodies, business cards, email signatures, social media&amp;hellip; So of course, we have a form on our website.&lt;/p&gt;
&lt;p&gt;We specifically kept our website very clean. It&amp;rsquo;s actually handwritten HTML (unlike how I use Pico CMS on my personal website), which means it&amp;rsquo;s extremely quick and easy to secure. Adding on a form actually added a lot of complexity. I&amp;rsquo;m also not all that good at PHP but very comfortable with Python. I wanted to keep the handwritten HTML for the benefits it provides, then keep the form logic and data as seperate as possible.&lt;/p&gt;</description></item><item><title>Simpsons API</title><link>https://danielpullan.co.uk/projects/simpsonsapi/</link><pubDate>Tue, 26 Oct 2021 00:00:00 +0000</pubDate><guid>https://danielpullan.co.uk/projects/simpsonsapi/</guid><description>&lt;p&gt;One of my most recents project was &lt;a href="https://github.com/danielpullan/simpsonsapi"&gt;Simpsons API&lt;/a&gt;. It&amp;rsquo;s a basic &lt;a href="https://flask.palletsprojects.com"&gt;Flask&lt;/a&gt; application which I then put into a Docker Container.&lt;/p&gt;
&lt;h2 id="the-application-itself"&gt;The application itself&lt;/h2&gt;
&lt;p&gt;It&amp;rsquo;s pretty simple, the core of the application is an array of quotes from The Simpsons.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;quotes = ['I like my beer cold… my TV loud… and my homosexuals flaming.',
		'I am so smart. I am so smart. S-M-R-T, I mean S-M-A-R-T.', 
		'You’ll have to speak up. I’m wearing a towel.', 
		'Oh, look! Pantyhose. Practical and alluring']
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is then accessed by the secrets library and returned as a variable called data whilst our template is rendered.&lt;/p&gt;</description></item><item><title>Thorium Install Script</title><link>https://danielpullan.co.uk/projects/thorium-install-script/</link><pubDate>Sat, 10 Jun 2017 00:00:00 +0000</pubDate><guid>https://danielpullan.co.uk/projects/thorium-install-script/</guid><description>&lt;p&gt;Note from future Dan: this is from when I was an Apprentice. I learned a lot on this project and would love to revisit it one day.&lt;/p&gt;
&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Just to preface this entire post:&lt;/strong&gt; It&amp;rsquo;s a long post, there&amp;rsquo;s a lot of words. I might not make sense at time. I wrote this because I felt like it.&lt;/p&gt;
&lt;p&gt;At work, I&amp;rsquo;m currently working on Thorium. Thorium is a digital signage&amp;hellip; thing&amp;hellip; that has a few cool features.&lt;/p&gt;</description></item><item><title>Simplepush</title><link>https://danielpullan.co.uk/projects/simplepush/</link><pubDate>Sat, 04 Feb 2017 00:00:00 +0000</pubDate><guid>https://danielpullan.co.uk/projects/simplepush/</guid><description>&lt;p&gt;I&amp;rsquo;ve just finished a small python demo using &lt;a href="http://simplepush.io"&gt;Simplepush&lt;/a&gt;. I used simplepush&amp;rsquo;s python library and &lt;a href="http://www.python-requests.org/en/master/"&gt;Requests&lt;/a&gt;. Basically, it&amp;rsquo;s a small demo to show people how to import things into a python script, make a config file, use Requests to get a server&amp;rsquo;s response value, then do things depending on the result.&lt;/p&gt;
&lt;p&gt;You can easily make changes to it depending on what you do, it&amp;rsquo;s just a super quick demo.&lt;/p&gt;
&lt;p&gt;The link to the github repository is &lt;a href="https://github.com/DanielPullan/simplepush-python-demo"&gt;https://github.com/DanielPullan/simplepush-python-demo&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>