PythonHub
2.36K subscribers
2.35K photos
49K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
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
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
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
👍1
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/
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
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
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
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/
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