News & links about Python programming. https://pythonhub.dev/ Administrator: @rukeba
Joining Strings in Python: A "Huh" Moment
The article discusses the performance implications of using generators vs list comprehensions when joining strings with str.join() in Python. Contrary to expectations, using a generator expression with str.join() is slower than a list comprehension because the CPython implementation converts the generator to a list internally before joining the strings, negating the memory efficiency ben...
https://berglyd.net/blog/2024/06/joining-strings-in-python/
A Beautiful and Timely Python Multi-page Streamlit Application
Showcasing historical summer Olympic data through multiple data visualizations.
https://johnloewen.substack.com/p/a-beautiful-and-timely-python-multi
Alga
CLI for remote controlling LG webOS TVs.
https://github.com/Tenzer/alga
piku
The tiniest PaaS you've ever seen. Piku allows you to do git push deployments to your own servers.
https://github.com/piku/piku
Insanely Easy GPT-4 One Prompt Streamlit Interactive Plotly Sunburst Chart
Simple and modular prompt engineering for efficient Python charting results.
https://johnloewen.substack.com/p/insanely-easy-gpt-4-one-prompt-streamlit
Sold my Python open source project to a San Francisco AI company. Now I work for them. AMA.
https://www.reddit.com/r/Python/comments/1de2llp/sold_my_python_open_source_project_to_a_san/
Nvidia Warp: A Python framework for high performance GPU simulation and graphics
https://github.com/NVIDIA/warp
llama-zip
LLM-powered lossless compression tool.
https://github.com/AlexBuz/llama-zip
Python 3.12.4 released
https://pythoninsider.blogspot.com/2024/06/python-3124-released.html
StreamSpeech is an “All in One” seamless model for offline and simultaneous speech recognition, speech translation and speech synthesis.
https://github.com/ictnlp/StreamSpeech
pdm-project / pdm
A modern Python package and dependency manager supporting the latest PEP standards
https://github.com/pdm-project/pdm
LLaVA-VL / LLaVA-NeXT
https://github.com/LLaVA-VL/LLaVA-NeXT
Inspectus
Inspectus is a versatile visualization tool for large language models. It runs smoothly in Jupyter notebooks via an easy-to-use Python API. Inspectus provides multiple views, offering diverse insights into language model behaviors.
https://github.com/labmlai/inspectus
Understanding HTTP Server by Implementing in Python
https://muhammadraza.me/2024/building-http-server/
Cant decide between flask, django ninja or fastAPI for sideproject
https://www.reddit.com/r/Python/comments/1dgbq1e/cant_decide_between_flask_django_ninja_or_fastapi/
pdf-to-podcast
Convert any PDF into a podcast episode!
https://github.com/knowsuchagency/pdf-to-podcast
React + Django + Ninja: Full-stack app in 15 mins
We'll build a React and Django app fast, using Django Ninja - aiming for under 15 minutes.
https://www.youtube.com/watch?v=X1lDWzvIXRs
Python Hub Weekly Digest for 2024-06-23
https://pythonhub.dev/digest/2024-06-23/
thread
AI-Powered Jupyter Notebook built using React.
https://github.com/squaredtechnologies/thread
Modal Forms with Django, HTMX, and Tailwind CSS
This video shows how you can convert a traditional Django form to an HTMX modal element in just a few quick steps.
https://www.youtube.com/watch?v=L1VC-KpSoBk
pytest-edit
Type pytest --edit
to open the failing test code.
https://github.com/MrMino/pytest-edit
Build a SaaS App with Django, Stripe, Neon PostgreSQL, TailwindCSS, GitHub Actions
This video is a Python tutorial that teaches how to build a SaaS app with Django, Stripe, Neon PostgreSQL, TailwindCSS, and GitHub Actions. It covers topics like Django web development, sending emails, user authentication, deployment, database integration, static files, and subscription management.
https://www.youtube.com/watch?v=WbNNESIxJnY
Cracking the Scheduling Code in Hay Day
Learn how to solve the scheduling problem in the Hay Day game using Mixed-integer linear programming and Google OR-Tools.
https://thinhcorner.com/blog/hayday-game-schedule
Optimal SQLite settings for Django
The article provides optimal SQLite settings for Django applications, aimed at enhancing performance and reliability for smaller deployments. It includes specific PRAGMA configurations and a simple backup strategy, highlighting the potential of SQLite when correctly tuned for production use.
https://gcollazo.com/optimal-sqlite-settings-for-django/
Python in Visual Studio Code – June 2024 Release
This release includes the following announcements:
https://devblogs.microsoft.com/python/python-in-visual-studio-code-june-2024-release/
Let's reproduce GPT-2 (124M)
In this video, Andrej Karpathy demonstrates how to reproduce the GPT-2 (124M) model, covering topics like parameter sharing, model initialization, mixed precision training, optimizations like flash attention, and hyperparameter tuning.
https://www.youtube.com/watch?v=l8pRSuU81PU
Burr
Burr makes it easy to develop applications that make decisions (chatbots, agents, simulations, etc...) from simple python building blocks.
https://github.com/dagworks-inc/burr
My thoughts on Python in Excel
An in-depth review of Microsoft's new Python in Excel functionality.
https://www.xlwings.org/blog/my-thoughts-on-python-in-excel
CPython Garbage Collection: The Internal Mechanics and Algorithms
A detailed code walkthrough of how CPython implements memory management, including reference counting and garbage collection.
https://blog.codingconfessions.com/p/cpython-garbage-collection-internals
Python Hub Weekly Digest for 2024-06-16
https://pythonhub.dev/digest/2024-06-16/