r/Python • • 7h ago

Daily Thread Sunday Daily Thread: What's everyone working on this week?

Weekly Thread: What's Everyone Working On This Week? πŸ› οΈ

Hello r/Python! It's time to share what you've been working on! Whether it's a work-in-progress, a completed masterpiece, or just a rough idea, let us know what you're up to!

How it Works:

  1. Show & Tell: Share your current projects, completed works, or future ideas.

  2. Discuss: Get feedback, find collaborators, or just chat about your project.

  3. Inspire: Your project might inspire someone else, just as you might get inspired here.

Guidelines:

  • Feel free to include as many details as you'd like. Code snippets, screenshots, and links are all welcome.

  • Whether it's your job, your hobby, or your passion project, all Python-related work is welcome here.

Example Shares:

  1. Machine Learning Model: Working on a ML model to predict stock prices. Just cracked a 90% accuracy rate!

  2. Web Scraping: Built a script to scrape and analyze news articles. It's helped me understand media bias better.

  3. Automation: Automated my home lighting with Python and Raspberry Pi. My life has never been easier!

Let's build and grow together! Share your journey and learn from others. Happy coding! 🌟

9 Upvotes

4 comments sorted by

1

u/Fastpast93 7h ago

I’m working on my own architecture, unrelated to python

1

u/_Deathspotp 5h ago edited 5h ago

Working with a team to create a cross host dependency mapper with a visual element πŸ™πŸΎ

The general idea is that you take an old system that may be running some service on your network, this system may have little to no documentation and your goal is to update, make changes, or perform reconnaissance on the machine without breaking the system. To avoid spending so much time documenting the system, we parse together services, their dependencies, and how they connect to their respective hosts. We’re finishing up our MVP today.

1

u/lmcinnes 4h ago

I'm working on a lot of performance optimization for my existing approximate nearest neighbour search library PyNNDescent. Approximate nearest neighbour search is the problem of efficiently finding close vectors to a query vector from a large training set. These days that mostly means finding embedding vectors close to a query, which power semantic search and RAG, among other things.

The challenge of doing this as efficiently as possible is a fun one, requiring both algorithm design, and thinking hard about code optimization and potential hardware it will run on. PyNNDescent is a pure Python library, leveraging Numba for acceleration. Older versions performed respectably on the Vector Index Benchmark for Embeddings (VIBE), despite the competition mostly being very optimized C++ code (with python wrappers). I've been working on adding quantization tricks, and wringing more performance out of the algorithms I use in PyNNDescent, and recent results have been very promising -- on my internal benchmarking against the current VIBE leaders PyNNDescent outperforms them on almost all the VIBE datasets, and is only a little behind on one.

So, if people tell you Python is slow .... it doesn't have to be. With the right algorithms, and the right tools (like Numba), and a bit of work, it can end up outperforming highly tuned C++.

1

u/ryanstephendavis 3h ago

Gong to spend all this next week hooking up RBAC into a FastAPI backend (+alembic,sqlalchemy, PG). Any good lessons in what to do or not to do would be appreciated.