Issue #410

PyCon 2020 COVID-19 Update, Advanced Django Tips, C/C++ Python Interop, and More

March 3, 2020

PyCon 2020 COVID-19 Update, Advanced Django Tips, C/C++ Python Interop, and More
#410 – MARCH 3, 2020 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Advanced Usage of Python Requests
“While it’s easy to immediately be productive with requests because of the simple API, the library also offers extensibility for advanced use cases. If you’re writing an API-heavy client or a web scraper you’ll probably need tolerance for network failures, helpful debugging traces and syntactic sugar.”
DANI HODOVIC

EOF Is Not a Character
Do you know how an application knows when a read operation reaches the end of a file? In this interesting read, explore what EOF (end-of-file) really is by writing your own version of the Linux cat command in ANSI C, Python, Go, and JavaScript.
RUSLAN SPIVAK

Automate & Standardize Code Reviews for Python
Take the hassle out of code reviews - Codacy flags errors automatically, directly from your Git workflow. Customize standards on coverage, duplication, complexity & style violations. Use in the cloud or on your servers for 30 different languages. Get started for free →
CODACYsponsor

Double-Checked Locking With Django ORM
The double-checked locking pattern is useful when you need to restrict access to a certain resource to stop simultaneous process from working on it at the same time. Learn how to apply this pattern in Django using the ORM and database level locking features.
LUKE PLANT

Python Bindings: Calling C or C++ From Python
What are Python bindings? Should you use ctypes, CFFI, or a different tool? In this step-by-step tutorial, you’ll get an overview of some of the options you can use to call C or C++ code from Python.
REAL PYTHON

PyPy Status Blog: PyPy and CFFI Have Moved to Heptapod
PyPy has moved the center of their development off Bitbucket and to the new foss.heptapod.net/pypy
MOREPYPY.BLOGSPOT.COM

PyCon 2020: March 2 Update on COVID-19
“As of March 2, PyCon 2020 in Pittsburgh, PA is scheduled to happen.”
PYCON.BLOGSPOT.COM

19 Reasons I’m Excited for PyCon in Pittsburgh
EMILY MOREHOUSE


Discussions


Survey: What Does PyLadies Mean to You?
TWITTER.COM/LOOOORENANICOLE

Dictionary Union (PEP 584) Merged for Python 3.9
REDDIT


Python Jobs


Senior Python/Django Software Engineer
ZEGO 📍 LONDON, UK

Python Developer
GAMING INNOVATION GROUP 📍 MALTA

Senior Python Software Engineer
TESSIAN 📍 LONDON, UK

Sr Software Engineer Backend
CYBERGRX 📍 DENVER, CO, USA

Senior Software Developer
ABCELLERA 📍 VANCOUVER, BC, CANADA

More Python Jobs >>>


Articles & Tutorials


Packaging and Distributing cppyy-Generated Python Bindings for C++ Projects With CMake and Setuptools
“I rewrote the cppyy CMake modules to be much more user friendly and to work using only Anaconda/PyPI packages, and to generate more feature-complete and customizable Python packages using CMake’s configure_file, while also supporting distribution of cppyy pythonization functions.”
CAMILLE SCOTT

Polynomial Regression From Scratch in Python
Polynomial regression is a core concept underlying machine learning. Learn how to build a polynomial regression model from scratch in Python by working you a real world example to predict salaries based on job position.
RICK WIERENGA

How To Build A Digital Virtual Assistant In Python
The rise of AI has resulted in rapid growth of the digital assistant market, including Siri and Alexa. With Python, it’s easy to code your own digital assistant with voice activation and responses to basic inquiries. Check out ActiveState’s tutorial to learn how →
ACTIVESTATEsponsor

How to Implement a Python Stack
Learn how to implement a stack data structure in Python. You’ll see how to recognize when a stack is a good choice for data structures, how to decide which implementation is best for a program, and what extra considerations to make about stacks in a threading or multiprocessing environment.
REAL PYTHON video

Pass the Python Thread State Explicitly
Eric Snow has been working on solving multi-core Python via subinterpreters since 2015. In this article, core developer Victor Stinner discusses how state is passed between interpreters and summarizes his proposal for explicitly passing state to internal C function calls.
VICTOR STINNER

nbdev: Use Jupyter Notebooks for Everything
A Python programming environment called nbdev, which allows you to create complete python packages, including tests and a rich documentation system, all in Jupyter Notebooks.
JEREMY HOWARD

Dealing With Legacy Code
Learn about some of the common problems you encounter when dealing with legacy codebases and how to overcome them in an efficient way that balances delivery with code quality.
ISHA TRIPATHI

Totally Ordered Enums in Python With ordered_enum
Python’s enum.Enum does not provide ordering by default. See how ordering can be added to enums and why these orderings are useful in the first place.
WILLIAM WOODRUFF

Conditional Coverage
Sometimes your code has to take different paths based on the external environment. Make sure that your coverage follows it smoothly.
NIKITA SOBOLEV • Shared by sobolevn

Deploying Machine Learning Models: gRPC and TensorFLow Serving
Learn how to deploy TensorFlow models and consume predictions via gRPC.
RUBIKSCODE.NET

Timeline of Pinterest’s Tech Stack Evolution
Plenty of Python in there…
STACKSHARE.IO

Measuring DNA Similarity With Python and Dynamic Programming
ANDREW TREADWAY

Blackfire Profiler Public Beta Open—Get Started in Minutes
Blackfire Profiler now supports Python, through a Public Beta. Profile Python code with Blackfire’s intuitive developer experience and appealing user interface. Spot bottlenecks in your code, and compare code iterations profiles.
BLACKFIREsponsor

Adding Metadata to PDFs
DANIEL ROY GREENFELD

How to Convert a Python Dictionary to a Pandas DataFrame
ERIK MARSJA

Peer to Peer Gaming With Arcade and Python-Banyan
ALAN YORINKS • Shared by Alan Yorinks

The Django Speed Handbook: Making a Django App Faster
OPENFOLDER.SH • Shared by Shibel


Projects & Code


Brought to you by MindsDBsponsor
Open Source Machine Learning Built for Developers—Visit MindsDB on GitHub

doit: Task Management & Automation Tool
PYDOIT

StellarGraph: Machine Learning on Graphs
STELLARGRAPH

cppyy: Automatic Python-C++ Bindings
WLAV

Funnelplot: Simple Funnel Plots for Visualising Sub-Group Variance
JOHNHW

flakehell: Legacy-First Wrapper Around Flake8 Linter to Make It Awesome
WE MAKE SERVICES

Parse: Parse Strings Using a Specification Based on the Python format() Syntax
RICHARD JONES

ordered_enum: Totally Ordered Enums for Python
WILLIAM WOODRUFF

napkin: Python as DSL for Writing PlantUML Sequence Diagrams
GITHUB.COM/PINETR2E

People-Detector: People Detection in Photo and Video
GITHUB.COM/HUMANDECODED • Shared by Tom

pytest-monitor: pytest Plugin for Analyzing Resource Usage During Test Sessions
GITHUB.COM/CFMTECH • Shared by Jean-Sébastien Dieu

Generate Python strftime() Format Codes From a Date String
PYSTRFTIME.COM • Shared by Lachlan Eagling

📆🐍 Upcoming Python Events


PyTexas 2020
May 16 to 17, 2020 in Austin, TX

HackBVICAM National Student’s Convention 2k20
March 13 to March 14, 2020
Happy Pythoning!
Copyright © 2020 PyCoder’s Weekly, All rights reserved.