This article covers how to package your Python code as a CLI application using just the official PyPA provided tools, without installing additional external dependencies. If you prefer reading code to reading words, you can find the full example demo code discussed in this article here: example repo of Python CLI packaged with PyPA setuptools… Continue reading How to package and deploy CLI applications with Python PyPA setuptools build
Articles on deployment
The Benefits of Using GitHub Actions
By Bob Belderbos on 13 August 2021
If you’re not using GitHub Actions you’re missing out! This tool is a great way to catch any errors in the central place of the GitHub repo. Catch errors early Of course this is always second best, developers should do their due diligence locally first before pushing code: Some of my favorites in that regard… Continue reading The Benefits of Using GitHub Actions
How to Create an AWS Lambda Layer For Any Python Dependency
By Michael Aydinbas on 5 October 2020
I finally managed to get scikit-learn running on the platform. On the way, I learned a lot about AWS Lambda Layers, AWS cli, and AWS cloud infrastructure in general. And now it’s time I share this knowledge with you. In this article you will learn about creating your own AWS Lambda Layer to support any Python package you may need.
How to Run External Python Libraries in AWS Cloud
By Bob Belderbos on 17 August 2020
AWS Lambda is awesome, but sometimes it can be hard to get external libraries working in this serverless environment. No worries, we learned a lesson or two which I will share in this article. Ready to run almost any Python library in the cloud? This should excite you and even trigger your entrepeneurial mind …
Why Python is so popular in Devops?
By Rhys Powell on 25 June 2018
Along with the growth of Python for developers in the machine learning and data science space, Python is also a growing language for devops / in the ops tooling side. In this article Rhys will explain why that is …
Code Challenge 46 – Add Continuous Integration (CI) to Your Project
By PyBites Team on 11 December 2017
Hi Pythonistas, becoming a Python developer is partly about knowing your tools. Managing your environment, testing and continuous integration are unmissable skills when you start working on bigger projects with a team. So we decided to dedicate a code challenge to deployment. Take an existing projects or make a demo app from scratch, the goal is to build an automated pipeline. Will you be the next guy or girl at work receiving kudos for setting up a Jenkins server? Have fun!
Code Challenge 29 – Create a Simple Django App – Review
By PyBites Team on 31 July 2017
In this article we review last week’s Create a Simple Django App code challenge. The Django fever continues …
Deploying a Django App to PythonAnywhere
By Bob Belderbos on 23 July 2017
After Julian’s great article on deploying a Flask app to Heroku, let’s look at how we can deploy a Django app to PythonAnywhere (PA).
How to Build a Simple Slack Bot
By Bob Belderbos on 4 April 2017
I was playing with Slack’s Real Time Messaging API the other day. Building a bot is pretty easy. In this article a simple example.