1140
News & links about Python programming. https://pythonhub.dev/ Administrator: @rukeba
Optimize Django Query Performance by combining Select Related and Prefetch Related
When building a Django application, one of the key challenges developers face is optimizing database query performance. Django provides two tools,selectrelated and prefetchrelated, that reduce the number of database queries, and increase the performance of your application. This post explores the power of these two methods and how to combine them to maximize your application’s query performance.
https://johnnymetz.com/posts/combine-select-related-prefetch-related/
Stylize Vector Art Lora Model Tutorial
https://www.reddit.com/r/madeinpython/comments/13lme2p/stylize_vector_art_lora_model_tutorial/
Build a Routing Web App With Neo4j, OpenStreetMap, and Leaflet.js
Hands-On Workshop Exploring Working With Road Network Data and Routing With Graph Algorithms.
https://medium.com/neo4j/build-a-routing-web-app-with-neo4j-openstreetmap-and-leaflet-js-bdc66443132c
solara
A Pure Python, React-style Framework for Scaling Your Jupyter and Web Apps.
https://github.com/widgetti/solara
Vision-CAIR / MiniGPT-4
MiniGPT-4: Enhancing Vision-language Understanding with Advanced Large Language Models
https://github.com/Vision-CAIR/MiniGPT-4
Learning Physically Simulated Tennis Skills from Broadcast Videos
The research project "Vid2Player3D" by NVIDIA aims to develop a deep learning model that can convert 2D videos into 3D animations by leveraging temporal coherence and depth cues, enabling the generation of realistic 3D virtual characters from ordinary videos.
https://research.nvidia.com/labs/toronto-ai/vid2player3d
I’m open-sourcing the Python interface for JOY OF PROGRAMMING - a programming game where you automate all kinds of machines, robots, drones and more.
https://www.reddit.com/r/Python/comments/13ltk4q/im_opensourcing_the_python_interface_for_joy_of/
quivr
Dump all your files and thoughts into your GenerativeAI brain and chat with it.
https://github.com/StanGirard/quivr
Trusted Publishing; how to publish to PyPI with Github Actions
https://pgjones.dev/blog/trusted-plublishing-2023/
Python Port of 600 Line Bash Script: rsync-time-machine.py for Rsync Backups
https://github.com/basnijholt/rsync-time-machine.py
privateGPT
Interact privately with your documents using the power of GPT, 100% privately, no data leaks.
https://github.com/imartinez/privateGPT
Real Multithreading is Coming to Python — Learn How You Can Use It Now
True multi-core concurrency is coming to Python in 3.12 release and here’s how you can use it right now using sub-interpreter API
https://betterprogramming.pub/real-multithreading-is-coming-to-python-learn-how-you-can-use-it-now-90dd7fb81bdf
farshadz1997 / Microsoft-Rewards-bot
A simple bot that uses Selenium to farm Microsoft Rewards written in Python
https://github.com/farshadz1997/Microsoft-Rewards-bot
Bevy v2.0 - The Simple Python Dependency Injection Framework
Modern software can be complex, with many components that depend on each other. It can be hard to manage those dependencies without your project becoming a mess of spaghetti code. This article introduces you to Bevy v2.0, a robust Dependency Injection framework that will help you simplify your Python applications.
https://blog.zech.codes/bevy-v2
Pip 23.1 Released - Massive improvement to backtracking
https://www.reddit.com/r/Python/comments/12n5lai/pip_231_released_massive_improvement_to/
carefree-drawboard
Infinite Drawboard in Python.
https://github.com/carefree0910/carefree-drawboard
openai / plugins-quickstart
Get a ChatGPT plugin up and running in under 5 minutes!
https://github.com/openai/plugins-quickstart
karrio
Karrio is an open-source shipping infrastructure for platform. With Karrio, you can build shipping experience into your platform, access a network of shipping carriers with a single API integration, automate fulfilment and improve logistics operations.
https://github.com/karrioapi/karrio
muellerberndt / mini-agi
MiniAGI is a minimal general-purpose autonomous agent based on GPT-3.5 / GPT-4. Can analyze stock prices, perform network security tests, create art, and order pizza.
https://github.com/muellerberndt/mini-agi
The Little Book of Deep Learning
A short introduction to deep learning. It aims at providing the necessary context to understand key recent AI models for image generation and language processing.
https://fleuret.org/public/lbdl.pdf
Integrals 300X Faster in Python (DON'T use SciPy)
The video discusses the use of TorchQuad, which is a library of different integration techniques built using PyTorch functionality that utilizes GPU accelerated operations for faster computations. The video shows a basic example and goes on to demonstrate a physics problem and derivation of a four-dimensional integral that can be solved using TorchQuad library.
https://www.youtube.com/watch?v=GOiTF11umMo
OpenLMLab / MOSS
An open-source tool-augmented conversational language model from Fudan University
https://github.com/OpenLMLab/MOSS
Intro to PDB, the Python Debugger
Looks like crap, but tastes great
https://bitecode.substack.com/p/intro-to-pdb-the-python-debugger
linyiLYi / street-fighter-ai
This is an AI agent for Street Fighter II Champion Edition.
https://github.com/linyiLYi/street-fighter-ai
“Externally managed environments”: when PEP 668 breaks pip
You’re on a new version of Linux, you try a pip install, and it errors out, talking about “externally managed environments” and “PEP 668”. What’s going on? How do you solve this?
https://pythonspeed.com/articles/externally-managed-environment-pep-668/
If you are lost in the ocean of python packaging, take a look at this book.
https://www.reddit.com/r/learnpython/comments/13h7azi/if_you_are_lost_in_the_ocean_of_python_packaging/
Extending web applications with WebAssembly and Python
https://wasmlabs.dev/articles/wasm-host-to-python/
ReLLM
Exact structure out of any language model completion.
https://github.com/r2d4/rellm
Deploy a Voice-Based Chatbot with BentoML, LangChain, and Gradio
The article provides a tutorial on how to deploy a voice-based chatbot using several open-source tools, including BentoML, LangChain, and Gradio. It covers the steps for building and training a chatbot model, integrating it with voice commands, and deploying the model as a web service for real-time interactions with users.
https://towardsdatascience.com/deploy-a-voice-based-chatbot-with-bentoml-langchain-and-gradio-7f25af3e45df
facebookresearch / AnimatedDrawings
Code to accompany "A Method for Animating Children's Drawings of the Human Figure"
https://github.com/facebookresearch/AnimatedDrawings