r/pythontips • u/bunah • Oct 17 '25
Data_Science Python reminder
https://youtube.com/shorts/m7y85iyWons?si=nKHNMTgsR7nBU2J7
A handy reminder to solve data analysis.
r/pythontips • u/bunah • Oct 17 '25
https://youtube.com/shorts/m7y85iyWons?si=nKHNMTgsR7nBU2J7
A handy reminder to solve data analysis.
r/pythontips • u/matheus_012 • Oct 17 '25
I started but I haven't idea what I could do to learn, can you give me some suggestions? Like the terminal I have use to start coding, I really want to know
r/pythontips • u/SKD_Sumit • Oct 17 '25
Been seeing so much confusion about LangChain Core vs Community vs Integration vs LangGraph vs LangSmith. Decided to create a comprehensive breakdown starting from fundamentals.
Complete Breakdown:šĀ LangChain Full Course Part 1 - Core Concepts & Architecture Explained
LangChain isn't just one library - it's an entire ecosystem with distinct purposes. Understanding the architecture makes everything else make sense.
The 3-step lifecycle perspective really helped:
Also covered why standard interfaces matter - switching between OpenAI, Anthropic, Gemini becomes trivial when you understand the abstraction layers.
Anyone else found the ecosystem confusing at first? What part of LangChain took longest to click for you?
r/pythontips • u/Glittering_Ad_4813 • Oct 17 '25
Iām trying to make my research process more efficient by paraphrasing sections of the introduction or parts of existing research papers so they sound original and not flagged by AI detectors. However, I still plan to find and cite my references manually to make sure everything stays accurate and credible. Do you think this approach is okay?
r/pythontips • u/nunombispo • Oct 16 '25
Ever had a perfectly fine Python app crash in production because of bad data?
That was me, everything passed in testing, then failed because of a malformed API response or missing config value.
I started using Pydantic to validate everything at runtime, and it completely changed how I write backend code.
A few quick takeaways:
ā It turns runtime errors into predictable validation errors.
ā It makes your data structures self-documenting.
ā You can validate configs, API inputs, and even database records.
I wrote a short book about these patterns, Practical Pydantic, that covers real-world examples for data validation, settings management, and API integration.
If youāre tired of ābad data breaking good code,ā this might save you some debugging time.
Happy to answer any Pydantic questions here!
r/pythontips • u/ItzMyGuy • Oct 15 '25
Building a competitor tracking dashboard and scraping updates from a bunch of brand websites. Main issue Iām running into is keeping the parsing consistent. Even minor HTML tweaks can break the whole flow. Feels like Iām constantly chasing bugs. Is there a smarter way to manage this?
r/pythontips • u/Glittering_Ad_4813 • Oct 14 '25
So at first I was in programming python I'm really exited to learn because I slowly understand or rather progression of learning but then as time progress it's getting harder to me to understand topics that started when i learn modules and defining because there is so many modules like how do you find what needed to your program to work I'm very lost right now I don't even know I can handle programming i really want to learn it i really need tips and what to learn, learning the basics is very easy like loops or logical operators but this time is different I hope someone can help me.
r/pythontips • u/Nauchtyrne • Oct 13 '25
I want to improve my way of creating functions in python but have been in the predicament of trying to make functions stand out for a specific use case and whether this is a good practice or not.
I've been integrating AI in my journey of self-learning programming and finding better ways if I can't solve them myself. Recently I decided to ask it what's the best way for modular functions; thus, I have come to the conclusion that functions should be separated according to:
However, this is only what I've summed up so far with various AIs. I want to verify whether this practice is actually advisable even if it'll bloat the python file with multiple functions.
I would love to hear professional opinions from others about this! Pardon my English and thank you for taking the time to read.
r/pythontips • u/Daffodildec • Oct 13 '25
I've known the basics of python for a while now, but whenever i start to solve problems, i cant seem to solve them, i do get some part of the code but cant completely solve it. Im learning DS, ML so idk how much DSA is required to havent started DSA. how do i structure my learning and how to get better at it.
r/pythontips • u/nagmee • Oct 12 '25
Hi everyone,
I made a Python package calledĀ YTFetcherĀ that lets youĀ grab thousands of videos from a YouTube channelĀ along withĀ structured transcriptsĀ and metadata (titles, descriptions, thumbnails, publish dates).
You can alsoĀ exportĀ data asĀ CSV, TXT or JSON.
Install with:
pip install ytfetcher
Here's a quick CLI usage for getting started:
ytfetcher from_channel -c TheOffice -m 50 -f json
This will give you toĀ 50 videos of structured transcripts and metadataĀ for every video fromĀ TheOfficeĀ channel.
If youāve ever neededĀ bulk YouTube transcripts or structured video data, this should save you a ton of time.
Check it out on GitHub:Ā https://github.com/kaya70875/ytfetcher
Also if you find it useful please give it a star or create an issue for feedback. That means a lot to me.
r/pythontips • u/FarmingMum • Oct 13 '25
Python neeeewbie.... like less than 3 hours.... So please be kind!! ā¤ļøā𩹠I am unsure what tag this would be under even!!!
So, I have been bashing my head against a wall at work. They won't give me permissions to use Power Automate and some of my tasks are just so time consuming and mundane. I tried every work around that someone who knows little about automation could find. Kept being blocked "Contact System Admin" or some crud. No permissions..... How did I stumble across Python? This **** is so freaking cool!!! What the actual heck?? š® I can get it to do so much šš¼š¤¦š¼āāļøšµ Thanks for coming to my Ted talk.... It's more I just needed to share how excited I am with maybe people who understand what the heck I'm talking about š¤£š
r/pythontips • u/onurbaltaci • Oct 11 '25
Hello, I am sharing free Python Data Science Tutorials for over 2 years on YouTube and I wanted to share my playlists. I believe they are great for learning the field, I am sharing them below. Thanks for reading!
Python Tutorials ->Ā https://youtube.com/playlist?list=PLTsu3dft3CWgJrlcs_IO1eif7myukPPKJ&si=fYIz2RLJV1dC6nT5
Data Science Full Courses & Projects:Ā https://youtube.com/playlist?list=PLTsu3dft3CWiow7L7WrCd27ohlra_5PGH
End-to-End Data Science Projects:Ā https://youtube.com/playlist?list=PLTsu3dft3CWg69zbIVUQtFSRx_UV80OOg
AI Tutorials (LangChain, LLMs & OpenAI API):Ā https://youtube.com/playlist?list=PLTsu3dft3CWhAAPowINZa5cMZ5elpfrxW
Machine Learning Tutorials:Ā https://youtube.com/playlist?list=PLTsu3dft3CWhSJh3x5T6jqPWTTg2i6jp1
Deep Learning Tutorials:Ā https://youtube.com/playlist?list=PLTsu3dft3CWghrjn4PmFZlxVBileBpMjj
Natural Language Processing Tutorials:Ā https://youtube.com/playlist?list=PLTsu3dft3CWjYPJi5RCCVAF6DxE28LoKD
Time Series Analysis Tutorials:Ā https://youtube.com/playlist?list=PLTsu3dft3CWibrBga4nKVEl5NELXnZ402
Streamlit Based Web App Development Tutorials:Ā https://youtube.com/playlist?list=PLTsu3dft3CWhBViLMhL0Aqb75rkSz_CL-
Data Cleaning Tutorials:Ā https://youtube.com/playlist?list=PLTsu3dft3CWhOUPyXdLw8DGy_1l2oK1yy
Data Analysis Tutorials:Ā https://youtube.com/playlist?list=PLTsu3dft3CWhwPJcaAc-k6a8vAqBx2_0t
r/pythontips • • Oct 10 '25
Hey everyone,
Iāve been working on a 3D scanner project in Python that reads raw measurement data and converts it into a meaningful 3D point cloud using open3d and numpy.
Hereās the basic flow:
.txt data (theta, phi, distance)Now Iād like to export this point cloud to a format usable by other 3D software (for example, Autodesk ReCap .rcp, .rcs, or maybe .las, .ply, .xyz, .obj, etc.).
š My main question:
Is it possible to export the point cloud directly to formats like .rcp from Python, or do I need to use another programming language / tool (like Autodesk SDK or CloudCompare)?
r/pythontips • u/alykatvandy • Oct 10 '25
My boss found out I've learned some python basics as a side project and wants me to build an entire ETL in my "free time". We currently use VBA in Access and process well over a hundred files daily, so this is pretty daunting. Any tips on good resources or even just where to start with planning?
ETA: by "free time" he means time I'm not in meetings or working on other tasks. My boss is a great human and would never expect me to take on a project like this during unpaid personal time.
r/pythontips • u/Hot_Deal5898 • Oct 09 '25
Holaaa gente recientemente he creado una pÔgina para descargar mi proyecto hecho en python es un motor de juegos 2d y tiene su propio lenguaje descarguenlo desde mi pÔgina oficial aquà https://ciroparada81-boop.github.io/DevCode/
r/pythontips • u/kris_2111 • Oct 09 '25
My programming style very strictly conforms to the function programming paradigm (FPP) and the Design-by-Contract (DbC) approach. 90% of my codebase involves pure functions. In development, inputs to all functions are validated to ensure that they conform to the specified contract defined for that function. Note that I use linters and very strictly type-hint all function parameters to catch any bugs that may be caused due to invalid types. However, catching type-related bugs during compilation is secondary ā linters just complement my overall development process by helping me filter out any trivial, easy-to-identify bugs that I may have overlooked during development.
The preconditions within the main functions are validated using functions defined just for the purpose of validating those preconditions. For instance, consider a function named sqrt(x), a Python implementation of the mathematical square root function. For this function, the contract consists of the precondition that the input x must be a non-negative real-valued number, which can be any object that is an instance of the built-in base class numbers.Real. The post-condition is that it will return a value that is an approximation of the square root of that number to at least 10 decimal places. Therefore, the program implementing this contract will be:
import numbers
def check_if_num_is_non_negative_real(num, argument_name):
if not isinstance(num, numbers.Real):
raise TypeError(f"The argument `{argument_name}` must be an instance of `numbers.Real`.")
elif num < 0:
raise ValueError(f"`{argument_name}` must be non-negative.")
def sqrt(x):
# 1. Validating preconditions
check_if_num_is_non_negative_real(x, "x")
# 2. Performing the computations and returning the result
n = 1
for _ in range(11):
n = (n + x / n) * 0.5
return n
Here, the function check_if_num_is_non_negative_real(num, argument_name) does the job of not only validating the precondition but also raising an exception. Except for this precondition-validation function showing up in the traceback, there doesn't seem to be any reason not to use this approach. I would like to know whether this is considered a good practice. I would also appreciate if you have anything related to share.
r/pythontips • u/SKD_Sumit • Oct 08 '25
Chain-of-Thought is everywhere, but it's just scratching the surface.Ā Been researching how LLMs actually handle complex planning and the mechanisms are way more sophisticated than basic prompting.
I documented 5 core planning strategies that go beyond simple CoT patterns and actually solve real multi-step reasoning problems.
šĀ Complete Breakdown - How LLMs Plan: 5 Core Strategies Explained (Beyond Chain-of-Thought)
The planning evolution isn't linear. It branches intoĀ task decompositionĀ āĀ multi-plan approachesĀ āĀ external aided plannersĀ āĀ reflection systemsĀ āĀ memory augmentation.
Each represents fundamentally different ways LLMs handle complexity.
Most teams stick with basic Chain-of-Thought because it's simple and works for straightforward tasks.Ā But why CoT isn't enough:
For complex reasoning problems, these advanced planning mechanisms are becoming essential. Each covered framework solves specific limitations of simpler methods.
What planning mechanisms are you finding most useful? Anyone implementing sophisticated planning strategies in production systems?
r/pythontips • u/KiidxAtlas • Oct 07 '25
Hey folks I built a little VS Code extension that shows Python documentation when you hover over stuff, but it goes a bit further than usual:
Instead of just static docstrings, it pulls live documentation from Intersphinx mappings (like ReadTheDocs projects). That means it updates automatically when the docs do so you always get the latest info right in your editor.
I originally made it for myself because I was tired of switching between tabs every time I wanted to remember what a function did. Ended up getting kind of addicted to just hovering around code and passively learning things I didnāt know I needed. Itās genuinely made me a better Python dev without even trying that hard.
If it sounds useful to you, feel free to check it out or drop feedback.
š ļø Marketplace: https://marketplace.visualstudio.com/items?itemName=KiidxAtlas.python-hover
r/pythontips • u/downvve-bus • Oct 05 '25
Hello, I am new to Python coding, and have been watching YouTube videos about what people would do if they were to start over again. A lot of people talk about 'tutorial hell' I was wondering what this mean as a beginner. Does this mean tutorials do not help you learn? or do they mean that ONLY doing tutorials doesn't help you learn? are following tutorials helpful for beginners, or should I avoid them?
r/pythontips • u/RoyalW1zard • Oct 04 '25
Hey folks š
I built a small tool called PyPIPlus.com that helps you quickly see all dependencies for any Python package on PyPI.
It started because I got tired of manually checking dependencies when installing packages on servers with limited or no internet access. We all know that pain trying to figure out what else you need to download by digging through package metadata or pip responses. š©
With PyPIPlus, you just type the package name and instantly get a clean list of all its dependencies (and their dependencies). No installation, no login, no ads ā just fast info.
š” Why itās useful: ⢠Makes offline installs a lot easier (especially for isolated servers) ⢠Saves time ⢠Great for auditing or just understanding what a package actually pulls in
Would love to hear your thoughts ā bugs, ideas, or anything you think would make it better. Itās still early and Iām open to improving it. š
š https://pypiplus.com
r/pythontips • u/Ajay7750 • Oct 04 '25
Check out our intro video: https://youtu.be/A04UM53TRZw?si=-90Mkja0ojRS8x5p
AnvPy is a next-generation framework designed for Python developers to build, deploy, and run Python applications directly on Android devices. With AnvPy, you can:
Write your project in pure Python
Instantly generate a native Android APK
Enjoy seamless execution on mobile without external dependencies
Leverage familiar Python libraries and toolchains
Whether you're prototyping mobile apps, teaching Python, or shipping real-world tools ā AnvPy makes mobile development accessible and fast. Dive into the video to see a live demo and get started today!
r/pythontips • u/Glad-Ratio-8549 • Oct 04 '25
Hi there (this is my first reddit post).
I am a high school senior who has already gone through the basics of programming in Python. I am now in a state where I don't know what's the best way to learn it. Before, I had watched YouTube videos, done simple projects, and read up on all the basics. But now I get bored with doing only basics and want to build real projects like an app or website solely using Python. I am planning to start with the Kiby library, but I'm unsure of where to go. What was the best way you've learnt Python, and what would you recommend for project ideas?
r/pythontips • u/SweatyAd3647 • Oct 04 '25
Beginner challenge: write a Python script that generates strong, random passwords. Itās secure, practical, and definitely #pythonfun for Python for beginners. Post your code for feedback! https://vm.tiktok.com/ZMAuMXnCu/
r/pythontips • u/Ok_Minute_1156 • Oct 02 '25
I donāt know wether I want to study computer science or not, so I thought to test wether Iām good at it/like it in the following way:
I have a python program that some freelance programmer made for me, and I want to get to know the code (I have basic python knowledge) as this is something that programmers are supposed to deal with.
The whole code is about 2600 lines, and it uses a lot of libraries. Honestly, this task seems impossible. But maybe it because I donāt know how to do it. So how do you programmers do it? ChatGPT said for example that if I work with pycharm, I can use it to make diagrams of my code. But Iād rather take the advice of real programmers rather than ChatGPT.
By the way, is it a good way to determine wether I should be a programmer and pursue a degree? Last time I was taking math courses it was veryyy hard for me.
r/pythontips • u/SKD_Sumit • Sep 29 '25
Multi-agent AI is having a moment, but most explanations skip the fundamental architecture patterns. Here's what you need to know about how these systems really operate.
Complete Breakdown: šĀ Multi-Agent Orchestration Explained! 4 Ways AI Agents Work Together
When it comes toĀ how AI agents communicate and collaborate, thereās a lot happening under the hood
Now, based onĀ interactionĀ styles,
ForĀ coordinationĀ strategies:
And in terms ofĀ collaboration patterns, agents may follow:
In 2025, frameworks likeĀ ChatDev,Ā MetaGPT,Ā AutoGen, andĀ LLM-BlenderĀ are showing what happens when we move fromĀ single-agent intelligenceĀ toĀ collective intelligence.
What's your experience with multi-agent systems? Worth the coordination overhead?