Groupby in Python| Python Hacks you might now know.
Reddit » Python
by /u/hasanul_islam
2h ago
Groupby in itertools module of python works differently that you might have thought. In this video, I have tried to explain very clearly about this feature. You are requested to watch the video. If you like, you can share the video and subscribe my youtube channel for further hacks. https://youtu.be/sX8G8qNwxjc?si=UTdHvbDKIMfOGhpr submitted by /u/hasanul_islam [visit reddit] [comments ..read more
Visit website
PyPDFForm now lets you create widgets without Acrobat
Reddit » Python
by /u/chinapandaman
4h ago
Hello ! Earlier this year I made a post about my open source project PyPDFForm and got some really nice feedbacks from you guys. I have been since then continuously working on it and I'd love to share you two really cool features that were newly added to the library. The first one is, like what the title says, the library finally supports creating a subset of widgets through code now. One of the previous hard dependency for PyPDFForm was that it requires a PDF template that was prepared using another tool, namely Adobe Acrobat or some web based ones like DocFly. Well now, at least for text fi ..read more
Visit website
Chatpdb - gpt for your python debugger
Reddit » Python
by /u/the1024
4h ago
https://github.com/Never-Over/chatpdb Do you ever copy code, errors, or stack traces into ChatGPT? We did, and found it frustrating to always have to manually find, copy, and paste each relevant piece of information. On top of that, being forced to change tools would switch our focus and cause us to lose our flow. That’s why we built chatpdb - a python debugger with ChatGPT! Simply use chatpdb like you would use ipdb or pdb; it’s a drop in replacement with the exact same functionality. The only addition is the new y keyword, which will trigger a response from ChatGPT. Here’s how it works: &g ..read more
Visit website
Web API Security Champion: Broken Object Level Authorization (OWASP TOP 10) for Python Developers
Reddit » Python
by /u/theowni
6h ago
Explaining one of the most common web API vulnerability classes - Broken Object Level Authorization in a practical manner. Providing a case study example based on the Damn Vulnerable RESTaurant API, including methods for identifying and preventing these vulnerabilities. https://devsec-blog.com/2024/04/web-api-security-champion-broken-object-level-authorization-owasp-top-10/ submitted by /u/theowni [visit reddit] [comments ..read more
Visit website
I’ve made a SaaS starter for Python devs
Reddit » Python
by /u/logarithmx
6h ago
After creating a couple of side projects and noticing the high popularity of starter packs within the NextJS community, I decided to create something similar for Python developers interested in building their own full-stack software. My starter pack covers project structure, authentication, deployments, migrations, integration with ChatGPT and Gemini, Stripe webhooks, mailing, and many more features. I gathered my entire experience, documented it, and prepared a starter pack so you can build your next project much faster and start making money sooner. It also includes a landing page with UI c ..read more
Visit website
Has PyPI ceased all support?
Reddit » Python
by /u/baekalfen
6h ago
Does anyone know what’s going on behind the scenes of PyPI (who maintains `pip install`)? It seems like they’ve stopped processing support tickets over a month ago. I’ve hit the data limit for my package [PyBoy](https://github.com/baekalfen/pyboy), and I immediately posted a ticket to get the limit increased (as others have successfully done). But after more than a month, and several attempts at contacting the support team, I’ve heard nothing back, and I’ve run out of options. Does anyone know what’s happening, or how to get a comment from PyPI? My ticket is this one: https://github.com/pypi ..read more
Visit website
Seeking Advice: Automating Tasks with Python Under Strict IT Restrictions
Reddit » Python
by /u/Successful_Day_4547
14h ago
I’m currently a Computer Science student and work as an Applications Support Engineer. I have been encountering a lot of manual and repetitive tasks at my job that I’m eager to automate to improve my productivity. However, theres a lot of IT restrictions on my work laptop. Even the developers on another team face similar challenges and end up using their personal devices for certain tasks due to these limitations. Previously, in a different role within the same company, I successfully automated tasks using Excel Power Query, Excel VBA, and Power Automate. I’m new to Python and would like to l ..read more
Visit website
Comment blocks in python {Rant}
Reddit » Python
by /u/No_Description_4424
15h ago
I'm in an intro to python class in college, i just wanted to quickly rant: it is incredibly infuriating that i can't comment out a block of text. I feel like it'd be ~easy~ (i mean as easy as it is to maintain a high level programing environment) to implement too. Make it double hashtags surrounding the text followed by a newline *** # Comments *** Vs. *** ## comment block ## \n *** Idk i just wanted to get that off my chest submitted by /u/No_Description_4424 [visit reddit] [comments ..read more
Visit website
Achieve true parallelism in Python 3.12
Reddit » Python
by /u/ThatsAHumanPerson
20h ago
Article link: https://rishiraj.me/articles/2024-04/python_subinterpreter_parallelism I have written an article, which should be helpful to folks at all experience levels, covering various multi-tasking paradigms in computers, and how they apply in CPython, with its unique limitations like the Global Interpreter Lock. Using this knowledge, we look at traditional ways to achieve "true parallelism" (i.e. multiple tasks running at the same time) in Python. Finally, we build a solution utilizing newer concepts in Python 3.12 to run any arbitrary pure Python code in parallel across multiple threads ..read more
Visit website
Monitoring asyncio ready queue in python
Reddit » Python
by /u/endurunz_app
22h ago
I'm optimizing the performance of a Python application that includes many non-blocking I/O operations, some of which involve making HTTP API calls. We use an asynchronous client for all I/O operations, including database and Redis access. During load testing with concurrent users, we've noticed that processing times significantly increase with the number of users. How can we determine if this slowdown is due to delays in API calls or if there is a significant delay in the event loop picking up tasks that have been resolved and added to the ready queue? I have tried setting up an async task wh ..read more
Visit website

Follow Reddit » Python on FeedSpot

Continue with Google
Continue with Apple
OR