Planet Python RSS
214 subscribers
17.1K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
TestDriven.io: Accepting Crypto Payments with Django and Coinbase

Link: https://testdriven.io/blog/django-coinbase/

This tutorial looks at how to accept crypto Payments with Django and Coinbase Commerce.
Test and Code: 166: unittest expectedFailure and xfail

Link: https://testandcode.com/166

xfail isn't just for pytest tests. Python's unittest has @unittest.expectedFailure.
In this episode, we cover:

using @unittest.expectedFailure
the results of passing and failing tests with expectedFa
Ben Cook: How to Use the PyTorch Sigmoid Operation

Link: https://sparrow.dev/pytorch-sigmoid/

The PyTorch sigmoid function is an element-wise operation that squishes any real number into a range between 0 and 1. This is a very common activation function to use as the last layer of binary class
Ben Cook: PyTorch Tensor to NumPy Array and Back

Link: https://sparrow.dev/pytorch-numpy-conversion/

NumPy to PyTorch
PyTorch is designed to be pretty compatible with NumPy. Because of this, converting a NumPy array to a PyTorch tensor is simple:
import torch
import numpy as np

x = np.eye(3)

torch.
Ben Cook: TorchVision Transforms: Image Preprocessing in PyTorch

Link: https://sparrow.dev/torchvision-transforms/

TorchVision, a PyTorch computer vision package, has a simple API for image pre-processing in its torchvision.transforms module. The module contains a set of common, composable image transforms and giv
Stack Abuse: Creating a Form in a PDF Document in Python With borb

Link: https://stackabuse.com/creating-a-form-in-a-pdf-document-in-python-with-borb/

The Portable Document Format (PDF) is not a WYSIWYG (What You See is What You Get) format. It was developed to be platform-agnostic, independent of the underlying operating system and rendering engine
Real Python: The Real Python Podcast – Episode #82: Welcoming the CPython Developer in Residence

Link: https://realpython.com/podcasts/rpp/82/

Earlier this year, the Python Software Foundation announced the creation of the Developer in Residence role. The first Visionary Sponsors of the PSF have provided funding for this new role for one yea
Python for Beginners: Callable Objects in Python

Link: https://www.pythonforbeginners.com/basics/callable-objects-in-python

You might have heard that functions in python are callable objects. In this article, we will discuss what exactly we mean by the term callable object. We will discuss concepts behind the implementatio
Ben Cook: How the NumPy append operation works

Link: https://sparrow.dev/numpy-append/

Anyone familiar with Python will know about the list append method:
a = [1, 2, 3]
a.append(4)

print(a)

# Expected result
# [1, 2, 3, 4]
But what if you want to append to a NumPy array? In that case,
Ben Cook: NumPy Where: Understanding np.where()

Link: https://sparrow.dev/numpy-where/

The NumPy where() function is like a vectorized switch that you can use to combine two arrays. For example, let’s say you have an array with some data called and you want to create a new array with 1
Python⇒Speed: Pip vs Conda: an in-depth comparison of Python's two packaging systems

Link: https://pythonspeed.com/articles/conda-vs-pip/

If you’re using Python in the world of data science or scientific computing, you will soon discover that Python has two different packaging systems: pip and Conda.
Which raises some questions:

How ar
Montreal Python User Group: Python 3.10 Translation Sprint

Link: https://montrealpython.org/en/2021/10/py310-i18n-sprint/

Python 3.10 just got released! The official documentation of this incredible version is 52% translated to French. This is a very good start, but we want to do better.
From October 25 to November 25,
Podcast.__init__: An Exploration Of Financial Exchange Risk Management Strategies

Link: https://www.pythonpodcast.com/fx-risk-management-strategies-episode-33/

The world of finance has driven the development of many sophisticated techniques for data analysis. In this episode Paul Stafford shares his experiences working in the realm of risk management for fin
Weekly Python StackOverflow Report: (ccxcvii) stackoverflow python report

Link: http://python-weekly.blogspot.com/2021/10/ccxcvii-stackoverflow-python-report.html

These are the ten most rated questions at Stack Overflow last week.Between brackets: [question score / answers count]Build date: 2021-10-17 06:58:09 GMTWhy is there a difference between `0--3//2` and
PyPy: PyPy v7.3.6: release of python 2.7, 3.7, and 3.8

Link: https://www.pypy.org/posts/2021/10/pypy-v736-release.html

PyPy v7.3.6: release of python 2.7, 3.7, and 3.8-beta
The PyPy team is proud to release version 7.3.6 of PyPy, which includes
three different interpreters:


PyPy2.7, which is an interpreter supportin
Mike Driscoll: PyDev of the Week: Talley Lambert

Link: https://www.blog.pythonlibrary.org/2021/10/18/pydev-of-the-week-talley-lambert/

This week we chatted with Talley Lambert (@TalleyJLambert) who is a microscopist and Python enthusiast at Harvard Medical School. You can learn more about what Talley is up to and see his publications
Inspired Python: Python Pattern Matching Examples: ETL and Dataclasses

Link: https://www.inspiredpython.com/course/pattern-matching/python-pattern-matching-examples-etl-and-dataclasses?r=rss


Python Pattern Matching Examples: ETL and Dataclasses
In I walked you through the theory of Structural Pattern Matching, so now it’s time to apply that knowledge and build something practical.
Let’s