News & links about Python programming. https://pythonhub.dev/ Administrator: @rukeba
OpenInterpreter / 01
The open-source language model computer
https://github.com/OpenInterpreter/01
Python Hub Weekly Digest for 2024-04-21
https://pythonhub.dev/digest/2024-04-21/
Cosine Similarity and Text Embeddings In Python with OpenAI
The article discusses how to use cosine similarity to compare text embeddings, which are vector representations of text that capture semantic meaning, in order to determine the similarity between different text inputs. It provides example code for calculating cosine similarity between text embeddings generated using the OpenAI API.
https://earthly.dev/blog/cosine_similarity_text_embeddings/
SQLAlchemy: The BEST SQL Database Library in Python
Ever heard of SQLAlchemy and thought it sounded like a medieval potion? Well, it's not! SQLAlchemy combines the robustness of SQL with Python's flexibility, making database management not just easier, but kinda fun too! In this video, I’ll take a closer look at this awesome tool.
https://www.youtube.com/watch?v=aAy-B6KPld8
ChatGPT / Python
https://www.reddit.com/r/Python/comments/1c2us61/chatgpt_python/
7 examples in 6 minutes using Django GeneratedField
We'll go over 7 short examples in 6 minutes. After looking at them, you'll know how to use Django's GeneratedField - doing calculations automatically with the database quickly and neatly.
https://www.youtube.com/watch?v=b7VkVHBX47w
Python 3.12.3 and 3.13.0a6 released
https://pythoninsider.blogspot.com/2024/04/python-3123-and-3130a6-released.html
philz1337x / clarity-upscaler
Clarity AI | AI Image Upscaler & Enhancer - free and open-source Magnific Alternative
https://github.com/philz1337x/clarity-upscaler
Mantis
Mantis is a security framework that automates the workflow of discovery, reconnaissance, and vulnerability scanning.
https://github.com/PhonePe/mantis
Client libraries are better when they have no API
The article discusses the author's approach to building a client library for the csvbase, focusing on leveraging existing file system abstraction libraries like fsspec to provide a seamless user experience without a custom API. It highlights the benefits of this approach, such as enabling integration with a wide range of tools and libraries that already support the fsspec interface.
https://csvbase.com/blog/7
Python 3.12 Generics in a Nutshell
Generics in Python 3.12 can transform your code by allowing classes to be used with different data types, enhancing flexibility, and catching bugs early. This video dives into generic classes and subclasses and show you how they can streamline your development process.
https://www.youtube.com/watch?v=TkDg3EHwC1g
RAGFlow
RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine based on deep document understanding.
https://github.com/infiniflow/ragflow
Nava
Playing Sounds in Python.
https://github.com/openscilab/nava
SentenceTransformers: Python framework for sentence, text and image embeddings
https://www.sbert.net/index.html
Py2wasm – A Python to WASM Compiler
https://wasmer.io/posts/py2wasm-a-python-to-wasm-compiler
FreeAskInternet
FreeAskInternet is a completely free, private and locally running search aggregator & answer generate using LLM, without GPU needed. The user can ask a question and the system will make a multi engine search and combine the search result to the ChatGPT3.5 LLM and generate the answer based on search results.
https://github.com/nashsu/FreeAskInternet
9 Advanced Python Type Hints That Will Improve Your Code Significantly
https://medium.com/techtofreedom/9-advanced-python-type-hints-that-will-improve-your-code-significantly-ae09ab3b3493
AutoCodeRover
A project structure aware autonomous software engineer aiming for autonomous program improvement.
https://github.com/nus-apr/auto-code-rover
Building a streaming ChatGPT clone, with Django, Channels, and HTMX
This video walks you through the process of building a ChatGPT clone step-by-step using Django, websockets, and HTMX. Each piece of functionality is broken down into a single commit, then explained and demonstrated. By the end, a fully functional, streaming chatbot app is ready!
https://www.youtube.com/watch?v=8JSiiPW4S0A
Predicting solar eclipses with Python
The article describes how the author was able to write a Python script to compute the position of the sun and moon and predict the location of total solar eclipses, leveraging the Astropy library and other Python packages, all in around 100 lines of code.
https://erikbern.com/2024/04/07/predicting-solar-eclipses-with-python
How to survive coding interviews with a single line of Python code
The article discusses techniques for solving coding interview questions using concise, single-line Python code.
https://ivaniscoding.github.io/posts/codeinterview/
The Design Philosophy of Great Tables
The article discusses the importance of well-designed tables for effectively presenting data, drawing inspiration from historical tabular design principles. It highlights the Great Tables library's focus on providing various customization options to help users create visually appealing and structured tables for publications, reports, and other data-driven content
https://posit-dev.github.io/great-tables/blog/design-philosophy
Python in Visual Studio Code – April 2024 Release
This release includes the following announcements:
https://devblogs.microsoft.com/python/python-in-visual-studio-code-april-2024-release/
Loki
An Open-source Tool for Fact Verification.
https://github.com/Libr-AI/OpenFactVerification
Python Hub Weekly Digest for 2024-04-14
https://pythonhub.dev/digest/2024-04-14/
ASGI deployment options for Django
The article explores ASGI deployment options for Django applications, providing insights into deploying Django with ASGI servers.
https://fly.io/django-beats/asgi-deployment-options-for-django/
Rally car tracking tests
https://www.reddit.com/r/madeinpython/comments/1bydj5w/rally_car_tracking_tests/
Octarine
A new lightweight, WGPU-based 3D viewer for Python.
https://github.com/schlegelp/octarine
Automating Python with Google Cloud
A tutorial series on how to automate a Python script in Google Cloud using Cloud Functions and/or Cloud Run.
https://www.scipress.io/post/rSp9Rov4ppvHgpHQaRPy/Automating-Python-with-Google-Cloud