Planet Python RSS
214 subscribers
17.1K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Python Morsels: Parsing command-line arguments in Python

Link: https://www.pythonmorsels.com/topics/parsing-command-line-arguments-python/




Transcript
Let's talk about parsing command line arguments in Python.
Parsing command-line arguments
We have a program here called add.py that uses Python's argparse module to parse two arguments,
Stack Abuse: Creating a REST API with Django REST Framework

Link: https://stackabuse.com/creating-a-rest-api-with-django-rest-framework/

Introduction
REST APIs are an industry-standard way for web services to send and receive data. They use HTTP request methods to facilitate the request-response cycle and typically transfer data using
Quansight Labs Blog: Making Numpy Accessible: Guidelines and Tools

Link: https://labs.quansight.org/blog/2021/07/numpy-accessibility-guidelines/


Header illustration by author, Mars Lee
Numpy is now foundational to Python scientific computing. Our efforts reach
millions of developers each month. As our user base grows, we recognize that we
are
Mike Driscoll: Matplotlib – An Intro to Creating Graphs with Python

Link: https://www.blog.pythonlibrary.org/2021/09/07/matplotlib-an-intro-to-creating-graphs-with-python/

Data visualizations are an important method of sharing your data with others. Some people refer to visualizations as plots, charts, or graphs. These names are synonymous in this article.
Python has ma
Real Python: Graph Your Data With Python and ggplot

Link: https://realpython.com/courses/graph-data-with-python-and-ggplot/

In this course, you’ll learn how to use ggplot in Python to create data visualizations using a grammar of graphics. A grammar of graphics is a high-level tool that allows you to create data plots in a
PyCoder’s Weekly: Issue #489 (Sept. 7, 2021)

Link: https://pycoders.com/issues/489

#489 – SEPTEMBER 7, 2021 View in Browser » PEP 668: Graceful Cooperation Between External and Python Package Managers This draft PEP proposes a way for resolving conflicts between OS package man
Python Insider: Python 3.10.0rc2 is available

Link: http://feedproxy.google.com/~r/PythonInsider/~3/MNLSuW5j-cI/python-3100rc2-is-available.html

Python 3.10 is one month away, can you believe it? This snake is still trying to bite as it has been an interesting day of fighting fires, release blockers, and a bunch of late bugs but your friendly
John Ludhi/nbshare.io: Python Is Integer

Link: https://www.nbshare.io/notebook/331114525/Python-Is-Integer/








Python Is Integer








This notebook explains how to check in Python if a number is a integer.








There are multiple ways to check for integer in Python 2 and Python 3.









isinsta
Stack Abuse: Abstract Factory Design Pattern in Python

Link: https://stackabuse.com/abstract-factory-design-pattern-in-python/

Introduction
Design patterns help make code understandable, scalable, and reusable. There are different categories of design patterns, depending on the problems being addressed. When code is modulariz
Mike Driscoll: Python 3.10 – Parenthesized Context Managers

Link: https://www.blog.pythonlibrary.org/2021/09/08/python-3-10-parenthesized-context-managers/

Python 3.10 is coming out next month, so now is the time to start talking about the new features that it will contain. The core developers of Python recently announced that they are adding parenthesiz
TestDriven.io: Storing Django Static and Media Files on DigitalOcean Spaces

Link: https://testdriven.io/blog/django-digitalocean-spaces/

This tutorial shows how to configure Django to load and serve up static and media files, public and private, via DigitalOcean Spaces.
Real Python: A Python Guide to the Fibonacci Sequence

Link: https://realpython.com/fibonacci-sequence-python/

The Fibonacci sequence is a prime example of recursion, and learning it is an essential step in the pragmatic programmer’s journey toward mastering recursion. Even though you’ll focus on learning it u
Python for Beginners: Tree Data Structure in Python

Link: https://www.pythonforbeginners.com/data-structures/tree-data-structure-in-python

Python is a very rich language in terms of features and data structures. It has a lot of inbuilt data structures like python dictionary, list, tuple, set, frozenset, etc. Apart from that, we can also
RoseHosting Blog: How to Create a Python Virtual Environment on Ubuntu 20.04

Link: https://www.rosehosting.com/blog/how-to-create-a-python-virtual-environment-on-ubuntu-20-04/

In this tutorial, we will discuss the installation and usage of Python virtual environment on Ubuntu 20.04. Python virtual environment ...
Read more
The post How to Create a Python Virtual Environmen
Peter Bengtsson: TypeScript function keyword arguments like Python

Link: https://www.peterbe.com/plog/typescript-function-keyword-arguments-like-python

To do this in Python:

def print_person(name="peter", dob=1979):
print(f"name={name}\tdob={dob}")


print_person()
# prints: name=peter dob=1979

print_person(name="Tucker")
# prints: name=Tuck
Python Bytes: #249 All of Linux as a Python API

Link: https://pythonbytes.fm/episodes/show/249/all-of-linux-as-a-python-api

<p><strong>Watch the live stream:</strong></p>

<a href='https://www.youtube.com/watch?v=djSI88HGPq8' style='font-weight: bold;'>Watch on YouTube</a><br>
<br>

<p><strong>About the show</strong></p>
Mike Driscoll: Faking Data with the Faker Package

Link: https://www.blog.pythonlibrary.org/2021/09/09/faking-data/

If you are a software developer or engineer, then you know it can be really helpful to have sample data. The data doesn’t have to be real data either. Instead, the data can be fake. For example, if yo
Python for Beginners: In-order Tree Traversal in Python

Link: https://www.pythonforbeginners.com/data-structures/in-order-tree-traversal-in-python

You might have studied algorithms to traverse a python dictionary, a list, or a tuple. In this article, we will study the in-order traversal algorithm to traverse a binary tree.  We will also discuss
PyCharm: Webinar: “A Look At — and Inside — Textual” with Will McGugan

Link: http://feedproxy.google.com/~r/Pycharm/~3/rd-x2227ZVs/

Want a UI for your application? Python has had GUI choices for decades. But what if your UI is in a terminal? And not just a command-line interface, but a full-screen application with a text UI? What
Marcos Dione: stacking-photos-with-python

Link: http://www.grulic.org.ar/~mdione/glob//posts/stacking-photos-with-python/

Last month we went on vacations to a place with medium light pollution. It was also meteor shower season;
the Perseids were peaking that week. So I decided to try some astro-photography. I bought a ch