Machine Learning with Python
68.4K subscribers
1.3K photos
95 videos
170 files
959 links
Learn Machine Learning with hands-on Python tutorials, real-world code examples, and clear explanations for researchers and developers.

Admin: @HusseinSheikho || @Hussein_Sheikho
Download Telegram
Convert complex regular expressions into readable Python code with Pregex

Templates like [a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,} look intimidating and are hard to read. It's challenging for a team without experience in regular expressions to understand and modify such validations.

Pregex converts regular expressions into clear Python code from descriptive components.

What you get:
• The code itself explains the intent, even without comments
• You can modify it without knowledge of regular expressions
• You can compose patterns for complex validation
• If necessary, you can export it back to a regular regex

The tool is open source. Installation: pip install pregex

Full article: https://bit.ly/3IWAE5O
Run this code: https://bit.ly/4hdQjKM

👉 @codeprogrammer
Please open Telegram to view this post
VIEW IN TELEGRAM
4👍1
Create a perfect resume without messing with templates.

You write content in YAML and generate a PDF.

The project is called RenderCV, and it's open-source
https://github.com/rendercv/rendercv


👉 https://t.iss.one/DataScienceN
Please open Telegram to view this post
VIEW IN TELEGRAM
11🔥1
Forwarded from Code With Python
Checking the reliability of a password with Python!

Sometimes you need to quickly check how secure a password is. Let's look at a simple example using regular expressions - a good opportunity to practice with re and conditional logic.

Import the module:
import re


Create a password check function:
def check_password_strength(password):
    length = len(password) >= 8
    upper = re.search(r"[A-Z]", password)
    lower = re.search(r"[a-z]", password)
    digit = re.search(r"\d", password)
    special = re.search(r"[@$!%*?&]", password)

    if all([length, upper, lower, digit, special]):
        return " Reliable password"
    else:
        return "⚠️ Weak password"


Check a few examples:
print(check_password_strength("Qwerty123"))
print(check_password_strength("Qw!8zYt@1"))


Output example:
⚠️ Weak password  
Reliable password


🔥 Example of how to check a string for compliance with several conditions using code - and practice with regular expressions.

🚪 @DataScience4
Please open Telegram to view this post
VIEW IN TELEGRAM
11👍1
🔍 Discover Hidden Gems on Telegram with Argo🔍Search 🔍

You’ve just missed a buzzing group, unheard songs, or breaking news scattered across Telegram — but what if it all appeared at your fingertips? Here, every keyword unlocks doors: communities, channels, music, news… no more endless scrolling or dead ends.

Feel the thrill of finding the unseen, every search a story waiting to be told. Ready to explore? 🌐

Dive into the discovery now: https://t.iss.one/ArgoSearchBot

#ad InsideAds