r/Python • u/Trick_Client_1000 • 6m ago
News Automatización de tareas
Buenas
Os presento el proyecto que he realizado para que le echéis un ojo. Posiblemente necesitéis de mis servicios.
https://easydoc-technology.com/automatizacion/
Saludos.
r/Python • u/AutoModerator • 12h ago
Welcome to our weekly Project Ideas thread! Whether you're a newbie looking for a first project or an expert seeking a new challenge, this is the place for you.
Difficulty: Intermediate
Tech Stack: Python, NLP, Flask/FastAPI/Litestar
Description: Create a chatbot that can answer FAQs for a website.
Resources: Building a Chatbot with Python
Difficulty: Beginner
Tech Stack: HTML, CSS, JavaScript, API
Description: Build a dashboard that displays real-time weather information using a weather API.
Resources: Weather API Tutorial
Difficulty: Beginner
Tech Stack: Python, File I/O
Description: Create a script that organizes files in a directory into sub-folders based on file type.
Resources: Automate the Boring Stuff: Organizing Files
Let's help each other grow. Happy coding! 🌟
r/Python • u/Trick_Client_1000 • 6m ago
Buenas
Os presento el proyecto que he realizado para que le echéis un ojo. Posiblemente necesitéis de mis servicios.
https://easydoc-technology.com/automatizacion/
Saludos.
r/Python • u/Ninteendo19d0 • 1d ago
The Steering Council has decided to accept PEP 824 (on the condition that the ??= operator is removed, leaving only the ?? operator in the proposal).
Old: lst = [] if lst is None else lst
New: lst = lst ?? []
Discussion thread: https://discuss.python.org/t/pep-824-none-coalescing-operators/109161/93
The decision on PEP 823 – None-aware access operators is still pending.
r/Python • u/AutoModerator • 1d ago
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!
Let's build and grow together! Share your journey and learn from others. Happy coding! 🌟
r/Python • u/AutoModerator • 2d ago
Stumbled upon a useful Python resource? Or are you looking for a guide on a specific topic? Welcome to the Resource Request and Sharing thread!
Share the knowledge, enrich the community. Happy learning! 🌟
r/Python • u/JanEric1 • 2d ago
https://peps.python.org/pep-0671/
The PEP was originally proposed in October 2021 but didnt get much traction. Through some discussions on the python discuss the author picked it up again and reproposed it for 3.17
It proposes a new syntax argument => late_bound_default()
def add_item(item, target=>[]):
def bisect_right(a, x, lo=0, hi=>len(a), *, key=None):for late binding of argument defaults. This would allow avoiding the common mutable default argument trap and would allow for defaults to refer to previous arguments as seen in the biset_right example above.
Discussion can be found here: https://discuss.python.org/t/pep-671-syntax-for-late-bound-function-argument-defaults/110297
Note: I am not the PEP author
r/Python • u/kona_ackley • 3d ago
Earlier this year, I completed the collection of 3 * 123 = 369 coding problems in Python used in the TMU Chang School courses CCPS 109 and beyond. After that I decided to move on to creating other things.
109 Python Problems for CCPS 109
However, with recent advances in AI and LLM's, I wanted to test the current capability of Claude Opus by asking it to first read through the earlier problem collection, and then create new problems trying to imitate my style in writing, problem creation and coding. With some feedback back and forth, I think it did better job being me than I did myself.
The resulting collection of 109 new coding problems, the specs and unit mass testers for each function, is now posted on the project GitHub repo, as Fourth Problem Collection. Hopefully Python students of all levels will find something interesting in this collection.
r/Python • u/niRmana_dev • 3d ago
I'm curious about what Python libraries experienced developers consider essential for backend development.
I'm currently exploring FastAPI and learning more about the Python ecosystem. Beyond the usual frameworks, what libraries do you find yourself using regularly in real-world projects?
I'd love to discover some underrated libraries that are genuinely useful in production projects, not just popular ones.
What are your must-have Python libraries, and why?
r/Python • u/AutoModerator • 3d ago
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!
Let's keep the conversation going. Happy discussing! 🌟
r/Python • u/AutoModerator • 4d ago
Welcome to this week's discussion on Python in the professional world! This is your spot to talk about job hunting, career growth, and educational resources in Python. Please note, this thread is not for recruitment.
Let's help each other grow in our careers and education. Happy discussing! 🌟
r/Python • u/AffectionateYak7537 • 4d ago
Type a random python code in the comments to mess around for a flight that’s coming up soon and I really wanna mess a round with some python cod
r/Python • u/quiet_stacktrace • 4d ago
i keep going back and forth between a .env file loaded with python-dotenv, a pydantic settings class, and plain os.environ lookups. for a small project with one dev and one prod environment, what has actually held up for you? mostly curious how you deal with secrets and defaults without it turning into a mess after a year.
r/Python • u/Nausicaa23Pencil • 4d ago
I've been adding strict=True to quite a few zip() calls in our codebase and ran into a subtle distinction that's worth keeping in mind.
Consider something like:
for user, email in zip(users, emails, strict=True):
send_email(user, email)If the iterables have different lengths, Python will raise a ValueError. But by that point you might have already sent hundreds of emails.
Obviously this is consistent with how lazy iteration works. Still, I think the name "strict" can give a slightly misleading sense of safety when you're reading code that performs side effects.
For small inputs, materializing the zipped pairs before processing them solves this particular issue. For large streams, things get more interesting.
I've started distinguishing between validation that happens before processing and validation that happens during processing when reviewing iterator-heavy Python code.
Are there other standard library features where this distinction has caught you out?
r/Python • u/Pharaoh_Bellhop8 • 5d ago
I inherited a bunch of internal Python scripts at work last year. Most of them were perfectly readable, did their job and had been running for years without any major issues.
The annoying part was figuring out what they'd actually done.
One would print "Done" whether it processed 400 files or found nothing to process. Another would silently skip invalid records. To understand the result of a successful run I sometimes had to read the source code.
I've since developed a habit of ending even fairly trivial scripts with a small summary of what was found, what changed, what was skipped and why.
It's probably the smallest change I've made to my coding habits with the biggest practical payoff. Especially when revisiting something I wrote six months ago.
I think we spend a disproportionate amount of time making Python code pleasant for other developers to read compared to making Python programs pleasant for other people to actually run.
r/Python • u/memameola • 6d ago
Hey r/Python! I wanted a way to automatically turn long YouTube videos into vertical 9:16 clips without paying for LLM APIs or running heavy PyTorch models on an old laptop.
How Max Clipper works under the hood:
- Explainable Clip Picking: Uses deterministic DSP and statistical heuristics (hook, audio energy, pacing, heatmap) instead of black-box LLMs—same input always gives the exact same output.
- Low-Spec Optimization: Built and tested on a 4th-gen Intel i5 with 8GB RAM and no GPU. Uses a global render lock to prevent FFmpeg CPU starvation, stall-based timeouts, and -preset ultrafast on <= 4 cores.
- Packaging: One-command installers for Linux/macOS/Windows plus Docker support.
Source Code (MIT License): https://github.com/4hmed1/MaxClipper
Would love code review or feedback on the clip-scoring heuristics!
r/Python • u/alexis_placet • 6d ago
Hi,
I'm sharing a blogpost about how we are now able to use PyTorch or Jax in your notebook in the browser ! : https://notebook.link/blog/train-in-your-tab/
Here some examples (be sure to use a WebGPU compatible browser):
r/Python • u/Ishannaik • 6d ago
I ship a desktop app with a python backend frozen with pyinstaller, currently unsigned. Two problems on Windows:
I'm about to pay for signing, and the part I can't find a straight answer on is the pyinstaller side:
If you've been through this, what did your build pipeline end up looking like?
r/Python • u/AutoModerator • 6d ago
Dive deep into Python with our Advanced Questions thread! This space is reserved for questions about more advanced Python topics, frameworks, and best practices.
Let's deepen our Python knowledge together. Happy coding! 🌟
r/Python • u/AutoModerator • 7d ago
Welcome to our weekly Project Ideas thread! Whether you're a newbie looking for a first project or an expert seeking a new challenge, this is the place for you.
Difficulty: Intermediate
Tech Stack: Python, NLP, Flask/FastAPI/Litestar
Description: Create a chatbot that can answer FAQs for a website.
Resources: Building a Chatbot with Python
Difficulty: Beginner
Tech Stack: HTML, CSS, JavaScript, API
Description: Build a dashboard that displays real-time weather information using a weather API.
Resources: Weather API Tutorial
Difficulty: Beginner
Tech Stack: Python, File I/O
Description: Create a script that organizes files in a directory into sub-folders based on file type.
Resources: Automate the Boring Stuff: Organizing Files
Let's help each other grow. Happy coding! 🌟
r/Python • u/AutoModerator • 8d ago
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!
Let's build and grow together! Share your journey and learn from others. Happy coding! 🌟
r/Python • u/AutoModerator • 9d ago
Stumbled upon a useful Python resource? Or are you looking for a guide on a specific topic? Welcome to the Resource Request and Sharing thread!
Share the knowledge, enrich the community. Happy learning! 🌟
r/Python • u/Beginning-Fruit-1397 • 9d ago
Each time l see this sub it's about wathever package I don't use that got compromised which I couldn't care less about. Now that all code showcase are banned, the new ways for sloppers to feel seen is report security issues. At least the former was still related to code, cybersecurity is another thing completely. I'd rathet see slop code showcases than a boring report about x package hacked
r/Python • u/Business-Feedback635 • 10d ago
Python runs any line that starts with import in a .pth file in site-packages, every time it starts. You don't have to import the package. This year, the malicious releases of litellm (March and October) and agent-framework (November) all used a .pth file, so installing them was enough to run the credential stealer.
I wanted to see how many ordinary packages use the same feature. I took the latest release of 354,763 PyPI projects, found every .pth file with an import line, downloaded them and read them. The results:
.pth file that runs on every Python start.-nspkg.pth).urllib3 folder at startup.import lines (PEP 829), and 3.18 will ignore them. Only 13 of the 244 packages already ship the replacement .start file.The post includes a command that lists the .pth files with import lines in your own environment, and a table of what the 15 most downloaded ones do: https://py-code.org/blog/python-pth-files-pypi/
r/Python • u/AutoModerator • 10d ago
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!
Let's keep the conversation going. Happy discussing! 🌟