Constructing Python Library APIs & Tackling Jinja Templating | Real Python Podcast

Pubblicato il: 14 luglio 2023
sul canale di: Real Python
1,337
35

What principles should you consider when designing a Python library? How do you construct a library API that is understandable and easy to use? This week on the show, Christopher Trudeau is here, bringing another batch of PyCoder's Weekly articles and projects.

👉 Links from the show: https://realpython.com/podcasts/rpp/164/

We share an article about building library APIs. The piece provides advice for package structure, naming, error handling, and more. The author guides you toward "Pythonic" principles by comparing clunky vs elegant design examples.

Christopher discusses his recent video course on Jinja templating. The course covers creating text files with programmatic content and employing rich templates to structure the front end of Python web applications.

We cover several other articles and projects from the Python community, including several news updates, why membership tests are fast for the range() function, CLI tools hidden in the Python standard library, a thread about "the right way" to install Python, recipes for using the Polars library, and a project for feature flags within Django.

This week's episode is brought to you by Snyk.

Topics:

00:00:00 -- Introduction
00:02:16 -- PyLadies Conference (Dec 2023) Call for Volunteers
00:02:32 -- PSF Board Election Results
00:03:47 -- PSF Announces New Security Developer in Residence
00:04:39 -- Django Security Releases Issued
00:04:50 -- Deprecation of `bdist_egg` Uploads to PyPI
00:05:54 -- Why Are Membership Tests So Fast for `range()` in Python?
00:11:51 -- CLI Tools Hidden in the Python Standard Library
00:15:59 -- Sponsor:Snyk
00:16:49 -- Designing Pythonic Library APIs
00:28:27 -- Jinja Templating
00:32:49 -- Kill a Developer in 4 Words or Less
00:37:28 -- Video Course Spotlight
00:38:51 -- What is "the right way" to install Python on a new M2 MacBook?
00:44:11 -- polars-cookbook: Recipes for Using Python's Polars Library
00:46:48 -- waffle: Feature Flags for Django
00:49:54 -- Thanks and goodbye

👉 Links from the show: https://realpython.com/podcasts/rpp/164/


In questa pagina del sito puoi guardare il video online Constructing Python Library APIs & Tackling Jinja Templating | Real Python Podcast della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Real Python 14 luglio 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 1,337 volte e gli è piaciuto 35 spettatori. Buona visione!