1140
News & links about Python programming. https://pythonhub.dev/ Administrator: @rukeba
giskard
The testing framework for ML models, from tabular to LLMs.
https://github.com/Giskard-AI/giskard
How to Profile Asyncio Programs
You can profile slow asyncio programs to discover coroutines that occupy most of the runtime and ...
https://superfastpython.com/profile-asyncio-programs/
Database generated columns: Django & SQLite
An introduction to database generated columns, using SQLite and the new GeneratedField added in Django 5.0.
https://www.paulox.net/2023/11/07/database-generated-columns-part-1-django-and-sqlite/
7 Tips To Structure Your Python Data Science Projects
This video will cover 7 tips to streamline the structure of your Python data science projects. With the right setup and thoughtful software design, you'll be able to modify and enhance your projects more efficiently.
https://www.youtube.com/watch?v=xVuqDBCQAYc
lm-format-enforcer
Enforce the output format (JSON Schema, Regex etc) of a language model.
https://github.com/noamgat/lm-format-enforcer
Do not use requirements.txt
This post discusses the limitations of using requirements.txt for package management in Python projects. The author suggests using Poetry instead, which is a package manager that simplifies dependency management and provides additional features such as virtual environments and lock files.
https://quanttype.net/posts/2023-10-31-do-not-use-requirements.txt.html
Show HN: Jeeves – A Pythonic Alternative to GNU Make
https://jeeves.sh
eosphoros-ai / DB-GPT
Revolutionizing Database Interactions with Private LLM Technology
https://github.com/eosphoros-ai/DB-GPT
XAgent
An Autonomous LLM Agent for Complex Task Solving.
https://github.com/OpenBMB/XAgent
De4py
De4py are an Advanced python deobfuscator with a beautiful UI and a set of Advanced features that enables malware analysts and reverse engineers to deobfuscate python files and more.
https://github.com/Fadi002/de4py
Wonder3D
A cross-domain diffusion model for 3D reconstruction from a single image.
https://github.com/xxlong0/Wonder3D
Algorithmic Trading – Machine Learning & Quant Strategies Course with Python
This course covers three advanced trading strategies. First, it focuses on Unsupervised Learning with S&P 500 data, followed by a Twitter Sentiment Investing Strategy for NASDAQ stocks, and an Intraday Strategy using the GARCH model and technical indicators to identify daily and intraday trading signals, enriching your financial skill set.
https://www.youtube.com/watch?v=9Y3yaoi9rUQ
Why was the "lambda" keyword added for anonymous functions?
https://www.reddit.com/r/Python/comments/17mrpof/why_was_the_lambda_keyword_added_for_anonymous/
From Chaos to Cohesion: Architecting Your Own Monorepo
Build a simple monorepo using GitHub Actions as a CI/CD tool.
https://monadical.com/posts/from-chaos-to-cohesion.html
huggingface / pytorch-image-models
PyTorch image models, scripts, pretrained weights -- ResNet, ResNeXT, EfficientNet, NFNet, Vision Transformer (ViT), MobileNet-V3/V2, RegNet, DPN, CSPNet, Swin Transformer, MaxViT, CoAtNet, ConvNeXt, and more
https://github.com/huggingface/pytorch-image-models
Debugging CSRF Failed / 403 Forbidden errors in Django
A guided deep dive into Django's source code to understand why your application is failing CSRF validation.
https://www.better-simple.com/django/2023/11/04/debugging-csrf-error-in-production/
DeepSeek-Coder
Let the Code Write Itself.
https://github.com/deepseek-ai/DeepSeek-Coder
Python obfuscation traps
In the realm of software development, open-source tools and packages play a pivotal role in simplifying tasks and accelerating development processes. Yet, as the community grows, so does the number of bad actors looking to exploit it. A recent example involves developers being targeted by seemingly legitimate Python obfuscation packages that harbor malicious code.
https://checkmarx.com/blog/python-obfuscation-traps/
spdustin / ChatGPT-AutoExpert
🚀🧠💬 Supercharged Custom Instructions for ChatGPT (non-coding) and ChatGPT Advanced Data Analysis (coding).
https://github.com/spdustin/ChatGPT-AutoExpert
Python Hub Weekly Digest for 2023-11-12
https://pythonhub.dev/digest/2023-11-12/
Raven
CI/CD Security Analyzer.
https://github.com/CycodeLabs/raven
LearnHouse
https://github.com/learnhouse/learnhouse
SuperDuperDB
Bring AI to your favourite database! Integrate, train and manage any AI models and APIs directly with your database and your data.
https://github.com/SuperDuperDB/superduperdb
Generate images in one second on your Mac using a latent consistency model
Latent consistency models (LCMs) are based on Stable Diffusion, but they can generate images much faster, needing only 4 to 8 steps for a good image (compared to 25 to 50 steps). By running an LCM on your M1 or M2 Mac you can generate 512x512 images at a rate of one per second.
https://replicate.com/blog/run-latent-consistency-model-on-mac
Build ChatGPT-like Apps with AI
If you're interested in the practical applications of AI and Large Language Models (LLMs), you'll find value in this talk and live demo. The presentation goes beyond theory to include real-world examples and best practices, including a GitHub repository packed with Python code and ChatGPT-like app examples that will help you spin up your own app.
https://sixfeetup.com/company/news/build-chatgpt-like-apps-with-ai
hiyouga / LLaMA-Factory
Easy-to-use LLM fine-tuning framework (LLaMA-2, BLOOM, Falcon, Baichuan, Qwen, ChatGLM3)
https://github.com/hiyouga/LLaMA-Factory
Why is the Django Admin “Ugly”?
This article discusses why the Django admin is not designed to be beautiful. It discusses the history of the Django admin and the reasons why it was designed the way it is. Some of the important points are that the Django admin is intended for internal use and not intended for building an entire front end around.
https://www.coderedcorp.com/blog/why-is-the-django-admin-ugly/
Analyzing Data 170,000x Faster with Python
In this post, we will go through a journey of profiling and iteratively speeding up the code, in Python.
https://sidsite.com/posts/python-corrset-optimization/
Esmerald
Esmerald is a modern, powerful, flexible, high performant, web framework designed to build not only APIs but also full scalable applications from the smallest to enterprise level.
https://github.com/dymmond/esmerald