Python Performance, Moving Django Models, the 2020 Python Language Summit, and More

#420 – MAY 12, 2020
The PyCoder’s Weekly Logo
Under Discussion: The Performance of Python
Victor Stinner and Julien Danjou sat down (remotely, that is) with Anne-Laure Civeyrac to talk about Python’s performance. They discuss everything from profiling, why Python is slow, and projects aimed at improving Python’s performance. Check it out!
ANNE-LAURE CIVEYRAC

How to Move a Django Model to Another App
In this step-by-step tutorial, you’ll learn how to move a Django model from one app to another using Django migrations. You’ll explore three different techniques and learn some helpful guidelines for choosing the best approach for your situation and needs.
REAL PYTHON

Find Performance Bottlenecks in Python Code
“We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil. Yet we should not pass up our opportunities in that critical 3%.” - Donald Knuth. Blackfire is built to let you find the 3%. Quick install, appealing and user-friendly UI. →
BLACKFIREsponsor

Naomi Ceder to Step Down From PSF Board of Directors
Naomi Ceder will not be running for re-election to the PSF board of directors. In this blog post, she explains her reasons and thanks the community for the chance to serve.
NAOMI CEDER

Effortless Concurrency with Python’s concurrent.futures
Python’s concurrent.futures module is a high-level interface for the threading and multiprocessing modules. You can use it to effortlessly code asynchronous tasks!
REDOWAN DELOWAR • Shared by Redowan Delowar

Remapping Python Opcodes
Take a deep dive into .pyc files, opcodes, and disassembling code in this in-depth article about decompiling a .pyc module with obfuscated opcodes.
CHRIS LYNE

Calculating Streaks in Pandas
Identifying streaks can be useful when dealing with sporting statistics, app logins, and more. Learn how to calculate streaks in Python using the pandas library and visualize them using Matplotlib.
JOSH DEVLIN • Shared by Josh Devlin


Discussions


Which Characters Are Considered Whitespace by split()?
If you’re porting some Python 2 code to Python 3, you might want to check this out.
STACK OVERFLOW

The Python World Has Shown Increased Preference for Double Quotes
Is this the new tabs vs. spaces? Which do you prefer?
RAYMOND HETTINGER ON TWITTER


Python Jobs


Senior Python Engineer (Remote, East Coast Only)
ENTERRA SOLUTIONS

Fullstack Software Engineer ML, Python (Remote)
CYBERCODERS

Python Programmer (Remote)
DICE.COM

Sr Python Developer Django, Flask, DevOps (Remote)
CYBERCODERS

More Python Jobs >>>


Articles & Tutorials


Faster Machine Learning on Larger Graphs: How NumPy and Pandas Slashed Memory and Time in StellarGraph
This week, StellarGraph released a new version of its open source library for machine learning on graphs. One of the most exciting features of StellarGraph 1.0 is a new graph data structure — built using NumPy and Pandas — that results in significantly lower memory usage and faster construction times.
HUON WILSON • Shared by Tim Pitman

Python eval(): Evaluate Expressions Dynamically
Learn how Python’s eval() built-in works and how to use it effectively in your programs. Additionally, you’ll learn how to minimize the security risks associated with the use of eval().
REAL PYTHON

Python WebDev Environment
Want to get your web application project started quicker? ActiveState’s WebDev build for Python has everything you need in a single, pre-built runtime environment, including Django, Flask and Bottle frameworks, as well as other useful tools and utilities. Get it for Windows, Mac and Linux. →
ACTIVESTATEsponsor

Systems Programming With bash and Python 3
Python’s portability, quick development time, and batteries-included philosophy make it an excellent choice for SysAdmins looking to automate command-line tasks.
KEN YOUENS-CLARK

Python Refactorings
Here are six ways you can refactor code to be more concise, more Pythonic, and more performant.
NICK THAPEN

RPP – Episode #8: Docker + Python for Data Science and Machine Learning
Docker is a common tool for Python developers creating and deploying applications, but what do you need to know if you want to use Docker for data science and machine learning? What are the best practices if you want to start using containers for your scientific projects? This week Christopher’s guest is Tania Allard, she is a Sr. Developer Advocate at Microsoft focusing on Machine Learning, scientific computing, research and open source.
REAL PYTHON podcast

Learn the Foundational Coding and Statistics Skills Needed to Start Your Career in Data Science
Interested in data science but not sure where to get started? Springboard’s Data Science Prep course was carefully crafted for go-getters ready for a challenge and need to brush up on a few basics before diving in to a data science bootcamp.
SPRINGBOARDsponsor

The 2020 Python Language Summit
“The Python Language Summit is a small gathering of Python language implementers (both the core developers of CPython and alternative Pythons), as well third-party library authors and other Python community members. The summit features short presentations followed by group discussions. In 2020, the Summit was held over two days by videoconference […]”
PYTHON SOFTWARE FOUNDATION

Improve Your Tests With the Python Mock Object Library
In this course, you’ll learn how to use the Python mock object library, unittest.mock, to create and use mock objects to improve your tests. Obstacles like complex logic and unpredictable dependencies make writing valuable tests difficult, but unittest.mock can help you overcome these obstacles.
REAL PYTHON video

Monitoring Python Flask Microservices With Prometheus
Learn how to set-up Prometheus on a Flask application to serve up metrics like requests-per-second, average response time, memory usage, and CPU usage.
VIKTOR ADAM


Projects & Code


Brought to you by Real Python for Teamssponsor
Online Python training created by a community of experts. Give your team the real-world Python skills they need to succeed →

pyp: Easily Run Python at the Shell! Magical, but Never Mysterious
GITHUB.COM/HAUNTSANINJA

client_python: Prometheus Instrumentation Library for Python Applications
GITHUB.COM/PROMETHEUS

pywasm: A WebAssembly Interpreter Written in Pure Python
GITHUB.COM/MOHANSON

tqdm: A Fast, Extensible Progress Bar for Python and CLI
GITHUB.COM/TQDM

machine-learning-experiments: Interactive Machine Learning Experiments
GITHUB.COM/TREKHLEB

Mimesis: Fake Data Generator
GITHUB.COM/LK-GEIMFARI • Shared by Isaak

datagene: Dataset Comparison Toolbox Using Transformations and Similarity Statistics
GITHUB.COM/FIRMAI

pytest-datafixtures: Data Fixtures for Pytest Made Simple
GITHUB.COM/IDLESIGN • Shared by pythonz

📆🐍 Upcoming Python Events


⋅ EuroPython 2020: Partial Speaker Lineup Released EuroPython has released part of their speaker lineup for the conference, which is slated to take place online from July 23–26, 2020.
Happy Pythoning!
Copyright © 2020 PyCoder’s Weekly, All rights reserved.
You are receiving this email because you opted in on our website at pycoders.com
Our mailing address: DevCademy Media Inc. · #720-999 West Broadway, Vancouver BC V5Z 1K5, Canada

 | 

Older messages

Python 3.9 Release Schedule, Documenting Tests, RegExes, Pythonic Lightsabers, and More

Tuesday, May 5, 2020

Python 3.9 Release Schedule #419 – MAY 5, 2020 VIEW IN BROWSER The PyCoder's Weekly Logo Python 3.9 Release Schedule In last week's episode we had the dates mixed up, here are the correct ones:

The End of the Python 2 Era, New Features in Python 3.9, Common Python App Layouts, and More

Tuesday, April 28, 2020

The Final Python 2 Release Marks the End of an Era #418 – APRIL 28, 2020 VIEW IN BROWSER The PyCoder's Weekly Logo The Final Python 2 Release Marks the End of an Era The final version of Python 2

Pythonic Video Conferencing, OOP Inheritance vs Composition, Faster Pandas, and More

Tuesday, April 14, 2020

Open Source Virtual Backgrounds With Python and OpenCV #416 – APRIL 14, 2020 VIEW IN BROWSER The PyCoder's Weekly Logo Open Source Virtual Backgrounds With Python and OpenCV With so much of the

Python + Arduino, Final Python 2.x Release, Effective Python 2nd Ed., and More

Tuesday, April 7, 2020

Arduino With Python: How to Get Started #415 – APRIL 7, 2020 VIEW IN BROWSER The PyCoder's Weekly Logo Arduino With Python: How to Get Started Discover how to use Arduino microcontrollers with

You Might Also Like

[Virtual talk] How to remove the biggest blocker to production AI/ML

Monday, May 20, 2024

ML teams are being asked to power every customer experience and interaction with AI/ML. The pressure to go faster is high, but the reality is that the complex data engineering to get the right data to

What to expect from Microsoft Build 2024

Monday, May 20, 2024

The Morning After It's Monday, May 20, 2024. Normally, Microsoft's Build is a straightforward (often dry) showcase of the company's software and hardware developments, with a dash of on-

Import AI 373: Guaranteed safety; West VS East AI attitudes; MMLU-Pro

Monday, May 20, 2024

…As the money and stakes get higher, things will get crazier… ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Cyber Criminals Exploit GitHub and FileZilla to Deliver Cocktail Malware

Monday, May 20, 2024

THN Daily Updates Newsletter cover Webinar - Navigating the SMB Threat Landscape: Key Insights from Huntress' Threat Report Analyzing the Post-Qakbot Era and Emerging Threats with Cybersecurity

Architecture Weekly #180 - 20th May 2024

Monday, May 20, 2024

We started with an invitation to discuss Conway's Law. Then, we discussed recent Cloud provider mishaps. Well, one AWS mishap on the bill for a DDoSed S3 bucket and a nightmare from Google Cloud

Retiring!

Monday, May 20, 2024

Moving to a different Newsletter ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

SRE Weekly Issue #425

Monday, May 20, 2024

View on sreweekly.com Welcome to a special re-send of SRE Weekly Issue #425! For those of you getting this for a second time, my apologies. I attempted to change to a new email vendor, but they

SRE Weekly Issue #425

Monday, May 20, 2024

View on sreweekly.com A message from our sponsor, FireHydrant: FireHydrant is now AI-powered for faster, smarter incidents! Power up your incidents with auto-generated real-time summaries,

🤖 Will AI Gadgets Replace Our Smartphones? — 4 Ways to Use Excel in Daily Life

Sunday, May 19, 2024

Also: How to Declutter Your Google Search Results, and More! How-To Geek Logo May 19, 2024 📩 Get expert reviews, the hottest deals, how-to's, breaking news, and more delivered directly to your

Daily Coding Problem: Problem #1446 [Medium]

Sunday, May 19, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a set of closed intervals, find the smallest set of numbers that covers