iFetch v2.0: A Python Tool for Bulk iCloud Drive Downloads
Hi everyone! A few months ago I shared **iFetch**, my Python utility for bulk iCloud Drive downloads. Since then I’ve fully refactored it and added powerful new features: modular code, parallel “delta-sync” transfers that only fetch changed chunks, resume-capable downloads with exponential backoff, and structured JSON logging for rock-solid backups and migrations.
# What My Project Does
iFetch v2.0 breaks the logic into clear modules (logger, models, utils, chunker, tracker, downloader, CLI), leverages HTTP Range to patch only changed byte ranges, uses a thread pool for concurrent downloads, and writes detailed JSON logs plus a final summary report.
# Target Audience
Ideal for power users, sysadmins, and developers who need reliable iCloud data recovery, account migrations, or local backups of large directories—especially when Apple’s native tools fall short.
# Comparison
Unlike Apple’s built-in interfaces, iFetch v2.0:
\- **Saves bandwidth** by syncing only what’s changed
\- **Survives network hiccups** with retries & checkpointed resumes
\- **Scales** across multiple CPU cores for bulk transfers
\- **Gives full visibility** via JSON logs and end-of-run reports
# Check it out on GitHub
https://github.com/roshanlam/iFetch
Feedback is welcome! 😊
/r/Python
https://redd.it/1k6ipim
Hi everyone! A few months ago I shared **iFetch**, my Python utility for bulk iCloud Drive downloads. Since then I’ve fully refactored it and added powerful new features: modular code, parallel “delta-sync” transfers that only fetch changed chunks, resume-capable downloads with exponential backoff, and structured JSON logging for rock-solid backups and migrations.
# What My Project Does
iFetch v2.0 breaks the logic into clear modules (logger, models, utils, chunker, tracker, downloader, CLI), leverages HTTP Range to patch only changed byte ranges, uses a thread pool for concurrent downloads, and writes detailed JSON logs plus a final summary report.
# Target Audience
Ideal for power users, sysadmins, and developers who need reliable iCloud data recovery, account migrations, or local backups of large directories—especially when Apple’s native tools fall short.
# Comparison
Unlike Apple’s built-in interfaces, iFetch v2.0:
\- **Saves bandwidth** by syncing only what’s changed
\- **Survives network hiccups** with retries & checkpointed resumes
\- **Scales** across multiple CPU cores for bulk transfers
\- **Gives full visibility** via JSON logs and end-of-run reports
# Check it out on GitHub
https://github.com/roshanlam/iFetch
Feedback is welcome! 😊
/r/Python
https://redd.it/1k6ipim
GitHub
GitHub - roshanlam/iFetch: 🚀 Bulk download your iCloud Drive files and folders with a simple command line tool
🚀 Bulk download your iCloud Drive files and folders with a simple command line tool - roshanlam/iFetch
Will AI Make CBVs Obsolete?
Have you noticed that AI tools (Copilot, Claude Code, Codex, etc.) understand and modify simple, self-contained functions much more reliably than deep class hierarchies?
Function-based views keep all the query logic, rendering steps, and helper calls in one clear place—so AI doesn’t have to hunt through mixins or override chains to figure out what’s happening. AI assistants don’t get bored by a bit of repetitive code, so we don’t lose maintainability when write straightforward functions.
So, do we even need CBVs anymore?
/r/django
https://redd.it/1k6ns3f
Have you noticed that AI tools (Copilot, Claude Code, Codex, etc.) understand and modify simple, self-contained functions much more reliably than deep class hierarchies?
Function-based views keep all the query logic, rendering steps, and helper calls in one clear place—so AI doesn’t have to hunt through mixins or override chains to figure out what’s happening. AI assistants don’t get bored by a bit of repetitive code, so we don’t lose maintainability when write straightforward functions.
So, do we even need CBVs anymore?
/r/django
https://redd.it/1k6ns3f
Reddit
From the django community on Reddit
Explore this post and more from the django community
Dealing with internal chaos due to a new “code efficiency consultant” that’s been hired.
Long story short, mr big bollocks has been hired for a few months and he’s causing chaos and carnage but as with all things corporate, the powers that be aren’t listening.
First of many battles I need to fight is pushing for a proper static code analysis tool to be implemented in our processes. However, the new fancy big pay check consultant is arguing against it.
Anyone got any ideas or anecdotes for me to include in my arguement that will help strengthen my case? Currently, the plan is to just push stuff live with minimal code reviews as “the new process eliminates the need for additional tools and reduces time spent deliberatating completed activities”
In other words, we’re heading down a route of “just ship it and pray it doesn’t break something”
/r/Python
https://redd.it/1k6nfef
Long story short, mr big bollocks has been hired for a few months and he’s causing chaos and carnage but as with all things corporate, the powers that be aren’t listening.
First of many battles I need to fight is pushing for a proper static code analysis tool to be implemented in our processes. However, the new fancy big pay check consultant is arguing against it.
Anyone got any ideas or anecdotes for me to include in my arguement that will help strengthen my case? Currently, the plan is to just push stuff live with minimal code reviews as “the new process eliminates the need for additional tools and reduces time spent deliberatating completed activities”
In other words, we’re heading down a route of “just ship it and pray it doesn’t break something”
/r/Python
https://redd.it/1k6nfef
Reddit
From the Python community on Reddit: Dealing with internal chaos due to a new “code efficiency consultant” that’s been hired.
Posted by LonelyArmpit - 202 votes and 82 comments
Honest Review: Huge Time Saver for my AI Project
I know this might feel like it belongs more on r/indiehackers, but I’m a part-time indie maker building an AI SaaS (a niche analytics tool) using Flask, and I had to share my experience with Blitzship since it’s built on Flask and saved me a ton of time. Hope you all find this useful!Blitzship is a Flask-based boilerplate with auth, Stripe, OpenAI integration, and credit metering pre-configured. I was skeptical, but it got me from zero to a working app in a day. Their site claims it saves 18+ hours, and I’d say that’s spot-on—Stripe webhooks alone saved me 5 hours of pain. It’s a one-time payment (I got the Pro plan for $149 with a $100 discount—heard \~32 spots left), and the few-line deploy on Heroku was ridiculously easy. Their docs are great, even for someone like me with moderate Flask experience. They mention a user landing a paying customer in 48 hours, which is now my goal!That said, it’s not flawless. The Bootstrap UI looks decent but feels generic, so I spent a few hours tweaking it to match my brand’s vibe. Also, you need basic Flask knowledge to navigate it, which was fine for me but might
/r/flask
https://redd.it/1k6m1xd
I know this might feel like it belongs more on r/indiehackers, but I’m a part-time indie maker building an AI SaaS (a niche analytics tool) using Flask, and I had to share my experience with Blitzship since it’s built on Flask and saved me a ton of time. Hope you all find this useful!Blitzship is a Flask-based boilerplate with auth, Stripe, OpenAI integration, and credit metering pre-configured. I was skeptical, but it got me from zero to a working app in a day. Their site claims it saves 18+ hours, and I’d say that’s spot-on—Stripe webhooks alone saved me 5 hours of pain. It’s a one-time payment (I got the Pro plan for $149 with a $100 discount—heard \~32 spots left), and the few-line deploy on Heroku was ridiculously easy. Their docs are great, even for someone like me with moderate Flask experience. They mention a user landing a paying customer in 48 hours, which is now my goal!That said, it’s not flawless. The Bootstrap UI looks decent but feels generic, so I spent a few hours tweaking it to match my brand’s vibe. Also, you need basic Flask knowledge to navigate it, which was fine for me but might
/r/flask
https://redd.it/1k6m1xd
www.blitzship.today
BlitzShip – Sameday Ship your AI SaaS | Blitzship
One‑page AI SaaS boilerplate with payments, credits & docs
How should I teach someone coming from Stata?
I work in analytics, and use Python mainly to write one-time analysis scripts and notebooks. In this context, I'd consider myself very strong in Python. It might also be useful to add I have experience, mostly from school, in around a dozen languages including all the big ones.
Someone at work, who reports to someone lateral to me, has an interest in picking up Python as part of their professional development. While they're able to mostly self-study, I've been asked to lean in to add more personalized support and introduce them to organizational norms (and I'm thrilled to!)
What I'm wondering is: this person did their PhD in Stata so they're already a proficient programmer, but likely would appreciate guidance shifting their syntax and approach to analysis problems. As far as I'm aware Stata is the only language they've used, but I am personally not familiar with it at all. What are the key differences betwen Stata and Python I should know to best support them?
/r/Python
https://redd.it/1k6unrd
I work in analytics, and use Python mainly to write one-time analysis scripts and notebooks. In this context, I'd consider myself very strong in Python. It might also be useful to add I have experience, mostly from school, in around a dozen languages including all the big ones.
Someone at work, who reports to someone lateral to me, has an interest in picking up Python as part of their professional development. While they're able to mostly self-study, I've been asked to lean in to add more personalized support and introduce them to organizational norms (and I'm thrilled to!)
What I'm wondering is: this person did their PhD in Stata so they're already a proficient programmer, but likely would appreciate guidance shifting their syntax and approach to analysis problems. As far as I'm aware Stata is the only language they've used, but I am personally not familiar with it at all. What are the key differences betwen Stata and Python I should know to best support them?
/r/Python
https://redd.it/1k6unrd
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Polars: what is the status of compatibility with other Python packages?
I am thinking of Polars to utilize the multi-core support. But I wonder if Polars is compatible with other packages in the PyData stack, such as scikit-learn and XGboost?
/r/Python
https://redd.it/1k6ppc7
I am thinking of Polars to utilize the multi-core support. But I wonder if Polars is compatible with other packages in the PyData stack, such as scikit-learn and XGboost?
/r/Python
https://redd.it/1k6ppc7
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
I built a Python framework for testing, stealth, and CAPTCHA-bypass
Regular Selenium didn't have all the features I needed (like testing and stealth), so I built a framework around it.
GitHub: https://github.com/seleniumbase/SeleniumBase
I added two different stealth modes along the way:
[UC Mode](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/uc_mode.md) \- (which works by modifying Chromedriver) - First released in 2022.
CDP Mode \- (which works by using the CDP API) - First released in 2024.
The testing components have been around for much longer than that, as the framework integrates with
Both async and non-async formats are supported. (See the full list)
A few stealth examples:
1: Google Search - (Avoids reCAPTCHA) - Uses regular UC Mode.
from seleniumbase import SB
with SB(test=True, uc=True) as sb:
sb.open("https://google.com/ncr")
sb.type('title="Search"', "SeleniumBase GitHub page\n")
sb.click('href*="github.com/seleniumbase/"')
sb.savescreenshottologs() # ./latestlogs/
print(sb.getpagetitle())
2: Indeed Search - (Avoids Cloudflare) - Uses CDP Mode from UC Mode.
from seleniumbase import SB
/r/Python
https://redd.it/1k6wmmh
Regular Selenium didn't have all the features I needed (like testing and stealth), so I built a framework around it.
GitHub: https://github.com/seleniumbase/SeleniumBase
I added two different stealth modes along the way:
[UC Mode](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/uc_mode.md) \- (which works by modifying Chromedriver) - First released in 2022.
CDP Mode \- (which works by using the CDP API) - First released in 2024.
The testing components have been around for much longer than that, as the framework integrates with
pytest as a plugin. (Most examples in the SeleniumBase/examples/ folder still run with pytest, although many of the newer examples for stealth run with raw python.)Both async and non-async formats are supported. (See the full list)
A few stealth examples:
1: Google Search - (Avoids reCAPTCHA) - Uses regular UC Mode.
from seleniumbase import SB
with SB(test=True, uc=True) as sb:
sb.open("https://google.com/ncr")
sb.type('title="Search"', "SeleniumBase GitHub page\n")
sb.click('href*="github.com/seleniumbase/"')
sb.savescreenshottologs() # ./latestlogs/
print(sb.getpagetitle())
2: Indeed Search - (Avoids Cloudflare) - Uses CDP Mode from UC Mode.
from seleniumbase import SB
/r/Python
https://redd.it/1k6wmmh
GitHub
GitHub - seleniumbase/SeleniumBase: Python APIs for web automation, testing, and bypassing bot-detection with ease.
Python APIs for web automation, testing, and bypassing bot-detection with ease. - seleniumbase/SeleniumBase
Visualizing the Lorenz attractor with Python
For this animation I used manim and Euler integration method (with a step of step=0.004 over 10000 iterations) for the ODEs of the Lorenz system
Lorenz Attractor 3D Animation | Chaos Theory Visualized
https://youtu.be/EmwGZE5MVLQ
/r/Python
https://redd.it/1k6pii4
For this animation I used manim and Euler integration method (with a step of step=0.004 over 10000 iterations) for the ODEs of the Lorenz system
Lorenz Attractor 3D Animation | Chaos Theory Visualized
https://youtu.be/EmwGZE5MVLQ
/r/Python
https://redd.it/1k6pii4
YouTube
Lorenz Attractor 3D Animation | Chaos Theory Visualized
Discover the mesmerizing dance of the Lorenz attractor—one of the most iconic illustrations of deterministic chaos and a classic example of non-linear dynamics.
The Lorenz system is basically a set of ordinary differential equations:
𝑥̇ = 10 (𝑦 − 𝑥)
𝑦̇…
The Lorenz system is basically a set of ordinary differential equations:
𝑥̇ = 10 (𝑦 − 𝑥)
𝑦̇…
New Django Admin Panel – ( Dev version)
Hey Django devs 👋
I’ve been working on a new Django Admin Panel that **extends the default Django admin’s functionality** — not replacing it, but enhancing it to better suit real-world backend needs.
It's called **OctopusDash**, and it aims to make managing your data smoother, faster, and more customizable **while staying true to Django’s philosophy**.
https://preview.redd.it/i9kg4nwkyswe1.png?width=1920&format=png&auto=webp&s=36dfa3b80dac01328c8d86a5cadd37389b457c8e
https://preview.redd.it/j61on3xmyswe1.png?width=1920&format=png&auto=webp&s=7352df25107940d00062ef4e3feebbdaf5ee92ea
https://preview.redd.it/jqkrk1xmyswe1.png?width=1920&format=png&auto=webp&s=cfaec92a52958e89ffa1a76f2755a457a4cc4d8d
https://preview.redd.it/ove3jcxmyswe1.png?width=1920&format=png&auto=webp&s=fa8991290b70e8eb94eba089fdfbe8dedc11954d
https://preview.redd.it/u7lskcxmyswe1.png?width=1920&format=png&auto=webp&s=c562a04f1d726f4b5ed8ba333b65473761ffe1f6
https://preview.redd.it/az6lgnxmyswe1.png?width=1920&format=png&auto=webp&s=7aca7dc3a69dcf6943c16ffda61c93c2b85472aa
https://preview.redd.it/5clq9ixmyswe1.png?width=1920&format=png&auto=webp&s=8ac238dc1bc42ab41a4a81cc42d23641a1480318
it comes with custom input types
# What’s already working:
* 🔍 **Advanced filtering UI**
* Boolean fields with toggles
* Date/Time/Datetime filters (From-To)
* Active filters summary (see and remove filters easily)
* Custom search fields
* 🎯 Cleaner and more modern UX
* ⚙️ Custom model admin display with SVG icons, flexible columns
# Coming soon:
* Custom actions registration (bulk operations, moderation tools)
* Website statistics dashboard (traffic, user activity, etc.)
* Pluggable widgets & analytics views
* Multi-app organization + icon
[Dashboard Link](https://github.com/husseinnaeemsec/octopus-dash)
/r/django
https://redd.it/1k6vjxb
Hey Django devs 👋
I’ve been working on a new Django Admin Panel that **extends the default Django admin’s functionality** — not replacing it, but enhancing it to better suit real-world backend needs.
It's called **OctopusDash**, and it aims to make managing your data smoother, faster, and more customizable **while staying true to Django’s philosophy**.
https://preview.redd.it/i9kg4nwkyswe1.png?width=1920&format=png&auto=webp&s=36dfa3b80dac01328c8d86a5cadd37389b457c8e
https://preview.redd.it/j61on3xmyswe1.png?width=1920&format=png&auto=webp&s=7352df25107940d00062ef4e3feebbdaf5ee92ea
https://preview.redd.it/jqkrk1xmyswe1.png?width=1920&format=png&auto=webp&s=cfaec92a52958e89ffa1a76f2755a457a4cc4d8d
https://preview.redd.it/ove3jcxmyswe1.png?width=1920&format=png&auto=webp&s=fa8991290b70e8eb94eba089fdfbe8dedc11954d
https://preview.redd.it/u7lskcxmyswe1.png?width=1920&format=png&auto=webp&s=c562a04f1d726f4b5ed8ba333b65473761ffe1f6
https://preview.redd.it/az6lgnxmyswe1.png?width=1920&format=png&auto=webp&s=7aca7dc3a69dcf6943c16ffda61c93c2b85472aa
https://preview.redd.it/5clq9ixmyswe1.png?width=1920&format=png&auto=webp&s=8ac238dc1bc42ab41a4a81cc42d23641a1480318
it comes with custom input types
# What’s already working:
* 🔍 **Advanced filtering UI**
* Boolean fields with toggles
* Date/Time/Datetime filters (From-To)
* Active filters summary (see and remove filters easily)
* Custom search fields
* 🎯 Cleaner and more modern UX
* ⚙️ Custom model admin display with SVG icons, flexible columns
# Coming soon:
* Custom actions registration (bulk operations, moderation tools)
* Website statistics dashboard (traffic, user activity, etc.)
* Pluggable widgets & analytics views
* Multi-app organization + icon
[Dashboard Link](https://github.com/husseinnaeemsec/octopus-dash)
/r/django
https://redd.it/1k6vjxb
I've created a flask wiki :)
Hey friends!
I just wanted to share a project I’ve been working on for the past few months with my three teammates.
We’ve built a more accessible wiki full of tutorials and helpful resources for Flask development.
It’s a work in progress, and we’re always adding new stuff to make it as useful and long-lasting as possible.
Check it out here: https://flaskwiki.wiki/
Feel free to share your thoughts—or even jump in and contribute if you’d like! :))
Edit: after a lofs of you guy's asked, i made a little discord server. There are almost no living rooms, I'll have to turn it into a real thing as soon as I have 2 minutes ahah
https://discord.gg/jswjGrrK8P
/r/flask
https://redd.it/1k6tv6t
Hey friends!
I just wanted to share a project I’ve been working on for the past few months with my three teammates.
We’ve built a more accessible wiki full of tutorials and helpful resources for Flask development.
It’s a work in progress, and we’re always adding new stuff to make it as useful and long-lasting as possible.
Check it out here: https://flaskwiki.wiki/
Feel free to share your thoughts—or even jump in and contribute if you’d like! :))
Edit: after a lofs of you guy's asked, i made a little discord server. There are almost no living rooms, I'll have to turn it into a real thing as soon as I have 2 minutes ahah
https://discord.gg/jswjGrrK8P
/r/flask
https://redd.it/1k6tv6t
Help with social login
Hi I'm building a saas and I need social login with my DRF backend and Next js client. I cannot for the life of me comprehend the libraries and how the flow works . Right now I'm using simple jwt. So far I've done auth.js for social login in the frontend, I don't know how to get user details like email and username and associate a user with that . Some help would really be appreciated, I've been really spoiler by TokenObtainpairview and Tokenrefreshview and don't know how to implement social login
/r/djangolearning
https://redd.it/1k6qvtp
Hi I'm building a saas and I need social login with my DRF backend and Next js client. I cannot for the life of me comprehend the libraries and how the flow works . Right now I'm using simple jwt. So far I've done auth.js for social login in the frontend, I don't know how to get user details like email and username and associate a user with that . Some help would really be appreciated, I've been really spoiler by TokenObtainpairview and Tokenrefreshview and don't know how to implement social login
/r/djangolearning
https://redd.it/1k6qvtp
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
Just created a Django SaaS Boilerplate
Hey everyone!
I wanted to share my new project with you:
Django SaaS Boilerplate
I built this to save time when starting Django SaaS projects. It has all the basics you need to get going quickly.
If you find it useful, a star ⭐ on GitHub would be awesome. Pull requests are welcome if you want to contribute.
/r/django
https://redd.it/1k7bcht
Hey everyone!
I wanted to share my new project with you:
Django SaaS Boilerplate
I built this to save time when starting Django SaaS projects. It has all the basics you need to get going quickly.
If you find it useful, a star ⭐ on GitHub would be awesome. Pull requests are welcome if you want to contribute.
/r/django
https://redd.it/1k7bcht
GitHub
GitHub - eriktaveras/django-saas-boilerplate: A modern, production-ready Django boilerplate for building SaaS applications with…
A modern, production-ready Django boilerplate for building SaaS applications with HTMX, Tailwind CSS, and Alpine.js. This template provides everything you need to kickstart your next SaaS project w...
Friday Daily Thread: r/Python Meta and Free-Talk Fridays
# Weekly Thread: Meta Discussions and Free Talk Friday 🎙️
Welcome to Free Talk Friday on /r/Python! This is the place to discuss the r/Python community (meta discussions), Python news, projects, or anything else Python-related!
## How it Works:
1. Open Mic: Share your thoughts, questions, or anything you'd like related to Python or the community.
2. Community Pulse: Discuss what you feel is working well or what could be improved in the /r/python community.
3. News & Updates: Keep up-to-date with the latest in Python and share any news you find interesting.
## Guidelines:
All topics should be related to Python or the /r/python community.
Be respectful and follow Reddit's Code of Conduct.
## Example Topics:
1. New Python Release: What do you think about the new features in Python 3.11?
2. Community Events: Any Python meetups or webinars coming up?
3. Learning Resources: Found a great Python tutorial? Share it here!
4. Job Market: How has Python impacted your career?
5. Hot Takes: Got a controversial Python opinion? Let's hear it!
6. Community Ideas: Something you'd like to see us do? tell us.
Let's keep the conversation going. Happy discussing! 🌟
/r/Python
https://redd.it/1k779nd
# Weekly Thread: Meta Discussions and Free Talk Friday 🎙️
Welcome to Free Talk Friday on /r/Python! This is the place to discuss the r/Python community (meta discussions), Python news, projects, or anything else Python-related!
## How it Works:
1. Open Mic: Share your thoughts, questions, or anything you'd like related to Python or the community.
2. Community Pulse: Discuss what you feel is working well or what could be improved in the /r/python community.
3. News & Updates: Keep up-to-date with the latest in Python and share any news you find interesting.
## Guidelines:
All topics should be related to Python or the /r/python community.
Be respectful and follow Reddit's Code of Conduct.
## Example Topics:
1. New Python Release: What do you think about the new features in Python 3.11?
2. Community Events: Any Python meetups or webinars coming up?
3. Learning Resources: Found a great Python tutorial? Share it here!
4. Job Market: How has Python impacted your career?
5. Hot Takes: Got a controversial Python opinion? Let's hear it!
6. Community Ideas: Something you'd like to see us do? tell us.
Let's keep the conversation going. Happy discussing! 🌟
/r/Python
https://redd.it/1k779nd
Redditinc
Reddit Rules
Reddit Rules - Reddit
Thoughts on adding a typing.EnumValues static typing primitive?
I recently had an issue I ran into and had an idea for what I feel would be a really helpful extension to typing, and I wanted to see if anyone else thinks it makes sense.
I was writing a pydantic class with a string field that needs to match one of the values of an Enum.
I could do something like `Literal[*[e.value for e in MyEnum]]`, dynamically unpacking the possible values and putting them into a Literal, but that doesn't work with static type checkers.
Or I could define something separate and static like this:
```
class MyEnum(str, Enum):
FIRST = "first"
SECOND = "second"
type EnumValuesLiteral = Literal["first", "second"]
```
and use `EnumValuesLiteral` as my type hint, but then I don't have a single source of truth, and updating one while forgetting to update the other can cause sneaky, unexpected bugs.
This feels like something that could be a pretty common issue - especially in something like an API where you want to easily map strings in requests/responses to Enums in your Python code, I'm wondering if anyone else has come across it/would want something like that?
EDIT: Forgot to outline how this would work ->
```
from enum import Enum
from typing import
/r/Python
https://redd.it/1k7amvg
I recently had an issue I ran into and had an idea for what I feel would be a really helpful extension to typing, and I wanted to see if anyone else thinks it makes sense.
I was writing a pydantic class with a string field that needs to match one of the values of an Enum.
I could do something like `Literal[*[e.value for e in MyEnum]]`, dynamically unpacking the possible values and putting them into a Literal, but that doesn't work with static type checkers.
Or I could define something separate and static like this:
```
class MyEnum(str, Enum):
FIRST = "first"
SECOND = "second"
type EnumValuesLiteral = Literal["first", "second"]
```
and use `EnumValuesLiteral` as my type hint, but then I don't have a single source of truth, and updating one while forgetting to update the other can cause sneaky, unexpected bugs.
This feels like something that could be a pretty common issue - especially in something like an API where you want to easily map strings in requests/responses to Enums in your Python code, I'm wondering if anyone else has come across it/would want something like that?
EDIT: Forgot to outline how this would work ->
```
from enum import Enum
from typing import
/r/Python
https://redd.it/1k7amvg
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Some Free Python Tools I Built for Finding Company Info (CEO, Email, Phone, Domain)
Hey developers who works in lead generation field!
Anyone else tired of manually digging for contact info? I built some simple Python command-line tools to try and speed things up a bit. They're free and open-source.
What they do:
* **CEO-Finder:** Feed it a company name/domain, it uses web search and AI (GPT, Gemini, etc.) to find the CEO.
* **Email-Finder:** Tries to find emails for a company/contact and filters out common junk domains.
* **Phone-Finder:** Scans search results for potential phone numbers.
* **Domain-Finder:** Helps find the actual official website for a company name.
* **(Bonus) Ultimate-Scraper:** A more heavy-duty scraper if you need to pull content from tougher websites.
They use SearXNG (so you control the search source) and are pretty straightforward to run from the terminal.
Grab them from my GitHub if you want to give them a spin:
[**https://github.com/Aboodseada1**](https://www.google.com/url?sa=E&q=https%3A%2F%2Fgithub.com%2FAboodseada1)
Hope they save someone some time! Let me know if they work for you or if you hit any snags.
Happy prospecting!
/r/Python
https://redd.it/1k7gx2e
Hey developers who works in lead generation field!
Anyone else tired of manually digging for contact info? I built some simple Python command-line tools to try and speed things up a bit. They're free and open-source.
What they do:
* **CEO-Finder:** Feed it a company name/domain, it uses web search and AI (GPT, Gemini, etc.) to find the CEO.
* **Email-Finder:** Tries to find emails for a company/contact and filters out common junk domains.
* **Phone-Finder:** Scans search results for potential phone numbers.
* **Domain-Finder:** Helps find the actual official website for a company name.
* **(Bonus) Ultimate-Scraper:** A more heavy-duty scraper if you need to pull content from tougher websites.
They use SearXNG (so you control the search source) and are pretty straightforward to run from the terminal.
Grab them from my GitHub if you want to give them a spin:
[**https://github.com/Aboodseada1**](https://www.google.com/url?sa=E&q=https%3A%2F%2Fgithub.com%2FAboodseada1)
Hope they save someone some time! Let me know if they work for you or if you hit any snags.
Happy prospecting!
/r/Python
https://redd.it/1k7gx2e
What are your experiences with using Cython or native code (C/Rust) to speed up Python?
I'm looking for concrete examples of where you've used tools like Cython, C extensions, or Rust (e.g., pyo3) to improve performance in Python code.
* What was the specific performance issue or bottleneck?
* What tool did you choose and why?
* What kind of speedup did you observe?
* How was the integration process—setup, debugging, maintenance?
* In hindsight, would you do it the same way again?
Interested in actual experiences—what worked, what didn’t, and what trade-offs you encountered.
/r/Python
https://redd.it/1k7k2tn
I'm looking for concrete examples of where you've used tools like Cython, C extensions, or Rust (e.g., pyo3) to improve performance in Python code.
* What was the specific performance issue or bottleneck?
* What tool did you choose and why?
* What kind of speedup did you observe?
* How was the integration process—setup, debugging, maintenance?
* In hindsight, would you do it the same way again?
Interested in actual experiences—what worked, what didn’t, and what trade-offs you encountered.
/r/Python
https://redd.it/1k7k2tn
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Implementing Partial String Matching Leveraging SQL's LIKE Operator Wildcard
Hey guys.
I recently worked on adding a search feature to a Flask app and discovered a neat way to handle partial string matching using SQL's LIKE operator with wildcards. If you’re building a search function where users can find results by typing just part of a term, this might be useful, so I wanted to share!
The trick is to use a pattern like
For example, if a user searches for "book", it’ll match "notebook", "bookstore", or "mybook".Here’s how to implemente using SQLAlchemy in a Flask view:
results = Table.query.filter(Table.column.like('%' + searchterm + '%')).all()
This query fetches all records from Table where column contains the search\term anywhere in its value. It’s a simple, effective way to make your search feature more flexible and user-friendly.
/r/flask
https://redd.it/1k7l3ji
Hey guys.
I recently worked on adding a search feature to a Flask app and discovered a neat way to handle partial string matching using SQL's LIKE operator with wildcards. If you’re building a search function where users can find results by typing just part of a term, this might be useful, so I wanted to share!
The trick is to use a pattern like
'%' + search_term + '%' in your query. The % symbols are SQL wildcards: one at the start matches any characters before the search term, and one at the end matches any characters after. For example, if a user searches for "book", it’ll match "notebook", "bookstore", or "mybook".Here’s how to implemente using SQLAlchemy in a Flask view:
results = Table.query.filter(Table.column.like('%' + searchterm + '%')).all()
This query fetches all records from Table where column contains the search\term anywhere in its value. It’s a simple, effective way to make your search feature more flexible and user-friendly.
/r/flask
https://redd.it/1k7l3ji
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
My own programming language
I made my own interpreted programming language in Python.
Its called Pear, and i somehow got it to support library's that are easy to create.
You can check it out here: Pear.
I desperately need feedback, so please go check it out.
/r/Python
https://redd.it/1k7ogiz
I made my own interpreted programming language in Python.
Its called Pear, and i somehow got it to support library's that are easy to create.
You can check it out here: Pear.
I desperately need feedback, so please go check it out.
/r/Python
https://redd.it/1k7ogiz
GitHub
GitHub - pearlanguage/Pear: The Pear programming language, coded in python.
The Pear programming language, coded in python. Contribute to pearlanguage/Pear development by creating an account on GitHub.