DaPythonista
663 FOLLOWERS
Blog about python programming
DaPythonista
4y ago
What do you need to send an email with Python? Some basic programming and web knowledge along with the elementary Python skills. We assume you’ve already had a web app built with this language and now you need to extend its functionality with notifications or other emails sending. This tutorial will guide you through the most essential steps of sending emails via an SMTP server.
Configuring a server for testing (do you know why it’s important?)Local SMTP server
Mailtrap test SMTP server
Different types of emails: HTML, with images, and attachments
Sending multiple personalized emails ..read more
DaPythonista
5y ago
Written by Ori Roza
So, I was looking for an apartment! There are too many platforms out there for searching apartments like Zillow, Realtor.com and even groups on Facebook. All this endless data made me so confused so I stopped everything, took a big breath and asked myself could I filter through all the data I had and receive only the relevant one?
The answer? Python. or even more accurate: Selenium.
Selenium. Not the mineral.
Selenium in two words: automates browsers. The exact definition from their official website:
“It is for automating web applications for testing pu ..read more
DaPythonista
5y ago
Written by Ori Roza
For a long time I have wanted to start learning how to use AI as part of my code flow. Where should I start?
Well, I don’t have B.Sc and definitely don’t have the math fundamentals to understand all the equations and calculations behind it. But then, I have came across this amazing article of Jason Brownlee and I’ve started believing again!
After reading many times this article and understanding it I can finally tell that I’m fluency with KNN algorithm.
KNN Algorithm
Let’s talk about KNN a bit.
Imagine you are in the World Cup. You see three pubs of differe ..read more
DaPythonista
5y ago
Written by Ori Roza
Debugging code in any language might be frustrating, but it is especially so in Python where we cannot recognize a bug immediately.
In addition, Python provides us with the PDB library as a tool for debugging, which can also be difficult to handle.
Luckily, we have the PyCharm IDE. It uses PyDev and gives us a new experience of debugging!
In this article, I will go over of the main and most useful debugging features PyCharm has to offer and teach you how to use them efficiently.
Breakpoints
Breakpoints might be unnecessary when we are facing a bug which occurs in a ..read more
DaPythonista
5y ago
Written by Ori Roza
Python’s psutil module provides an interface with all the PC resources and processes.
This module is very helpful whether we want to get some data on a specific resource or manage a resource according to its state.
In this article, I will show you the main features of this module and how to use them.
Getting PC resources information
Let’s see how we can get some info about our PC’s current system state.
We can get some info about the CPU since boot time, including how many system calls and context switches it has made:
In [1]: psutil.cpu_stats()
Out[1]: scpustats ..read more