News & links about Python programming. https://pythonhub.dev/ Administrator: @rukeba
Simple Pretty Maps That Will Better Your Python Streamlit Skills
A simple tutorial on creating beautiful maps using the prettymapp library.
https://johnloewen.substack.com/p/simple-pretty-maps-that-will-better
A Beginner's Guide to Unit Testing with Pytest
In this guide, we will explore the core principles of unit testing, delve into Pytest's powerful capabilities, and equip you with the knowledge and skills to write clean, maintainable, and effective tests.
https://betterstack.com/community/guides/testing/pytest-guide/
Llama 3 implemented in pure NumPy
Understand the exact structure with working implementation of the Llama 3 model.
https://docs.likejazz.com/llama3.np/
Replacing pyinstaller with 100 lines of code
A tale of how I accidentally stumbled upon some interesting tech over time.
https://tushar.lol/post/packaged/
llama3.np
A pure NumPy implementation for Llama 3 model.
https://github.com/likejazz/llama3.np
Python Hub Weekly Digest for 2024-05-26
https://pythonhub.dev/digest/2024-05-26/
MindNLP
Easy-to-use and high-performance NLP and LLM framework based on MindSpore, compatible with models and datasets of Huggingface.
https://github.com/mindspore-lab/mindnlp
dvlab-research / MGM
Official repo for "Mini-Gemini: Mining the Potential of Multi-modality Vision Language Models"
https://github.com/dvlab-research/MGM
FastAPI-SaaS-Template
A FastAPI template for License and user management for SaaS and on-prem software
https://github.com/shekhuverma/FastAPI-SaaS-Template
UXsim
Vehicular traffic flow simulator in road network, written in pure Python.
https://github.com/toruseo/UXsim
High Impact Python Streamlit: Beautiful Interactive Maps and Charts
A step by step modular approach with UNFAO global food insecurity data.
https://johnloewen.substack.com/p/high-impact-python-streamlit-beautiful
Django: Getting a full model instance from a Subquery
https://blog.bmispelon.rocks/articles/2024/2024-05-09-django-getting-a-full-model-instance-from-a-subquery.html
Pipecat
Open Source framework for voice and multimodal conversational AI.
https://github.com/pipecat-ai/pipecat
Frame
Frame is a markdown language for creating state machines (automata) in Python as well as generating UML documentation.
https://github.com/frame-lang/frame_transpiler
Extracting Words from Scanned Books: A Step-by-Step Tutorial with Python, OpenCV
https://github.com/feitgemel/Open-CV/tree/main/Words-Segmentation
Kafka Consumers in Python - A Walkthrough
Getting data out of Apache Kafka is easy if you know how, so let's go through an example step-by-step. In this walkthrough we take you through the process of creating a simple Kafka Consumer using the Quix Streams library.
https://www.youtube.com/watch?v=eCsSAzTy5cE
College Precalculus – Full Course with Python Code
Learn college Precalculus from an experienced university mathematics professor. You will also learn how to implement all the Precalculus concepts using the Python programming language.
https://www.youtube.com/watch?v=Y8oZtFYweTY
llama3-from-scratch
llama3 implementation one matrix multiplication at a time.
https://github.com/naklecha/llama3-from-scratch
LLM Models and RAG Hands-on Guide
This guide is designed for technical teams interested in developing basic conversational AI solutions using Retrieval-Augmented Generation (RAG).
https://github.com/zahaby/intro-llm-rag
FunClip
Open-source, accurate and easy-to-use video speech recognition & clipping tool, LLM based AI clipping intergrated.
https://github.com/alibaba-damo-academy/FunClip
stanford-oval / storm
An LLM-powered knowledge curation system that researches a topic and generates a full-length report with citations.
https://github.com/stanford-oval/storm
Parsing PNG images in Mojo
The post details the author's experience implementing a PNG parser in the Mojo programming language. It covers challenges faced, such as handling unsigned 8-bit integers and converting bytes to strings, while exploring idiomatic ways to write Mojo code for this task.
https://fnands.com/blog/2024/mojo-png-parsing/
How to use Postgres as a simple task queue for Django
https://www.youtube.com/watch?v=kNGOcI_qqYo
A first attempt at DSPy Agents from scratch
This post is going to take a first pass at creating Agents from scratch, using DSPy. The goal here is education, and to explore how one might build agents from scratch in DSPy.
https://learnbybuilding.ai/tutorials/dspy-agents-from-scratch
Tezos Blockchain Developer Course – Python Web3 Development
Learn how to develop distributed applications on Tezos, from setting up wallets to understanding and managing smart contracts effectively. The course covers various tools and techniques essential for Tezos developers and highlights the community-driven innovations that support the platform's growth.
https://www.youtube.com/watch?v=pHQfw1W7V8s
Is PyGame still alive?
https://www.reddit.com/r/Python/comments/1crsktg/is_pygame_still_alive/
TimesFM
TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.
https://github.com/google-research/timesfm
The Unit of Work Design Pattern Explained
This video explains the Unit of Work design pattern, a crucial concept for anyone who regularly interacts with databases. This pattern plays a key role by accumulating all transactions and executing them collectively. But why is this necessary? Find out in this video.
https://www.youtube.com/watch?v=HX6vkP-QD7U
An Intro to Logging with Python and Loguru
Python’s logging module isn’t the only way to create logs. There are several third-party packages you can use, too. One of the most popular is Loguru. Loguru intends to remove all the boilerplate you get with the Python logging API. You will find that Loguru greatly simplifies creating logs in Python.
https://www.blog.pythonlibrary.org/2024/05/15/an-intro-to-logging-with-python-and-loguru/
Light speed with Python and JS
Nope, this article is not about making Python and JS run very fast, it's about making a light speed effect for the fun of a hundred of drunk people
https://www.bitecode.dev/p/light-speed-with-python-and-js