News & links about Python programming. https://pythonhub.dev/ Administrator: @rukeba
Pydantic 2.7 released: the fastest version yet
It finally integrates jiter, a high speed JSON parser
https://github.com/pydantic/pydantic/releases/tag/v2.7.0
PySheets – Spreadsheet UI for Python
https://pysheets.app/
BeyondLLM
Build, evaluate and observe LLM apps.
https://github.com/aiplanethub/beyondllm
meta-llama / codellama
Inference code for CodeLlama models
https://github.com/meta-llama/codellama
Build a Connect Four game with HTMX and Django in 8 minutes
By the end, you'll have built a multiplayer game using HTMX, using neat server-side logic and storing all results in your database. HTMX is a great way to use javascript without writing javascript.
https://www.photondesigner.com/articles/connect4-htmx
Portr
Open source ngrok alternative designed for teams
https://github.com/amalshaji/portr
InstructLab
Command-line interface. Use this to chat with the model or train the model (training consumes the taxonomy data)
https://github.com/instructlab/instructlab
Run Llama 3 locally using Ollama and LlamaEdge
Meta has unveiled Llama3, and now you can run it locally using Ollama. In this video, I explain how to use Ollama to operate various language models, specifically focusing on Llama2 and Llama3. I'll also guide you through the WebUI for the project, demonstrating how to serve models with Ollama and interact with them using Python.
https://www.youtube.com/watch?v=wPuoMaD_SnY
bridge
Automatic infrastructure for Django.
https://github.com/Never-Over/bridge
Llama 3: Get building with LLMs in 5 minutes
Get started building transformative AI-powered features within 5 minutes using Llama 3, Ollama, and Python.
https://www.denoise.digital/llama-3-get-started-with-llms/
fudan-generative-vision / champ
Champ: Controllable and Consistent Human Image Animation with 3D Parametric Guidance
https://github.com/fudan-generative-vision/champ
Hashquery
A Python framework for defining and querying BI models in your data warehouse.
https://github.com/hashboard-hq/hashquery
Shape Typing in Python
https://jameshfisher.com/2024/04/12/shape-typing-in-python/
Develop an Asyncio Echo Client and Server
You can develop an echo client and server using asyncio connections and streams. An echo server ...
https://superfastpython.com/asyncio-echo-client-server/
Testing with Python (part 1): the basics
SummaryThis intro is about dumb test writing, as it's the necessary foundation to learn what comes ...
https://www.bitecode.dev/p/testing-with-python-part-1-the-basics
Python Big O: Time complexities of different data structures in Python
https://www.pythonmorsels.com/time-complexities/
Hashquery, a Python library for defining reusable analysis
https://hashquery.dev/
jxnl / instructor
structured outputs for llms
https://github.com/jxnl/instructor
anthropic-cookbook
A collection of notebooks/recipes showcasing some fun and effective ways of using Claude.
https://github.com/anthropics/anthropic-cookbook
Everything Google's Python team were responsible for
https://simonwillison.net/2024/Apr/27/everything-googles-python-team-were-responsible-for/
Django: Pinpoint upstream changes with Git
In this post, we’ll cover Django’s branching structure, determining and searching through those commits, a worked example, and advanced behavioural searching with git bisect.
https://adamj.eu/tech/2024/04/24/django-pinpoint-upstream-git/
Ask HN: Python Metrics Library
https://news.ycombinator.com/item?id=40104427
Building a Voice Notes App with Django and OpenAI
We'll build a voice notes app that uses OpenAI to perform speech to text. As a bonus, we'll use AlpineJS to manage state on the frontend.
https://circumeo.io/blog/entry/building-a-voice-notes-app-with-django-and-openai/
Build your Jupyter dashboard using Solara
https://solara.dev/documentation/getting_started/tutorials/jupyter-dashboard-part1
PyTorch 2.3
PyTorch 2.3 offers support for user-defined Triton kernels in torch.compile, allowing for users to migrate their own Triton kernels from eager without experiencing performance regressions or graph breaks. Tensor Parallelism improves the experience for training Large Language Models using native PyTorch functions, which has been validated on training runs for 100B parameter models. As wel...
https://pytorch.org/blog/pytorch2-3/
llama3
This release includes model weights and starting code for pre-trained and instruction tuned Llama 3 language models — including sizes of 8B to 70B parameters.
https://github.com/meta-llama/llama3
Python Hub Weekly Digest for 2024-04-28
https://pythonhub.dev/digest/2024-04-28/
Leibniz formula for π in Python, JavaScript, and Ruby
Different ways to calculate the value of π using the Leibniz ...
https://www.peterbe.com/plog/leibniz-formula-for-pi
An unbiased evaluation of Python environment and packaging tools (2023)
https://alpopkes.com/posts/python/packaging_tools/
Running Python on a serverless GPU instance for machine learning inference
I was experimenting with some speech-to-text work using OpenAI’s Whisper models
...
https://saeedesmaili.com/posts/running-python-on-a-serverless-gpu-instance/