Python Weekly (Issue 452 June 4 2020)

Python Weekly - Issue 452

Python Weekly

Welcome to issue 452 of Python Weekly. Let's get straight to the links this week.

From Our Sponsor 

Troubleshoot Python app performance with Datadog application performance management. Inspect detailed flame graphs to identify bottlenecks, latency and other issues. Pivot seamlessly to related logs and metrics without switching tools for full context when troubleshooting.

. 

News

David Beazley has released his entire course Practical Python Programming under Creative Commons. It's a great resource.

Articles, Tutorials and Talks

Build a car hacking spy device to remotely read and send CAN commands and track GPS location. All based on open source software/hardware.

Auto-generate visual summaries of videos, with a machine learning model and a serverless pipeline.

In this video I discuss the practice of adding a trailing comma in Python data structures.

If you ever had a test that one day just started to fail, unprovoked, or a test that fails once every blue moon for no apparent reason, it's possible your code is relying on something that is not deterministic. This article describes a practical approach to dependency injection in Python that when used correctly, can eliminate nondeterminism and make your code easier to maintain and to test.

Here is a tutorial to create a numerical calculation of an object moving near the Earth (but not on the surface).  In this video, I use numerical calculations and the gravitational force between the Earth and the object to model the motion.

At Opendoor we have quite a few Python services. Originally they were spread across several Git repos, which caused some issues. To eliminate these issues, we decided to put all our new Python services in a single Git repo, although the services remain independent. This article explains what worked well for us, including repo organization, dependency management, code sharing, and CI/CD.

Experts discuss hard web production problems. 40+ talks on Django, Plone, CI/CD, Containers, Serverless, REST APIs, microservices, etc. Join JetBrains and Six Feet Up to discuss what the future holds.

SPONSORUse FastAPI to build web services in PythonFastAPI is a modern Python web framework that leverage the latest Python improvement in asyncio. In this article you will see how to set up a container based development environment and implement a small web service with FastAPI.sidetable - Create Simple Summary Tables in PandasIntroducing sidetable, a pandas library that build summary tables of your DataFrames.A Single Line of Python Code Scraping Dataset from WebpagesHunting for API endpoints from webpages and downloads using Python.Bulk Updates with Django Rest Framework Generic rest framework endpoints are typically designed to modify one object at a time. However, you will often find that this can become a huge bottleneck to performance when you need to modify thousands objects. In this case, instead of thousands of calls to your endpoint, it is better to do one call that does the operation in bulk. In this tutorial we will show you how to achieve a 10x speed improvement for your update API’s.3.6 million points, 1 GIF — Visualise big data in PythonA detailed step-by-step guide to creating a GIF with big data in Python using Dask and Datashader libraries.Python for Data Science - Course for Beginners (Learn Python, Pandas, NumPy, Matplotlib) This Python data science course will take you from knowing nothing about Python to coding and analyzing data with Python using tools like Pandas, NumPy, and matplotlib. This is a hands-on course and you will practice everything you learn step-by-step.OpenCV Social Distancing DetectorIn this tutorial, you will learn how to implement a COVID-19 social distancing detector using OpenCV, Deep Learning, and Computer Vision.Django Channels and React: a match made in heavenThis post will show you how to consume a websockets backend powered by Django Channels with a React and Zurb Foundation frontend. You will learn how Babel and Webpack make all of this possible, and how to work with dates nicely with Moment.js.Overview of python dependency management toolsTotally confused by all the tools for managing dependencies? Pip, venv, Docker, conda, virtualenvwrapper, pipenv, … Which one should you use? Why do we even have all these different tools? Can they work together? This post briefly describes each tool, why it’s created and the problems it’s tackling At the end of the post, you can find a table summarizing all the information and the usual setups people use.Ultimate Guide to Python DebuggingEven if you write clear and readable code, even if you cover your code with tests, even if you are a very experienced developer, weird bugs will inevitably appear and you will need to debug them in some way. Lots of people resort to just using bunch of print statements to see what's happening in their code. This approach is far from ideal and there are much better ways to find out what's wrong with your code, some of which we will explore in this article.How to create Text Editor in Python with Tkinter GUI? For beginners This video will show you how to create simple text editor using python's built in GUI framework Tkinter.Building a One-shot Learning Network with PyTorchHow do we build a deep network with so few samples for each class?The many ways to pass code to Python from the terminalHow to Deploy PyTorch Models to iOS with Core ML via TestsInteresting Projects, Tools and LibrariesreturnsMake your functions return something meaningful, typed, and safe! PyTraceTime Travel Debugging for Python. Ever dreamed to run your code in reverse direction? Now this is possible. Inspect variables, call graphs and execution branches on recorded trace.CodeInterviewA coding interview site with video conferencing, collaborative code editing and remote code execution.RPA-PythonPython package for RPA (robotic process automation).star-clusteringA clustering algorithm that automatically determines the number of clusters and works without hyperparameter fine-tuning.context_menuA Python library to create and deploy cross-platform native context menus.AcmeA research framework for reinforcement learning.time-machineA new Python library for mocking the current time.pathfinder.vimVim plugin which gives suggestions to improve your movements.SpotlightifySpotlightify is a GUI based application designed to allow users to quickly interact with the Spotify Desktop application across Windows, Linux and macOS.django-auto-deployDeploy as many Django websites as you want with one simple command.detrEnd-to-End Object Detection with Transformers.PyBridge-iOSReuse Python code in native iOS applications.VocabDisplays a new vocabulary word everyday in your terminal using python.PyDebloatXPython GUI for uninstalling the default Windows 10 apps.django-rename-appA Django Management Command to rename existing Django Applications.TensorflowTTSReal-Time State-of-the-art Speech Synthesis for Tensorflow 2.prettyetcBrowse your configuration files in a visual way with a pretty and universal interface.snakewareA free Linux distro with a fully Python userspace.New ReleasesDjango security releases issued: 3.0.7 and 2.2.13Upcoming Events and WebinarsVirtual: SF Python Presentation Night on DataThere will be following talks DIY data science using COVID data sources  Primer on Prefect altair_recipes: a Python package to generate essential statistical graphics for the web Virtual: PyMNtos Python Presentation Night #85There will be following talks Python Design Patterns Elliptic-Curve CryptographyVirtual: Austin Python Meetup June 2020There will be following talks What’s New in Python 3.9 The state of NumFOCUSVirtual: PyData Budapest Online #4 - Dataframe EvolutionWe will cover the evolution of the solutions aiming to improve the well-known and beloved pandas dataframe, a key component of the Python data ecosystem.Virtual: Cleveland Python Meetup June 2020Virtual: Edmonton Python Meetup June 2020  

Our Other Newsletters

 - Programmer Weekly - A free weekly newsletter for programmers.

- A free weekly newsletter for entrepreneurs featuring best curated content, must read articles, how to guides, tips and tricks, resources, events and more.