News & links about Python programming. https://pythonhub.dev/ Administrator: @rukeba
RegisterFields in Django
An explanation of a Django model field that returns an instance of a class depending on a key.
https://www.better-simple.com/django/2023/10/03/registerfields-in-django/
Build Your First Pytorch Model In Minutes!
In this video we will learn through doing! Build your very first PyTorch model that can classify images of playing cards.
https://www.youtube.com/watch?v=tHL5STNJKag
Python Type Hints: pyastgrep case study
The author shares their experience adding type hints to Python code in their tool pyastgrep. They discuss the challenges and benefits of using static type checking and interactive programming help to catch errors and improve code readability.
https://lukeplant.me.uk/blog/posts/python-type-hints-pyastgrep-case-study/
ziggy-pydust
A toolkit for building Python extensions in Zig.
https://github.com/fulcrum-so/ziggy-pydust
Python Hub Weekly Digest for 2023-10-15
https://pythonhub.dev/digest/2023-10-15/
cappa
Declarative CLI argument parser.
https://github.com/dancardin/cappa
cloudgrep
cloudgrep is grep for cloud storage.
https://github.com/cado-security/cloudgrep
dreamgaussian
Generative Gaussian Splatting for Efficient 3D Content Creation.
https://github.com/dreamgaussian/dreamgaussian
I developed a script to control Spotify from anywhere with global hotkeys!
https://www.reddit.com/r/Python/comments/1725svi/i_developed_a_script_to_control_spotify_from/
Mastering Integration Testing with FastAPI
Integration Testing FastAPI: Harnessing the Power of Mocking Backend Services with MongoMock, MockS3, and More.
https://alex-jacobs.com/posts/fastapitests/
YouTube Video Recommendation Systems
Home
Table of Contents
YouTube Video Recommendation Systems
...
https://pyimagesearch.com/2023/09/25/youtube-video-recommendation-systems/
Show HN: Running LLMs in one line of Python without Docker
https://www.lepton.ai/
Python 3.12: All New Features You Need To Know!
This video will not only dive into the thrilling new features and improvements coming our way in Python 3.12 but also discuss some elements that will be removed in the upcoming release.
https://www.youtube.com/watch?v=udHmeAmOlbI
Hundreds of malicious Python packages found stealing sensitive data
https://www.reddit.com/r/Python/comments/171juq8/hundreds_of_malicious_python_packages_found/
LangChain Crash Course for Beginners
LangChain is a framework designed to simplify the creation of applications using large language models. It makes it easy to connect AI models with a bunch of different data sources so you can create customized NLP applications.
https://www.youtube.com/watch?v=lG7Uxts9SXs
The Elegance of Modular Data Processing with Python’s Pipeline Approach
Diving into the intricacies of data processing can often feel like navigating an intricate labyrinth. We build these elaborate processes, only to leave them untouched for fear of breaking them. But what if we could improve it? Here's my perspective on crafting a more maintainable, modular data processing workflow in Python which leans into the "pipe and filter" architectural pattern.
https://github.com/dkraczkowski/dkraczkowski.github.io/tree/main/articles/crafting-data-processing-pipeline
How to Use an LLM in a SaaS Platform
The video will walk you through how large language models are being used in a SaaS platform called Learntail. Learntail is an easy-to-use AI-powered quiz-generating tool.
https://www.youtube.com/watch?v=fH8fJYWfJcg
tairov / llama2.mojo
Inference Llama 2 in one file of pure 🔥
https://github.com/tairov/llama2.mojo
Nevergrad: Python toolbox for performing gradient-free optimization
https://github.com/facebookresearch/nevergrad
Django: Move a template tag library into builtins
Django’s template engine has an underappreciated builtins option that selects libraries to preload ...
https://adamj.eu/tech/2023/09/15/django-move-template-tag-library-builtins/
aigc-apps / sd-webui-EasyPhoto
📷 EasyPhoto | Your Smart AI Photo Generator.
https://github.com/aigc-apps/sd-webui-EasyPhoto
Python 3.12.0 from a supply chain security perspective
https://sethmlarson.dev/security-developer-in-residence-weekly-report-13
fishaudio / Bert-VITS2
vits2 backbone with bert
https://github.com/fishaudio/Bert-VITS2
OpenAccess-AI-Collective / axolotl
Go ahead and axolotl questions
https://github.com/OpenAccess-AI-Collective/axolotl
Things I’ve learned about building CLI tools in Python
I build a lot of command-line tools in Python. It’s become my favorite way of quickly turning a piece of code into something I can use myself and package up for other people to use too. Here are some notes on what I’ve learned about designing and implementing CLI tools in Python so far.
https://simonwillison.net/2023/Sep/30/cli-tools-python/
Django things you want with HTMX
SummaryUse HTTP 303 for redirections.Setup django-htmx to see Django error response pages despite ...
https://www.bitecode.dev/p/django-things-you-want-with-htmx
Calling Rust from Python
https://blog.frankel.ch/rust-from-python/
How to store your users' API keys securely in Django
Encrypt your users' keys to increase security.
https://www.photondesigner.com/articles/store-api-keys-securely
BoTorch
BoTorch is a library for Bayesian Optimization research built on top of PyTorch.
https://botorch.org/
Scaling Large (Language) Models with PyTorch Lightning
Learn about techniques to train large models like Llama and Stable Diffusion using PyTorch Lightning.
https://lightning.ai/blog/scaling-large-language-models-with-pytorch-lightning/