Python Big O: Time complexities of different data structures in Python
https://www.pythonmorsels.com/time-complexities/
https://www.pythonmorsels.com/time-complexities/
Pythonmorsels
Python Big O: the time complexities of different data structures in Python
The time complexity of common operations on Python's many data structures.
Pydantic 2.7 released: the fastest version yet
It finally integrates jiter, a high speed JSON parser
https://github.com/pydantic/pydantic/releases/tag/v2.7.0
It finally integrates jiter, a high speed JSON parser
https://github.com/pydantic/pydantic/releases/tag/v2.7.0
GitHub
Release v2.7.0 (2024-04-11) · pydantic/pydantic
The code released in v2.7.0 is practically identical to that of v2.7.0b1.
What's Changed
Packaging
Reorganize pyproject.toml sections by @Viicos in #8899
Bump pydantic-core to v2.18.1 by @sydn...
What's Changed
Packaging
Reorganize pyproject.toml sections by @Viicos in #8899
Bump pydantic-core to v2.18.1 by @sydn...
I accidentally built a meme search engine
Or: how to learn about clip/siglip and vector encoding images.
https://harper.blog/2024/04/12/i-accidentally-built-a-meme-search-engine
Or: how to learn about clip/siglip and vector encoding images.
https://harper.blog/2024/04/12/i-accidentally-built-a-meme-search-engine
Harper Reed's Blog
I accidentally built a meme search engine
I built a magical meme search engine using siglip/CLIP and vector encoding images. It was a fun way to learn about this powerful technology. I'm sharing the code so you can build your own and discover forgotten gems in your photo library. Let's unleash the…
Learn to use Websockets with Django by building your own ChatGPT
Everything you need to know about websockets to use them in your applications, with Django, channels, and HTMX.
https://www.saaspegasus.com/guides/django-websockets-chatgpt-channels-htmx/
Everything you need to know about websockets to use them in your applications, with Django, channels, and HTMX.
https://www.saaspegasus.com/guides/django-websockets-chatgpt-channels-htmx/
SaaS Pegasus
Learn to use Websockets with Django by building your own ChatGPT
Everything you need to know about websockets to use them in your applications, with Django, channels, and HTMX.
Django from first principles
Many people don't realize you can start a Django project with a single file. This series walks through the process of building a simple but non-trivial project by starting with a single file. The project only expands to additional files when it makes sense to move code out of the main file. By the end of the series, we'll have a project with a structure similar to what's generated by sta...
https://www.mostlypython.com/django-from-first-principles-2/
Many people don't realize you can start a Django project with a single file. This series walks through the process of building a simple but non-trivial project by starting with a single file. The project only expands to additional files when it makes sense to move code out of the main file. By the end of the series, we'll have a project with a structure similar to what's generated by sta...
https://www.mostlypython.com/django-from-first-principles-2/
Mostly Python
Django from first principles
Most Django tutorials and resources start by running two commands: django-admin startproject, followed by manage.py startapp. This is a reasonable way for experienced Django developers to start new projects, because it sets up an overall structure that makes…
Asyncio Coroutine Object Methods in Python
We can define coroutine methods on custom Python objects. This allows methods on custom Python objects to use async/await syntax, such as awaiting other coroutines and tasks and allows the custom coroutine methods themselves to be awaited within our asyncio programs. In this tutorial, you will discover how to define object methods as coroutines.
https://superfastpython.com/asyncio-coroutine-methods/
We can define coroutine methods on custom Python objects. This allows methods on custom Python objects to use async/await syntax, such as awaiting other coroutines and tasks and allows the custom coroutine methods themselves to be awaited within our asyncio programs. In this tutorial, you will discover how to define object methods as coroutines.
https://superfastpython.com/asyncio-coroutine-methods/
Super Fast Python
Asyncio Coroutine Object Methods in Python - Super Fast Python
We can define coroutine methods on custom Python objects. This allows methods on custom Python objects to use async/await syntax, such as awaiting other coroutines and tasks and allows the custom coroutine methods themselves to be awaited within our asyncio…
Local LLM-as-judge evaluation with lm-buddy, Prometheus and llamafile
This post examines how different software components came together to allow LLM-as-judge evaluation without the need for expensive GPUs. All the components were built with and chosen for their user control, open source nature, and interoperability.
https://blog.mozilla.ai/local-llm-as-judge-evaluation-with-lm-buddy-prometheus-and-llamafile
This post examines how different software components came together to allow LLM-as-judge evaluation without the need for expensive GPUs. All the components were built with and chosen for their user control, open source nature, and interoperability.
https://blog.mozilla.ai/local-llm-as-judge-evaluation-with-lm-buddy-prometheus-and-llamafile
Mozilla.ai Blog
Local LLM-as-judge evaluation with lm-buddy, Prometheus and llamafile
In the AI news cycle, with new models unveiled every day, cost and evaluation don’t come up much but are crucial to developers and businesses
cohere-toolkit
Toolkit is a collection of prebuilt components enabling users to quickly build and deploy RAG applications.
https://github.com/cohere-ai/cohere-toolkit
Toolkit is a collection of prebuilt components enabling users to quickly build and deploy RAG applications.
https://github.com/cohere-ai/cohere-toolkit
GitHub
GitHub - cohere-ai/cohere-toolkit: Cohere Toolkit is a collection of prebuilt components enabling users to quickly build and deploy…
Cohere Toolkit is a collection of prebuilt components enabling users to quickly build and deploy RAG applications. - cohere-ai/cohere-toolkit
Patching requests for fun and (concurrent) profit
Because life is too short to spam calls to SSLCTXloadverifylocations().
https://blog.borrego.dev/entries/patching-requests-for-fun-and-concurrent-profit.html
Because life is too short to spam calls to SSLCTXloadverifylocations().
https://blog.borrego.dev/entries/patching-requests-for-fun-and-concurrent-profit.html
Agustín Borrego's blog
Patching requests for fun and (concurrent) profit
Because life is too short to spam calls to <code>SSL_CTX_load_verify_locations()</code>.
WebLlama
Llama-3 agents that can browse the web by following instructions and talking to you.
https://github.com/McGill-NLP/webllama
Llama-3 agents that can browse the web by following instructions and talking to you.
https://github.com/McGill-NLP/webllama
GitHub
GitHub - McGill-NLP/webllama: Llama-3 agents that can browse the web by following instructions and talking to you
Llama-3 agents that can browse the web by following instructions and talking to you - McGill-NLP/webllama
TypeIs does what I thought TypeGuard would do in Python
The article discusses the differences between the TypeGuard and TypeIs type annotations in Python. It explains that TypeIs has more intuitive behavior compared to TypeGuard, especially when dealing with union types, and recommends using TypeIs over TypeGuard in most cases.
https://rednafi.com/python/typeguard_vs_typeis/
The article discusses the differences between the TypeGuard and TypeIs type annotations in Python. It explains that TypeIs has more intuitive behavior compared to TypeGuard, especially when dealing with union types, and recommends using TypeIs over TypeGuard in most cases.
https://rednafi.com/python/typeguard_vs_typeis/
Redowan's Reflections
TypeIs does what I thought TypeGuard would do in Python
The handful of times I’ve reached for typing.TypeGuard in Python, I’ve always been
confused by its behavior and ended up ditching it with a # type: ignore comment.
For the uninitiated, TypeGuard allows you to apply custom type narrowing1. For example,
let’s…
confused by its behavior and ended up ditching it with a # type: ignore comment.
For the uninitiated, TypeGuard allows you to apply custom type narrowing1. For example,
let’s…
Doriandarko / maestro
A framework for Claude Opus to intelligently orchestrate subagents.
https://github.com/Doriandarko/maestro
A framework for Claude Opus to intelligently orchestrate subagents.
https://github.com/Doriandarko/maestro
GitHub
GitHub - Doriandarko/maestro: A framework for Claude Opus to intelligently orchestrate subagents.
A framework for Claude Opus to intelligently orchestrate subagents. - Doriandarko/maestro
Sleepsort: Sorting while sleeping
The post introduces the "sleepsort" algorithm, a quirky sorting method that utilizes thread sleep times to sort integers in ascending order. It provides a playful yet insightful exploration of the algorithm's functionality and limitations.
https://animeshchouhan.com/posts/sleepsort
The post introduces the "sleepsort" algorithm, a quirky sorting method that utilizes thread sleep times to sort integers in ascending order. It provides a playful yet insightful exploration of the algorithm's functionality and limitations.
https://animeshchouhan.com/posts/sleepsort
Animeshchouhan
Animesh Chouhan | Sleepsort: Sorting while sleeping
How to Build a Crystal Image Search App with Vector Search
A demonstration of how to build an application to store and query data on crystals and precious stones using Astra DB. Built with RAGStack, this web app leverages the CLIP model to provide multi-modal search to retrieve data on all kinds of crystals.
https://www.datastax.com/blog/building-a-generative-ai-crystal-image-search-app-with-vector-search
A demonstration of how to build an application to store and query data on crystals and precious stones using Astra DB. Built with RAGStack, this web app leverages the CLIP model to provide multi-modal search to retrieve data on all kinds of crystals.
https://www.datastax.com/blog/building-a-generative-ai-crystal-image-search-app-with-vector-search
DataStax
Langflow | No-Code IDE for RAG and Multi-Agent GenAI Apps | DataStax
Simplify RAG and multi-agent AI app development with Langflow’s drag-and-drop IDE. This GUI for LangChain has open-source tools and integrations for fast GenAI development.
TagStudio
A file and photo management application and system.
https://github.com/TagStudioDev/TagStudio
A file and photo management application and system.
https://github.com/TagStudioDev/TagStudio
GitHub
GitHub - TagStudioDev/TagStudio: A User-Focused Photo & File Management System
A User-Focused Photo & File Management System. Contribute to TagStudioDev/TagStudio development by creating an account on GitHub.