Python Trending Weekly
ISSUE 54

ChatTTS - Powerful Text-to-Speech Model

2024-06-08 Season 2

TL;DR

ChatTTS turns heads with eerily human intonation while Alibaba's Qwen2 and Google's mesop both go open source; PEP 789 tames async generators, and a seven-language speed contest caps it off.

Articles 12 Projects 12 Media 3
🦄

Articles & Tutorials

× 12
01 Many Useful Python Command Line Programs pythonmorsels.com

Python has many modules that can be run directly from the command line using python -m xxx. This article provides a comprehensive overview, introducing the usage of each module and discovering over 50 of them! (Related: For more about "-m", check out Typical Usage, Principle Analysis and Evolution of -m in Python)

02 My Favorite Programming Problem to Teach: Digit Length jstrieb.github.io

The author was a teaching assistant for computer science courses at Carnegie Mellon University. His favorite programming problem to teach is calculating the length of a number. This seemingly simple problem has many layers of deep thinking, which the article explains in detail.

03 One Way to Fix Python Circular Imports nedbatchelder.com

Circular dependency issues between modules are common errors, generally recommended to be solved through code structural layering. The author provides a short and practical fix: simply delay the lookup of function module bodies so that required modules can complete initialization first.

04 PEP-789: Restricting Async Generator Yields to Prevent Task Cancellation Errors peps.python.org

A newly proposed draft PEP suggesting adding a sys.prevent_yields() context manager to prevent tasks when yield would raise RuntimeError, improving safety.

05 My PyCon US 2024 Recap katherinemichel.github.io

PyCon US 2024 has concluded, and official recorded videos and presentation materials are still awaiting release. This is a lengthy travelogue from an attendee, reviewing the scenery, activities, presentation topics, people met, and more over several days. Truly impressed by the great atmosphere of the official PyCon!

06 How to Choose a Game Engine for Python Game Development? techartlife.com

From the "Python Game Development" series, which has been updated with two articles. Introduces the installation and basic usage of the Panda3D 3D game engine library, with truly impressive rendered effects.

07 ChatTTS: Open Source TTS Model with Human-Like Intonation and Rhythm juejin.cn

The article introduces how to deploy the ChatTTS project locally (which has been hot for the past two weeks), basic usage, and advanced features.

08 Using Specific Algorithms to Achieve 15× Speed Improvement pythonspeed.com

How to extract text information from an image containing book text, and optimize performance? The article uses the scikit-image library for image processing, first using Numba for acceleration, then optimizing the algorithm multiple times to achieve ideal performance improvements.

09 How Good Can GPT-4o Generate Flask Project Code? ploomber.io

OpenAI's newly released GPT-4o is powerful, so how well can it generate a Flask project with database operations, HTML pages, and Tailwind styling? The article provides main prompts and code, with pretty good final results.

10 Developing a Scrapscript Language Compiler with Python bernsteinbear.com

Scrapscript is a small, content-addressable, network-first programming language. The author details the process of developing a new compiler for it using Python, explaining implementation principles of key modules.

11 What Are Python's Hashable Objects? thepythoncodingstack.com

This is a long article, but not boring. The author uses a great example of finding people in a constantly changing office to introduce hash functions, equality functions, immutability and hashability, hash collisions, and more.

12 Comparing Performance of Python, Go, C++, C, AWK, Forth, and Rust with an Algorithm Problem benhoyt.com

The article implements a word frequency counting problem in 7 languages with many constraints. It provides detailed introductions to each language's implementation and discusses optimization approaches. The end also lists implementations in many other programming languages.

🐿️

Projects & Resources

× 12
01 Think Python 3rd Edition (Free Online) allendowney.github.io

"Think Python" has a new edition! The Chinese title is "Think Like a Computer Scientist with Python". The previous edition was published in 2015, with both original and translated versions scoring 8.8 on Douban.

02 Python Fundamentals for Music Processing audiolabs-erlangen.de

A series of Python notebook resources on music processing fundamentals, a collection of materials for education and learning in music processing. (Shared by: Yunyun)

03 ChatTTS: Generative Speech Model for Daily Conversation github.com

A text-to-speech model that remains highly popular, supporting Chinese and English with excellent voice effects. (21.7K stars)

04 Several ChatTTS-Related Projects xiaobot.net

ChatTTS-ui provides a simple local web interface and external API. (3.4K stars) ChatTTS_colab offers one-click deployment (including offline packages)! ChatTTS-Forge provides comprehensive ChatTTS wrapping, including API, WebUI, Playground, etc.

05 koheesio: Python Framework for Building Efficient Data Pipelines github.com

Open-sourced by Nike, for building data pipelines with PySpark integration.

06 groqbook: Generate Entire Books in Seconds Using Groq and Llama3 github.com

Generates book structure and expands to create entire book content based on prompts. Provides a version hosted on Streamlit for online experience.

07 cachebox: High-Performance Python Caching Library Developed in Rust github.com

5-20 times faster than other caching libraries, very low memory usage (one-third of dictionaries), supports over 7 caching algorithms, completely thread-safe.

08 mesop: Google's Open Source Python-Based UI Framework github.com

Google's internal UI framework for rapid web app development, write UI with Python code, responsive UI, hot reload, type safety, rich IDE support. (1.1K stars)

09 Qwen2: Alibaba Cloud's Open Source Large Model Series github.com

Official repository for Qwen2, supports 128K context, significantly improved coding and math capabilities. (4.2K stars)

10 RSS-Translator: Clean Self-Deployable RSS Translator github.com

Translates RSS titles or content, bilingual display, supports multiple translation engines like DeepL, OpenAI, Gemini, AI content summarization, automatic full-text retrieval, caches translated content.

11 farfalle: AI Search Engine, Self-Host with Local or Cloud LLMs github.com

Open source alternative to Perplexity, can run local or cloud large models. Next.js frontend, FastAPI backend, Logfire logging. (2K stars)

12 chsrc: Cross-Platform Command Line Source Switching Tool github.com

Command line source switching tool supporting multiple operating systems and CPUs, can test speeds of different mirror sources and select the fastest one.

🐢

Podcasts & Videos

× 3
01 What's Your Favorite Python-Related YouTube Channel? reddit.com

A Reddit post with many shares in the comments section worth checking out.

02 Podcast Recorded Live at PyCon 2024 podcasters.spotify.com

Recorded live at PyCon 2024 with core developers present, this brief podcast discusses some noteworthy current topics.

03 Turing Award Winners Series Podcast, 15 Episodes Updated liuyandong.com

This podcast series introduces one Turing Award winner per episode, including their growth experiences, contributions, social impact, etc., with detailed materials presented in an accessible way.

ESC
↑↓ select · ↵ open175 issues