1140
News & links about Python programming. https://pythonhub.dev/ Administrator: @rukeba
gpt-researcher
GPT based autonomous agent that does online comprehensive research on any given topic.
https://github.com/assafelovic/gpt-researcher
Django: Clean up unused code with Vulture
The article provides a brief overview of how to use Vulture to clean up unused code in Django projects. It also discusses some of the limitations of Vulture and how to work around them.
https://adamj.eu/tech/2023/07/12/django-clean-up-unused-code-vulture/
threads-net
Unofficial and reverse-engineered Threads (threads.net) Python API wrapper. Supports read and write capabilities.
https://github.com/dmytrostriletskyi/threads-net
Python can make 3M+ WebSocket keys per second
This article is about optimizing a tiny bit of Python code by replacing it with its C++ counterpart.
https://github.com/szabolcsdombi/optimization-demo
Demystifying Text Data with the Unstructured Python Library
https://saeedesmaili.com/demystifying-text-data-with-the-unstructured-python-library/
Back end of Meta Threads is built with Python 3.10 with some interesting tweaks
https://twitter.com/llanga/status/1676846870520291329
If PEP 703 is accepted, Meta can commit three engineer-years to nogil CPython
https://discuss.python.org/t/a-fast-free-threading-python/27903/99
Using the AWS Parameters and Secrets Lambda Extension with Python: A Practical Example
Using the AWS Parameters and Secrets Lambda Extension can speed up your Lambda code and save you money. In this practical example we will go through a full example, complete with a couple of gotchas I found that could catch you out.
https://community.aws/posts/parameters-and-secrets-lambda-extension-with-python
Counting occurrences in Python with collections.Counter
https://www.pythonmorsels.com/using-counter/
The easiest way to speed up Python with Rust
If you want to speed up some existing Python code, writing a compiled extension in Rust can be ...
https://pythonspeed.com/articles/easiest-rust-python/
Organizing Database Queries: Managers vs. QuerySets
In this article Mariusz Felisiak introduces concepts of Django's Managers and QuerySet to organize common database queries.
https://fly.io/django-beats/organizing-database-queries-managers-vs-querysets/
100% Offline ChatGPT Alternative?
In this video I show I was able to install an open source Large Language Model (LLM) called h2oGPT on my local computer for 100% private, 100% local chat with a GPT.
https://www.youtube.com/watch?v=Coj72EzmX20
Python Hub Weekly Digest for 2023-07-09
https://pythonhub.dev/digest/2023-07-09/
Text Chunking and Headings Grouping: A Guide to Parsing Documents with Pandoc and Python
In my previous blog post I explored using the unstructured python library for loading and parsing ...
https://saeedesmaili.com/text-chunking-headings-grouping-parsing-documents-with-pandoc/
Sweep
Sweep is an AI junior dev that transforms bug reports & feature requests into code changes. Simply describe any issue and Sweep will do the rest. It will plan out what needs to be done, what changes to make, and write the changes to a PR.
https://github.com/sweepai/sweep
Create a Programming Language and Learn Advanced Python
https://www.youtube.com/watch?v=1WpKsY9LBlY
Python Hub Weekly Digest for 2023-07-16
https://pythonhub.dev/digest/2023-07-16/
You Don’t Need __all__
Every now and then, I get a PR from a well-meaning contributor trying to add all to a Python module for whatever reason. I always decline these, they are unnecessary (at least for the way I structure my code) and I thought I’d write a short post explaining why.
https://jamesturk.net/posts/you-dont-need-all/
UltraChat
Large-scale, Informative, and Diverse Multi-round Dialogue Data, and Models.
https://github.com/thunlp/UltraChat
Generating Code without Generating Technical Debt?
The article also provides some tips on how to make the code generated by ChatGPT more maintainable, such as using short functions, splitting the code into smaller files, and using comments to explain the code.
https://sourcery.ai/blog/chatgpt-maintainable-code/
GPT Engineer: Things Are Starting to Get Weird
GPT Engineer is another nail in the coffin of software developers. In this video, I'll show you how it works. The tool is crazy powerful. Just specify what you want it to build, and then, well, it just builds it. I’ll show you how it works in today's video and share my thoughts on where this technology might lead us.
https://www.youtube.com/watch?v=FPZONhA0C60
CLI tools hidden in the Python standard library
A comprehensive collection of practical tips and examples showcasing various command-line interface (CLI) tools available in the Python Standard Library, providing valuable guidance for developers looking to leverage these built-in functionalities for efficient scripting and automation.
https://til.simonwillison.net/python/stdlib-cli-tools
vlite
A blazing fast, lightweight, and simple vector database written in less than 200 lines of code.
https://github.com/sdan/vlite
Python in 2023 still sucks at importing modules from another folder
https://stackoverflow.com/questions/714063/importing-modules-from-parent-folder/50194143#50194143
Building a Toy Programming Language in Python - Part 1
The first installment of this series shows how to implement the lexer, parser and interpreter for a very simple version of the language that did only one thing: print numbers.
https://blog.miguelgrinberg.com/post/building-a-toy-programming-language-in-python
Automating Deployment of Applications using Kubernetes Python SDK
https://www.faizanbashir.me/automating-deployment-of-python-applications-kubernetes-sdk
Django: Flush out test flakiness by randomly ordering QuerySets
https://adamj.eu/tech/2023/07/04/django-test-random-order-querysets/
Best Webhosting for Python
https://www.reddit.com/r/learnpython/comments/14jimd7/best_webhosting_for_python/