A search engine in 80 lines of Python | Alex Molas
Rye: a Hassle-Free Python Experience, Python Packaging Best Practices with some more interesting articles and packages
This is not interview advice: a priority-expiry LRU cache without heaps or trees in Python
If you are preparing for interviews or want to know the nitty-gritty of LRU cache you should read this article. Long but a very good one. Adrian explained stuff amazingly with code & test cases.
# Adrian
A search engine in 80 lines of Python
There are great options for text search like Solr but it’s always fun to build your own search engine not to put it in production but to get a good understanding. Alex Molas did an amazing job of nailing it down. There are great discussions around it also, you can check them here.
# Alex Molas
Many feel frustrated by Python default project and package management solutions due to several great solutions being built. Rye is also trying to solve the same problem instead of building each and everything using great existing solutions like Ruff, etc. The best part is Rye's creator is Armin Ronacher who built other great libraries like Flask, etc.
# Armin Ronacher
Modular Coding in Python: Finally Solve your Import Errors
Have you ever wondered how modules and imports work or your head exploded in solving ModuleNotFoundError or ImportError then you should read this amazing article by Antonis Stellas. Covered many things like when you import something where the interpreter looks first, Relative import, Absolute import and many other things.
# Antonis Stellas
Python Packaging Best Practices
Python is popular because of the great packages/libraries and the people who built them for us. If you also want to build one then you should know the standards and best practices. You should read this article by “mic” to get a basic understanding of them.
# mic
Websockets in Python
When you design a chat application or trading application or something similar to it, WebSockets make sense. If you don’t have any idea then check this article. Gaurav Kumar explained about WebSockets and made a small CLI application example also to get a better understanding.
# Gaurav Kumar
What are some cool f-string tricks that you've learned? : r/learnpython
f strings are amazing. There are so many tricks it holds. If you want to know cool tricks check this Reddit post. I loved it. Check it out who knows you might also love it or you can make it cool by adding cool tricks you know.
Introducing PSF Grants Program Office Hours
If you have doubts regarding the PSF grants program then you should know about the office hours. The office hours will be hosted on the Python Software Foundation Discord once a month at 2-3 PM UTC (9 AM Eastern) on the third Tuesday of the month.
Interesting Packages to explore
dtale - Visualizer for pandas data structures
result - A simple Rust-like Result type for Python 3. Fully type annotated.
numba - Numba is an open-source, NumPy-aware optimizing compiler for Python sponsored by Anaconda, Inc. It uses the LLVM compiler project to generate machine code from Python syntax.
Next Week Python Events
HydPy Feb Meetup
Feb 17, 2024
Inland Empire Python Users Group monthly meeting
Feb 20, 2024
NZPUG-Auckland: The Python Community in 2024
Feb 21, 2024
Django Girls Ho
Feb 23-24, 2024
Prague Python Pizza 2024
Feb 24, 2024