Archive for the ‘Programing’ Category

This tutorial details how AWS Lambda and API Gateway can be used to develop a simple code evaluation API, where an end user submits code, via an AJAX form submission, which is then executed securely by a Lambda function.

aws lambda api gateway python logos

Check out the live demo of what you’ll be building in action here.

WARNING: The code found in this tutorial is used to build a toy app to prototype a proof of concept and is not meant for production use.

Read the rest

This week we welcome Mariatta Wijaya (@mariatta) as our PyDev of the Week! Mariatta is the co-chair of the PyCascades conference, a regional Python conference taking place in Vancouver, BC. She is also a core developer of the Python programming language. She does automation and web development for a movie company, so she also shows up in the Internet Movie Database (IMDB). You can check out what open source projects she is active in over on Github.

Read the rest

Ned Batchelder’s is a foundation of the Python testing ecosystem. It is solid, well maintained, and does its job extremely well. I think literally every Python project that cares about testing should be using it.

But it’s not without its faults. Specifically, its performance can be quite bad. On some workloads it’s absolutely fine, but on others you can see anything up to an order of magnitude slow down (and this is just on CPython. On pypy it can … Read the rest

PyLadies is an international mentorship community for women that use Python. Started with a grant in 2011, PyLadies has continued to bring women into the Python community through a variety of methods, including hosting events in local PyLadies chapters as well as offering a grant opportunity to attend PyCon. One woman in particular has contributed to PyLadies’ success, for which the PSF recognized her as a Community Service Award recipient for the 2nd Quarter of 2017:

RESOLVED, that the Python

Read the rest


This tutorial is going to be all about Django’s authentication system. We are going to implement the whole thing:
registration, login, logout, password reset, and password change.

You are also going to get a brief introduction on how to protect some views from non-authorized users and how to
access the information of the logged in user.

In the next section, you will find a few wireframes of authentication-related pages that we are going to implement
in this tutorial. After … Read the rest

September 24th, 2017

pythonwise: Weighted Rating

No Comments, Programing, Python, by admin.

Notebook here.… Read the rest

Some while ago I got a new wifi-capable camera. Of course, it has some awful proprietary system for actually transferring images to a real computer. Fortunately, it’s all based on a needlessly complex HTTP interface which can fairly easily be driven by any moderately capable HTTP client. I played around with FlashAero a bit first but it doesn’t do quite what I want out of the box and the code is a country mile from anything I’d like to hack … Read the rest

These are my notes on using some MicroPython specific tools in relation to a ESP32-DevKitC board.

There are many tutorials and youtube videos that constantly encourage users to install tools and packages into their system-level libraries. (If you need to use sudo when you pip install foo, you are installing it as a system level library.) Please, Please, Please take the time to learn the basics of virtual environment. If you are a developer/hacker/maker – save yourself … Read the rest

We live in a hobby-rich world. There is no shortage of pastimes to grow a passion for. There is a shortage of one thing: time to indulge those passions. If you’re someone who pours your heart into that one thing that makes your life worthwhile, that’s a great deal. But, what if you’ve got no shortage of interests that draw your attention and you realize you will never have the time for all of them?

If I look at all … Read the rest

These are the ten most rated questions at Stack Overflow last week.
Between brackets: [question score / answers count]
Build date: 2017-09-23 19:35:45 GMT

  1. Why can’t I swap two items in a list in one line? – [9/4]
  2. How to remove all the values in a string except for the chosen ones – [8/6]
  3. Python Sort a list based on a given order – [8/6]
  4. python – iterating list of dictionaries and unpacking
Read the rest