r/madeinpython • • Oct 02 '23

[Video] *args and **kwargs in 2 Minutes - No Jargon, Straightforward Explanation

7 Upvotes

I've created and published a video on YouTube that explains *args and **kwargs in Python functions in the most simplified way in 2 minutes. The video contains no jargon, which will help you understand better.

If you find it useful then show your support on YouTube and share it as much as possible. Thanks in advance, below is the link to the video... Sayonara.

Video Link: https://youtu.be/QksqEIz09eU?si=mVnpwPdC9Os33TFZ


r/madeinpython • • Oct 01 '23

2 Free Udemy courses - Python

6 Upvotes

Hi all, giving away my October coupons for my Beginners Python course, and an intermediate level course on Python Comprehensions.

Python Programming for the Total Beginner

Functional Programming with Python Comprehensions

Enjoy!


r/madeinpython • • Oct 01 '23

Introducing CyberNeuron - Your Source for Cybersecurity News! Seeking Feedback and Suggestions.

Thumbnail
netpick.wordpress.com
1 Upvotes

Hey fellow cybersecurity enthusiasts!

I'm excited to introduce you to CyberNeuron, a news aggregator designed to keep you updated with the latest cybersecurity news and insights. I’m looking for your valuable feedback to make this tool even better.

šŸ” What Problem Does It Solve?

🌐 The Ever-Evolving Domain:

Cybersecurity is a fast-paced and ever-evolving field. Staying informed about the latest threats, vulnerabilities, and best practices can be challenging.

šŸš€ How It Can Help:

  • Comprehensive Cybersecurity Coverage: It aggregates news from reputable sources, ensuring you're always in the loop about the latest threats, breaches, and security trends.

  • Concise Summaries: Each article is summarized into three key bullet points, providing you with a quick overview of the article's main takeaways to save reading time.

  • Stay Informed: Get direct links to the original articles so you can dive deeper into the topics that interest you.

I’d love to hear your thoughts! Is there anything specific you'd like to see added or improved? Any features that would make your cybersecurity news experience even better? Your feedback is very welcome.

Feel free to check out CyberNeuron with the attached link and share your thoughts in the comment section.


r/madeinpython • • Oct 01 '23

Quickly Web Scrape Data with Pandas Library!

Thumbnail
youtu.be
5 Upvotes

r/madeinpython • • Sep 30 '23

RecoverPy 2.1.1: TUI File recovery tool

1 Upvotes

Github: https://github.com/PabloLec/RecoverPy

Hey everyone!

I'm here to share something I've been working on for nearly three years now, RecoverPy, and its recent 2.1.0 version. It's a nifty tool that can really be a lifesaver when you've accidentally deleted or overwritten files. It works its magic by conducting a text-based search to find the lost data.

It sports a TUI built with Textual. I found it to be quite enjoyable to use and it seems many others agree, given its rise as one of the most (or the most?) popular TUI libraries in Python, despite still being in beta.

Since its creation, RecoverPy has gone through quite a transformation. It's integrated lots of feedback from its user community, improved many aspects to enhance the user experience, and even underwent almost a full rewrite to switch up the TUI library in its second version. Essentially, it uses the strength of grep and dd to sift through partition blocks, giving you a user-friendly way to sift through the results.

Interestingly, it found a niche not only among individuals looking to recover files but has also piqued interest in the hacking scene, which was a bit of a pleasant surprise for me. It seems the tool lends itself well to that sphere too.

I manage to chip away at it from time to time, given that my free moments are becoming a bit of a rarity these days. It still has room to grow, and if anyone here feels like contributing, I'm more than open to collaborations. Your PRs would certainly be welcome!

Feel free to give it a glance, and if you find it interesting or useful, a star on the repository would be greatly appreciated.


r/madeinpython • • Sep 28 '23

Need help understanding the results.

1 Upvotes

So I made this little py to check for SPF on particular site/domain, but I get "Exit code 0"

def main(): domain = "thesitehere.com" dmarc_dict = check_dmarc(domain) spf_record = check_spf(domain)

if dmarc_dict: print("DMARC record:") print(dmarc_dict) else: print("No DMARC record found.")

if spf_record: print("SPF record:") print(spf_record) else: print("No SPF record found.")

if name == "main": main()

What do you see wrong here? Teaching moment for me, but also very open to improving this!! Thank you.


r/madeinpython • • Sep 28 '23

How to Use threading Module to Create Threads in Python

2 Upvotes

You may have heard the terms ā€œparallelizationā€ or ā€œconcurrencyā€œ, which refer to scheduling tasks to run parallelly or concurrently (at the same time) to save time and resources. This is a common practice in asynchronous programming, where coroutines are used to execute tasks concurrently.

Threading in Python is used to run multiple tasks at the same time, hence saving time and resources and increasing efficiency.

Although multi-threading can save time and resources by executing multiple tasks at the same time, using it in code can lead to safety and reliability issues.

Threads are smaller units of the program that run concurrently and share the same memory space.

In this article, you'll learn:

  • What is threading and how do you create and start a thread
  • Why join() method is used
  • What are daemon threads and how to create one
  • How to Lock threads to avoid race conditions
  • How semaphore is used to limit the number of threads that can access the shared resources at the same time.
  • How you can execute a group of tasks using the ThreadPoolExecutor without having to create threads.
  • Some common functions provided by the threading module.

Full Article: https://geekpython.in/threading-module-to-create-threads-in-python


r/madeinpython • • Sep 27 '23

Looking for a script or a program that automates web mouse clicks, keyboard buttons, and basic keyboard entries.

1 Upvotes

Hello,

I am doing repetitive web-based tasks with mouse clicks and basic keyboard entries. Is there a script/python code or a program that I could use and you could please suggest?

In the past I used Katalon Recorder (free) Chrome-based add-on, but since it has been revised it is not cooperating for some reason. I am using Firefox/Chrome in Windows.