PythonHub
Kanalga Telegram’da o‘tish
Human-curated Python news, projects, articles & tools. https://pythonhub.dev/
Ko'proq ko'rsatish2 655
Obunachilar
Ma'lumot yo'q24 soatlar
+37 kun
+1130 kun
Postlar arxiv
2 657
TIL: Using SQLModel Asynchronously with FastAPI (and Air) with PostgreSQL
This post explains how to leverage SQLModel with FastAPI and PostgreSQL to enable fully asynchronous database operations, improving scalability and efficiency for concurrent web applications. Key steps include setting up async database engines and sessions, using dependency injection in FastAPI, and aligning everything with non-blocking patterns.
https://daniel.feldroy.com/posts/til-2025-08-using-sqlmodel-asynchronously-with-fastapi-and-air-with-postgresql
2 657
oLLM
oLLM is a lightweight Python library for large-context LLM inference, built on top of Huggingface Transformers and PyTorch. It enables running models like Llama-3.1-8B-Instruct on 100k context using ~$200 consumer GPU with 8GB VRAM. Example performance: ~20 min for the first token, ~17s per subsequent token.
https://github.com/Mega4alik/ollm
2 657
GENIE
Experience near-instantaneous speech synthesis on your CPU.
https://github.com/High-Logic/Genie
2 657
LEANN
RAG on Everything with LEANN. Enjoy 97% storage savings while running a fast, accurate, and 100% private RAG application on your personal device.
https://github.com/yichuan-w/LEANN
2 657
DiffMem
Git Based Memory Storage for Conversational AI Agent.
https://github.com/Growth-Kinetics/DiffMem
2 657
How to Write Great Unit Tests in Python
The video teaches how to write effective and maintainable unit tests in Python, focusing on practical techniques such as mocking, monkey patching, fixtures, and parametrization with pytest. It uses a realistic WeatherService example to demonstrate these concepts, emphasizing best practices for robust testing and improving code quality in production systems.
https://www.youtube.com/watch?v=EIV_ixKGPmc
2 657
From GPT-2 to gpt-oss: Analyzing the Architectural Advances
The article analyzes the architectural advances from GPT-2 to OpenAI’s new open-weight gpt-oss models, highlighting innovations like Mixture-of-Experts, grouped query attention, and sliding-window layers for efficiency and scaling. He compares these changes with models like Qwen3 and notes how gpt-oss is optimized for reasoning, tool use, and agentic workflows, while remaining memory-eff...
https://magazine.sebastianraschka.com/p/from-gpt-2-to-gpt-oss-analyzing-the
2 657
AI Agents for Beginners
11 Lessons to Get Started Building AI Agents.
https://github.com/microsoft/ai-agents-for-beginners
2 657
lemonade
Lemonade helps users run local LLMs with the highest performance by configuring state-of-the-art inference engines for their NPUs and GPUs.
https://github.com/lemonade-sdk/lemonade
2 657
How to Build an Advanced AI Agent with Search (LangGraph, Python, Bright Data & More)
The video demonstrates building a multi-step, scalable AI research agent in Python using LangGraph. The agent can pull live search data from sources like Google, Bing, and Reddit, aggregate and analyze the information, and provide comprehensive answers, showcasing advanced Python coding, complex architecture, and effective use of APIs like Bright Data and OpenAI GPT. The tutorial covers ...
https://www.youtube.com/watch?v=cUC-hyjpNxk
2 657
Weaponizing image scaling against production AI systems
Attackers can hide malicious prompts in images that become visible only after being downscaled—tricking AI systems like Gemini CLI and Vertex AI Studio into executing hidden instructions. Trail of Bits demonstrates these “image scaling” exploits and introduces Anamorpher, an open-source tool to craft and test such attacks, while also proposing defenses.
https://blog.trailofbits.com/2025/08/21/weaponizing-image-scaling-against-production-ai-systems/
2 657
How to migrate from pip-tools to uv
A guide to migrating from pip-tools to uv in Python projects, focusing on preserving pinned versions.
https://www.caktusgroup.com/blog/2025/08/25/migrate-pip-tools-to-uv/
2 657
Python has had async for 10 years – why isn't it more popular?
https://tonybaloney.github.io/posts/why-isnt-python-async-more-popular.html
2 657
Pro-Tip – Sometimes LFU > LRU
This article discusses how AI/web crawlers create excessive sessions that push legitimate user sessions out of cache, degrading user experience on sites like e-commerce platforms. It suggests configuring Redis with an LFU (Least Frequently Used) eviction policy, rather than the common LRU (Least Recently Used), to preferentially keep frequently used sessions (like those of real users) wh...
https://www.revsys.com/tidbits/sometimes-lfu-lru/
2 657
MCPMark
MCP Servers are shaping the future of software. MCPMark is a comprehensive, stress-testing benchmark and a collection of diverse, verifiable tasks designed to evaluate model capabilities in real-world MCP use.
https://github.com/eval-sys/mcpmark
2 657
Preventing Domain Resurrection Attacks
PyPI has implemented new security measures to prevent domain resurrection attacks, where expired domains are re-registered by attackers to hijack accounts via password resets. Since June 2025, PyPI has unverified over 1,800 email addresses tied to expiring domains, blocking these addresses from being used for account recovery and enhancing account security.
https://blog.pypi.org/posts/2025-08-18-preventing-domain-resurrections/
2 657
We Needed Better Cloud Storage for Python so We Built Obstore
Obstore is a fast, lightweight Python library for working with object storage—backed by Rust and built for clarity, speed, and interoperability. It’s already being used across cloud-native geospatial tools and supports common workflows out of the box.
https://developmentseed.org/blog/2025-08-01-obstore/
2 657
monkeSearch
Fully local, temporally aware natural language file search on your pc! even without a GPU. find relevant files using natural language in less than 1 second.
https://github.com/monkesearch/monkeSearch
