<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sachinjose on Medium]]></title>
        <description><![CDATA[Stories by Sachinjose on Medium]]></description>
        <link>https://medium.com/@sachinjose31?source=rss-1a7d912917d8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*UcXeJMaLfznAXBao</url>
            <title>Stories by Sachinjose on Medium</title>
            <link>https://medium.com/@sachinjose31?source=rss-1a7d912917d8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 17:28:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sachinjose31/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Getting started with Gemini API: A Step-by-Step Python Guide]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://sachinjose31.medium.com/mastering-the-gemini-api-a-step-by-step-python-guide-cdce286f5e83?source=rss-1a7d912917d8------2"><img src="https://cdn-images-1.medium.com/max/2600/0*IL2YX2dkBlYJNgfP" width="6000"></a></p><p class="medium-feed-snippet">In the ever-evolving landscape of Generative AI, Google&#x2019;s Gemini models have emerged as powerhouses for multimodal reasoning. Whether&#x2026;</p><p class="medium-feed-link"><a href="https://sachinjose31.medium.com/mastering-the-gemini-api-a-step-by-step-python-guide-cdce286f5e83?source=rss-1a7d912917d8------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://sachinjose31.medium.com/mastering-the-gemini-api-a-step-by-step-python-guide-cdce286f5e83?source=rss-1a7d912917d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/cdce286f5e83</guid>
            <category><![CDATA[gemini]]></category>
            <category><![CDATA[google-gemini]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[google-gemini-ai]]></category>
            <dc:creator><![CDATA[Sachinjose]]></dc:creator>
            <pubDate>Fri, 23 Jan 2026 14:52:44 GMT</pubDate>
            <atom:updated>2026-01-23T14:53:12.223Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Wi-Fi QR- Code Generator in python]]></title>
            <link>https://sachinjose31.medium.com/wi-fi-qr-code-generator-in-python-fdd84427be6e?source=rss-1a7d912917d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/fdd84427be6e</guid>
            <category><![CDATA[wifi]]></category>
            <category><![CDATA[qrcodegenerator]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[qr-code]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Sachinjose]]></dc:creator>
            <pubDate>Tue, 02 Jul 2024 01:06:38 GMT</pubDate>
            <atom:updated>2024-07-02T01:06:38.572Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*REN7YuJC-f1QXEdMhwasMg.jpeg" /><figcaption>Image by DALL.E 3</figcaption></figure><p>The motivation behind this blog emerged from my desire to share Wi-Fi passwords with friends and relatives who visit my home. So, I thought of creating a QR code generator that simplifies this task. Whether you’re an experienced developer or a Python beginner, this project provides a small yet rewarding entry point into the world of coding and automation.</p><p>First things first, you’ll need to install the <strong><em>`qrcode`</em></strong> module using pip:</p><pre>pip install qrcode</pre><p>The process is straightforward: import the module, and then use the `generate_wifi_qrcode()` function to create your QR code. You’ll need to provide the Wi-Fi name (SSID), security type (e.g., WPA), and Wi-Fi password.</p><pre>import qrcode<br><br>def generate_wifi_qrcode(<br>        ssid: str,<br>        password: str,<br>        security_type: str,<br>        qr_code_file: str = &quot;qrcode.png&quot;) -&gt; None:<br><br>    wifi_data = f&quot;WIFI:T:{security_type};S:{ssid};P:{password};;&quot;<br><br>    qr = qrcode.QRCode(<br>        version=1,<br>        error_correction=qrcode.constants.ERROR_CORRECT_L,<br>        box_size=10,<br>        border=4,<br>    )<br><br>    qr.add_data(wifi_data)<br>    qr.make(fit=True)<br><br>    qr_code_image = qr.make_image(<br>        fill_color=&quot;black&quot;, back_color=&quot;white&quot;<br>    )<br><br>    # Create and save the QR Code<br>    qr_code_image.save(qr_code_file)<br><br><br>wifi_name = input(&quot;Enter the Wifi name : &quot;)<br>wifi_password = input(&quot;Enter the Wifi password : &quot;)<br>security_type = input(&quot;Enter the security type : &quot;)<br>if not security_type:<br>   security_type = &quot;WPA&quot;<br>   <br>generate_wifi_qrcode(wifi_name, wifi_password, security_type)</pre><p>This script will generate a QR code that, when scanned, will allow others to connect to your Wi-Fi without having to type in the password manually. It’s a great tool for cafes, libraries, or even at home when you have guests.</p><p>For those who want to take it a step further, integrating this functionality into a web application is also possible. Using frameworks like Flask, you can create a simple web interface that generates a QR code on demand.</p><p>So, why not give it a try? You might just make connecting to Wi-Fi that much easier for everyone around you.</p><p><strong><em>Happy coding and stay connected!</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fdd84427be6e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Converting Python Scripts to Executable Files: A Guide for Windows Users]]></title>
            <link>https://sachinjose31.medium.com/converting-python-scripts-to-executable-files-a-guide-for-windows-users-70867a02ba90?source=rss-1a7d912917d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/70867a02ba90</guid>
            <category><![CDATA[executable]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[pyinstaller]]></category>
            <category><![CDATA[exe-file]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Sachinjose]]></dc:creator>
            <pubDate>Thu, 27 Jun 2024 01:42:36 GMT</pubDate>
            <atom:updated>2024-06-27T01:42:36.383Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zL1G1GWu0_qnsvUssp8z0Q.jpeg" /><figcaption>Image by DALL.E 3</figcaption></figure><p>In this blog post, we’ll explore how to transform your Python scripts into standalone executables on Windows. We can see how we can share Python scripts with other users who may not have the Python interpreter installed. This is where converting Python files (.py) to executable files (.exe) becomes invaluable.</p><h4>Understanding Executable Files</h4><p>An executable file, typically ending with the .exe extension, contains a program that is ready to run on the operating system. For Windows users, these are the files that allow software applications to be installed and run on their computers.</p><h4>Why Convert to Executable?</h4><p>There are several reasons why you might want to convert a Python script to an executable:</p><p><em>1. Ease of Distribution<br>2. Protecting Source Code <br>3. Scheduled Tasks using Windows Task Scheduler, without the need for a Python environment.</em></p><h4>Step-by-Step Conversion Using PyInstaller</h4><p>For the purpose of this guide, we’ll focus on PyInstaller due to its popularity and ease of use. Here’s how to convert your Python script using PyInstaller:</p><ol><li><strong><em>Install PyInstaller</em></strong>: First, you need to install PyInstaller using pip, Open your command prompt and run the below command:</li></ol><pre>python -m pip install pyinstaller</pre><p>2. <strong><em>Prepare Your Script</em></strong>: Ensure your Python script is error-free and runs as expected. In this we will create a python that can be used to generate WIFI QR code.</p><pre>import qrcode<br><br><br>def generate_wifi_qrcode(<br>        ssid: str,<br>        password: str,<br>        security_type=&quot;WPA&quot;,<br>        qr_code_file: str = &quot;qrcode.png&quot;) -&gt; None:<br><br>    wifi_data = f&quot;WIFI:T:{security_type};S:{ssid};P:{password};;&quot;<br><br>    qr = qrcode.QRCode(<br>        version=1,<br>        error_correction=qrcode.constants.ERROR_CORRECT_L,<br>        box_size=10,<br>        border=4,<br>    )<br><br>    qr.add_data(wifi_data)<br>    qr.make(fit=True)<br><br>    qr_code_image = qr.make_image(<br>        fill_color=&quot;black&quot;, back_color=&quot;white&quot;<br>    )<br><br>    # Create and save the QR Code<br>    qr_code_image.save(qr_code_file)<br><br><br>wifi_name = input(&quot;Enter the Wifi name : &quot;)<br>wifi_password = input(&quot;Enter the Wifi password : &quot;)<br>generate_wifi_qrcode(wifi_name, wifi_password)</pre><p>3. <strong><em>Create the Executable</em></strong>: Navigate to the directory containing your Python script and run the following command:</p><pre>pyinstaller --onefile qr_code_generator.py </pre><p>The ` — onefile` flag tells PyInstaller to bundle everything into a single executable file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F8y23jl49timaeL5pWib9Q.png" /></figure><p>4. <strong><em>Test the Executable</em></strong>: After the process completes, you’ll find the executable in the `dist` folder. Run it to start the application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/297/1*IO3prqEZz6Z-YwAxF-HP6Q.png" /></figure><p>5. <strong><em>Distribute Your Application</em></strong>: You can now share the executable file with others, and they can run your application without needing to install Python.</p><h4>Conclusion</h4><p>Converting Python scripts to executable files is a straightforward process that can greatly enhance the accessibility and security of your applications. By using tools like <em>PyInstaller</em>, you can easily share your Python-based tools with a wider audience, regardless of their technical background.</p><p><strong><em>Happy coding </em></strong>and enjoy sharing your Python applications with the world!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70867a02ba90" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python’s F-String Magic: Unleashing Hidden Tricks]]></title>
            <link>https://sachinjose31.medium.com/pythons-f-string-magic-unleashing-hidden-tricks-474ea1bac0a8?source=rss-1a7d912917d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/474ea1bac0a8</guid>
            <category><![CDATA[f-string]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[string-formatting]]></category>
            <category><![CDATA[manipulation]]></category>
            <category><![CDATA[formatting]]></category>
            <dc:creator><![CDATA[Sachinjose]]></dc:creator>
            <pubDate>Tue, 25 Jun 2024 03:36:41 GMT</pubDate>
            <atom:updated>2024-06-25T03:36:41.813Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6q6qI-1aMndU9Ec2RLGWCQ.jpeg" /><figcaption>Image by DALLE</figcaption></figure><p>In this blog, we’ll delve into the delightful world of f-strings, which was added in Python 3.6. If you’re still concatenating strings and variables using the plus sign or the `format()` method, prepare to be amazed by the simplicity and efficiency of f-strings!</p><h4>What is f-strings?</h4><p>F-strings offer a new way to format strings in Python. They are string literals that have an `f` at the beginning and curly braces containing expressions that will be replaced with their values. The result is a string where the expressions are evaluated at runtime and formatted using Python’s `str.format()` syntax.</p><h4>How to use f-strings?</h4><p>Using f-strings is as simple as prefixing your string with an `f` and writing your expressions inside ` {}`. Here are some examples:</p><pre>name = “John Doe”<br>age = 28<br>print(f”Hi, {name}. You are {age} years old.”)</pre><blockquote>Output: `Hello, John. You are 28 years old. `</blockquote><pre>def calculate_sum(a, b):<br>    return a + b<br><br>print(f&quot;Sum of the number is {calculate_sum(2, 3)}&quot;)</pre><blockquote>Output: Sum of the number is 5</blockquote><h4>Advanced Formatting with f-strings</h4><ol><li>Formatting of date time inside f-string</li></ol><p>In Python, f-strings are a great way to format dates and times. You can embed expressions inside string literals, using `{}` brackets, to format dates and times directly</p><pre>from datetime import datetime<br><br>now = datetime.now()<br>print(f&quot;{now:%d-%m-%y}&quot;)<br>print(f&quot;{now:%H-%M-%S}&quot;)<br>print(f&quot;{now:%I}&quot;)  # Hour<br>print(f&quot;{now:%I%p}&quot;)  # Hour with AM / PM<br><br>&quot;&quot;&quot;<br>Output:<br>22-06-24<br>19-51-30<br>07<br>07PM<br>&quot;&quot;&quot;</pre><p>2. Floating point operations in f-string.</p><p>Formatting a floating-point decimal inside an f-string is quite straightforward. You can specify the precision of the decimal by including a colon and a dot followed by the number of decimal places you want. It’s a neat and efficient way to control the output of your strings, making sure they look just the way you need them to.</p><pre>float_number = 1234.90123<br>print(f&quot;{float_number:.3f}&quot;)<br>print(f&quot;{float_number:.0f}&quot;)<br>&quot;&quot;&quot;<br>Output:<br>1234.901<br>1235<br>&quot;&quot;&quot;</pre><pre>float_number = 1234.90123<br>print(f&quot;{float_number:_.3f}&quot;)<br>print(f&quot;{float_number:,.3f}&quot;)<br><br>&quot;&quot;&quot;<br>output:<br>1_234.901<br>1,234.901<br>&quot;&quot;&quot;</pre><p>3. Formatting of strings using f-strings</p><p>You can format numbers, adjust alignment, add padding, and much more. This will be helpful when we want to have the printed output in same length. For example:</p><pre>variable = &#39;fstring&#39;<br><br># Right align<br>print(f&quot;{variable:&gt;20}:&quot;)<br>#             fstring:<br><br># Left align<br>print(f&quot;{variable:&lt;20}:&quot;)<br># fstring            :<br><br># Center align<br>print(f&quot;{variable:^20}:&quot;)<br>#       fstring      :</pre><pre># Padding of outputs<br>print(f&quot;{variable:#&lt;20}&quot;)<br># fstring#############<br><br>print(f&quot;{variable:|&gt;20}&quot;)<br># |||||||||||||fstring<br><br>print(f&quot;{variable:|^20}&quot;)<br># ||||||fstring|||||||<br><br>print(f&quot;{variable:&amp;^20}&quot;)<br># &amp;&amp;&amp;&amp;&amp;&amp;fstring&amp;&amp;&amp;&amp;&amp;&amp;&amp;<br><br>print(f&quot;{variable:*^20}&quot;)<br># ******fstring*******</pre><p>4. Handling of file paths</p><p>In Python, raw f-strings can be very useful for formatting file paths. By combining an ‘r’ to indicate a raw string with an ‘f’ for an f-string, you can include backslashes in your file paths without needing to escape them. This makes the code more readable and less prone to errors, especially when dealing with Windows file paths that often contain many backslashes.</p><pre>path = rf&quot;\home\users\workspace\sample&quot;</pre><p>5. Adding splitters between numbers.</p><p>f-strings are a great way to format strings efficiently and cleanly. By using a “splitter” inside an f-string, you can format numbers more readably, especially when dealing with large numbers.</p><pre>number = 1000000000<br><br>print(f&quot;{number:,}&quot;)<br># Output: 1,000,000,000<br><br>print(f&quot;{number:_}&quot;)<br># Output: 1_000_000_000</pre><h4>Debugging with f-strings</h4><p>One of the lesser-known but incredibly useful features introduced in Python 3.8 is the ability to use the `=` sign within an f-string to print both the expression and its value, which is a boon for debugging:</p><pre><br>x = 3<br>print(f”{x=}”)<br><br>a = 6<br>b = 4<br>print(f&quot;a + b = {a+b}&quot;)<br>print(f&quot;{a + b = }&quot;)<br><br>&quot;&quot;&quot;<br>a + b = 10<br>a + b = 10<br>&quot;&quot;&quot;<br></pre><blockquote>This will output: `x=3`, showing both the variable name and its value.</blockquote><pre>a = 6.5<br>b = 4.2<br>print(f&quot;{a + b =:.2f}&quot;)</pre><blockquote>This will output: a + b =10.70`.</blockquote><h3>Conclusion</h3><p>F-strings are a powerful tool in Python’s arsenal, making string formatting more intuitive and efficient. They allow you to write cleaner code, which is easier to read and maintain.</p><p>Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=474ea1bac0a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Git and Github]]></title>
            <link>https://sachinjose31.medium.com/git-and-github-fbff69aa7f5a?source=rss-1a7d912917d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbff69aa7f5a</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Sachinjose]]></dc:creator>
            <pubDate>Fri, 21 Jun 2024 03:02:45 GMT</pubDate>
            <atom:updated>2024-06-21T03:02:45.755Z</atom:updated>
            <content:encoded><![CDATA[<h3>Git and GitHub</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uUXX1JKRwJvtotStjeKPng.jpeg" /><figcaption>Photo generated by DALLE-E 3</figcaption></figure><p>Git and GitHub are widely recognized as standard tools in the software development process. Explore how Git and GitHub can be effectively leveraged for code development.</p><h3><strong>Git Vs GitHub</strong></h3><p><strong>Git</strong> is a free and open-source distributed version control system designed to track changes in source code throughout the software development process. It is compatible with various file types, allowing the recording of file versions over time. This enables the retrieval of any version’s complete information. Developers can use Git by installing it locally to manage their source code effectively.</p><p><strong>GitHub</strong> is a git repository hosting service that allows developers to connect and share resources. Developers can upload or download code, enabling them to collaborate and improve upon existing versions. It serves as a platform that fosters collaborative efforts and unites teams.</p><p>In simple words, <strong>Git</strong> is the <em>tool</em>, while <strong>GitHub</strong> is the <em>service</em> to use git.</p><p>Here are some great resources to learn GitHub online.</p><p><a href="https://git-scm.com/book/en/v2">Git</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbff69aa7f5a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Art of Regex: Python’s pattern painting]]></title>
            <link>https://sachinjose31.medium.com/the-art-of-regex-pythons-pattern-painting-3e34d65bffc6?source=rss-1a7d912917d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e34d65bffc6</guid>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[regex-in-python]]></category>
            <category><![CDATA[regex]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Sachinjose]]></dc:creator>
            <pubDate>Tue, 18 Jun 2024 02:32:31 GMT</pubDate>
            <atom:updated>2024-06-18T02:32:31.729Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vVgCiaeIOyaO6wMHS_1jQg.jpeg" /></figure><h3>What are Regular Expressions?</h3><p><strong><em>Regular Expression or Regexp </em></strong>is a search query that matches the regular expression pattern. Regex pattern has a sequence of characters. When executed, it will return the string that matches the pattern.</p><h3>Why use Regular Expressions?</h3><p>Regex makes life easy for cleaning and automating search patterns when working with text-based data</p><p>Consider that you have a log file that contains information like computer details, process ID, timestamp, and other information that you may not be interested in.</p><p>So, if you wanted to fetch the process ID, irrespective of the log&#39;s content, you could use the regex query to fetch the process ID, which matches the pattern.</p><p>Similarly, if you want to validate a field enter by the user like username, you can achieve this using a regex instead of using if-else conditions.</p><p>Consider that you want the username to be between 6 to 20 characters and contains numbers and -_&amp;#$@ as special characters.</p><pre>^[aA-zZ0–9_\-\$@&amp;]{6,20}$</pre><p>By using this regular expression, we can check whether the user input matches this pattern or not. <strong><em>The query may look confusing, but don’t worry. By the end of this blog, you will be able to decode it.</em></strong></p><h3>Pip Install</h3><p>Before we start working on regular expressions, let’s install the related packages.</p><pre>pip install regex</pre><p>If you want to test your regular expression online, use <a href="https://regex101.com/r/1paXsy/1">this</a></p><h3>Basic Regular Expression</h3><blockquote>search and findall</blockquote><p>Both the search and findall are the methods in the module <strong><em>re</em></strong>.</p><pre>re.search(&lt;regex pattern&gt;, &lt;string&gt;)<br>re.findall(&lt;regex pattern&gt;, &lt;string&gt;)</pre><p>Using a <strong><em>search, </em></strong>we can find whether the pattern matches the text or not. If matches, the search will return the <strong><em>first occurrence of the pattern in the text</em></strong> and the index value. If not matched, it will return <strong><em>None</em></strong> value. Using <strong>span </strong>we can find the index of the string.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*10Vki4bELTipatKpVEvbhg.png" /><figcaption>Using search, we can find whether the pattern matching string is there or not. Also, we can return the index of the string using span.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5XG1w992I-2h5y72eB9jbw.png" /><figcaption>Returns None, if pattern is not matching</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KQF4-xPwbr9sicEChQr72A.png" /><figcaption>We can also try to fetch the string matching the pattern, in this case, number. But remember, search returns only the first occurrence.</figcaption></figure><p>Using <strong><em>findall</em></strong>, unlike search, we can find <strong><em>all the string occurrences</em></strong> that match the pattern in the list format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4U3CHMuee5I9erI-WQd4HQ.png" /><figcaption>Findall returned all the numbers in the string.</figcaption></figure><blockquote><strong>Anchor classes :</strong></blockquote><p>^ and $ are defined as anchor classes in the regex world.</p><pre>^ - defines the start of the sentence<br>$ - defines the end of the sentence</pre><p>^ will match the pattern at the start of the sentence</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yvb4LSCgEELc5-xyA39SsQ.png" /><figcaption>Returns the pattern only when the pattern is in the start of the sentence</figcaption></figure><p>$ will search the pattern at the end of the sentence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ed0k0Z9EaHWiveEINGmn9Q.png" /><figcaption>Returns the pattern only when the pattern is in the end of the sentence</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MvMivbala6qcyFK7_rVKSg.png" /><figcaption>Also we can use the combination of both to match the pattern of entire sentence.</figcaption></figure><blockquote><strong>Character classes :</strong></blockquote><p><strong>Character classes or character sets </strong>are enclosed within ‘[].’ You can tell the <strong>regex</strong> engine to match only one out of several characters. Just place the characters you want to match inside the square brackets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K9sP5uxkNj5OaKUYWhPu5w.png" /></figure><p>As we have seen earlier, if pattern don&#39;t matches, it returns None.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lyi4CbRjqQnlhL-uT7FOwQ.png" /><figcaption>Here we have mentioned only characters ranging from a to g, hence returned output as <strong>None</strong></figcaption></figure><blockquote><strong><em>Shorthand character class :</em></strong></blockquote><p>We can use shortcuts for the character class.</p><pre>. - also known as wild card, as it matches any character<br>\d - can be used to matches digits<br>\w - matches a <strong>word character</strong> (alphanumeric character plus underscore)<br>\s - can match with the white space, tab or line breaks<br>\b - can match whole words</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z8Jxl1RqtdNLKqwm87C8Ew.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*XbeK0ti6BGPj7yDOVOuBHg.png" /></figure><p>Similarly \d, \w and \s also present their negations with \D, \W and \S respectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KC5nBTL90411BjRv4mRTgw.png" /></figure><blockquote><strong><em>Meta Characters</em></strong></blockquote><pre>[^ ] → Matches all the characters, except the character that is inside the brackets</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*kdBKRW8KlJ5cmW1zZoPgEQ.png" /></figure><pre>[ | ] → Matches either the characters, before or the characters after the preceding symbol</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gYC7GAkJFHkIE9O8TvRwgw.png" /></figure><pre><strong>?</strong>     -&gt; Makes the preceding symbol optional.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*mX9y1-vsWOUqKr0I_BKxiw.png" /></figure><blockquote><strong>Repetition Qualifiers</strong></blockquote><p>So far, we have looked for how to match the specific character or even any character. Now we’re going to check out how to match these characters several times.</p><pre><em>*  --&gt; Matches 0 or more repetitions of the preceding symbol</em></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*tdE_pF9QXRZXEn0vrRGu0Q.png" /></figure><pre><em>.*  --&gt; Matches with any character symbol</em></pre><p>.* Match <em>as many input characters as possible</em> once it encounters a quantified token. This behavior is called <strong>greedy matching</strong> because the engine will eagerly attempt to match as many characters as it can in anything it can.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*mNwlDSNoZecSiGhdW0Ch_A.png" /></figure><pre><strong>+ </strong> --- &gt; Matches 1 or more repetitions of the preceding symbol</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CxKAFt6rAxcegjwacCsuhA.png" /></figure><h4>More on Repetition qualifiers</h4><p>What if you want to use repetition qualifiers for the character class, but you want to restrict the number of characters?</p><p>Consider a case where you have to fetch all the string that has six characters. Using {} brackets, you can restrict the number of characters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*q5bvEbLdRmHCr6aIKOmp6A.png" /></figure><p>What if you want to fetch a string between a range of numbers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O2QqddUyQeQ9vWTt4GwgGQ.png" /></figure><p>Here we are having a problem the string gets cut in the middle. Using \b, we can restrict the words.</p><p><strong><em>\b → performs “whole words only” search</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QGQR8KHAr7TPSx85s9ZYmw.png" /></figure><h4>Escaping Characters</h4><p>Escaping characters are used when we need our pattern to match some of the special characters.</p><p>Let’s see an example. Consider that you want to find whether the domain name contains <em>.com or not.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DvYflPh905ByQS2dzlHlSg.png" /></figure><p>Regex function matches the string, even though it does not contain .com, because (.) special character matches any character.</p><p>So how do we fix this?</p><p>To solve this, we have escaping characters. Escaping characters will treat special characters as normal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YkynyUFlcmG4ZYki9vM8Lw.png" /></figure><p><em>Now we have looked into a bunch of basic regex expressions. Let&#39;s see Regular expression in action</em>.</p><p>We will look into a problem to check whether the variable name in python is valid or not.</p><p>Valid name starts with _ or letters, and it contains alphanumeric letters and underscores. The variable name other than this is invalid in python.</p><p>So how will you do it?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y5turjbsVb-q4rD_2Pe0Bw.png" /></figure><p>You can also try some exercise on your own.</p><ul><li>Like country name that starts and ends with a. <em>Australia, Argentina</em> are valid, whereas <em>Afghanistan</em> is invalid.</li><li>Matching the proper time format. <em>9:49 AM, 12:21 PM</em> are correct formats, whereas <em>7:60 AM</em> or <em>twelve ‘o clock</em> is invalid</li></ul><h4>Are you able to crack it? Awesome Below are some of the advanced concepts in Regex.</h4><h4>Capturing Groups</h4><p>For example, you are given the name of a person in the format of the <strong><em>last name, first name. </em></strong><em>Now, if you want to fetch the first name and second name separately…how can you achieve it?</em></p><p>Capturing groups are the portion of the pattern that are enclosed in parentheses. The syntax is (regex).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RLFZMrEEfnjl-RSjpAtH6w.png" /></figure><p>Consider that you want to write a program to rearrange the first and last name. You can make use of the regression function which we looked at above.</p><h4>Splitting and replacing</h4><p>We can use the regex to split the string and also substitute strings.</p><pre>import re<br># Split the string by spaces<br>text = &quot;This is a sentence with spaces.&quot;<br>split_text = re.split(r&quot;\s+&quot;, text)<br># Replace all occurrences of &quot;sentence&quot; with &quot;phrase&quot;<br>replaced_text = re.sub(r&quot;sentence&quot;, &quot;phrase&quot;, text)<br># Print the split and replaced text<br>print(split_text)<br># Output : [&#39;This&#39;, &#39;is&#39;, &#39;a&#39;, &#39;sentence&#39;, &#39;with&#39;, &#39;spaces.&#39;]<br><br>print(replaced_text)<br># Output : This is a phrase with spaces.</pre><h4>Repetition Qualifiers</h4><ul><li>*: It specifies that the character previous to it can be repeated zero or more times.</li><li>+: It specifies that the character previous to it can be repeated one or more times.</li><li>?: It specifies that the character previous to it can be repeated zero or one time.</li></ul><pre>import re<br><br># Match any string that contains the letter &quot;a&quot; zero or more times.<br>pattern = &quot;a*&quot;<br>string = &quot;This is a string.&quot;<br>match = re.search(pattern, string)<br>if match:<br>    print(match.group())<br><br># Match any string that contains the letter &quot;a&quot; one or more times.<br>pattern = &quot;a+&quot;<br>string = &quot;This is a string.&quot;<br>match = re.search(pattern, string)<br>if match:<br>    print(match.group())<br><br># Match any string that contains the letter &quot;a&quot; zero or one time.<br>pattern = &quot;a?&quot;<br>string = &quot;This is a string.&quot;<br>match = re.search(pattern, string)<br>if match:<br>    print(match.group())</pre><p>Regex is like a Swiss Army knife for strings — versatile, compact, and you only need one until you drop it in a loop and suddenly it’s a chainsaw.</p><h3><strong><em>Happy Coding!</em></strong></h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e34d65bffc6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Git Reset: A Comprehensive Guide]]></title>
            <link>https://sachinjose31.medium.com/understanding-git-reset-a-comprehensive-guide-e65956aee86b?source=rss-1a7d912917d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/e65956aee86b</guid>
            <category><![CDATA[reset]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[git-reset]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Sachinjose]]></dc:creator>
            <pubDate>Fri, 14 Jun 2024 05:02:31 GMT</pubDate>
            <atom:updated>2024-06-14T05:02:31.177Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CW8-HvCaQje0OD0ApY_V-A.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@indraprojects?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Indra Projects</a> on <a href="https://unsplash.com/photos/an-alarm-clock-sitting-on-top-of-a-wooden-table-TRrtNFhS7HI?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash</a></figcaption></figure><p>Git is a powerful tool for version control, allowing developers to track changes, revert to previous stages, and collaborate on projects with ease. One of the most versatile commands in Git’s arsenal is `git reset`.</p><p>In this blog post, we’ll decode `git reset` and explore its various options.</p><h4>What is Git Reset?</h4><p>At its core, `git reset` is a command that can be used to unstage files, change the current branch’s HEAD, and even alter the working directory depending on the requirement.</p><h4>The Three Flavors of Git Reset</h4><p>Git reset can be invoked with three primary options:</p><ul><li>— soft</li><li>— mixed</li><li>— hard.</li></ul><h4>Soft Reset (— soft):</h4><p>This option will reset the HEAD to a specified commit but does not touch the staging area or the working directory. Changes will stay in your staging area.</p><h4>Mixed Reset (— mixed):</h4><p>The default mode of `git reset` changes the HEAD to the specified commit and resets the staging area to match this commit. However, it does not modify the working directory. As a result, changes remain in the working directory, but they are not staged.</p><h4>Hard Reset (— hard):</h4><p>The ` — hard` option is the most extreme reset command, as it reverts the HEAD, staging area, and working directory to the state of a specified commit. It discards all changes made subsequent to that commit.</p><h3>Use Cases for Git Reset</h3><p>The `git reset` command can be used in various scenarios, such as:</p><p><strong>Undoing Staged Changes: </strong>If you’ve staged files that you don’t want to commit, a mixed reset can unstage them.<br> <strong><br>Altering the Last Commit:</strong> If you need to modify the last commit, a soft reset can be used to move the HEAD back without losing the changes you’ve made.<br> <br><strong>Reverting to a Previous State</strong>: A hard reset can be used to revert the repository to a previous state if recent commits have introduced issues.</p><h4>Cautions</h4><p>While `git reset` is a powerful command, it should be used with caution, especially the ` — hard` option, as it can lead to loss of work. It’s always a good idea to ensure that you have no uncommitted changes or that you’re willing to discard them before using a hard reset.</p><h3>Conclusion</h3><p>`git reset` is a command that offers flexibility in managing the state of your repository.</p><p>Mastering `git reset` allows for enhanced control over your version history, enabling you to manage your codebase with increased confidence and accuracy. Keep in mind that with great power comes great responsibility; therefore, it’s crucial to use `git reset` judiciously.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e65956aee86b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create new branch from a particular commit in Git]]></title>
            <link>https://sachinjose31.medium.com/create-new-branch-from-a-particular-commit-in-git-bdd936721047?source=rss-1a7d912917d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/bdd936721047</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[git-branching]]></category>
            <category><![CDATA[gerrit]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[checkout]]></category>
            <dc:creator><![CDATA[Sachinjose]]></dc:creator>
            <pubDate>Tue, 11 Jun 2024 03:32:28 GMT</pubDate>
            <atom:updated>2024-06-11T03:32:28.874Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ibBAouepswuh54r7tTy7YQ.jpeg" /><figcaption>a Photo by DALL-E 3</figcaption></figure><p>Creating a new branch from a specific commit in Git is a common task and can be done using the following steps:</p><ol><li>First, identify the commit hash of the commit from which you want to branch out. You can find the commit id, by looking at the log of commits using the command IDlog.</li><li>Once you have the commit id/hash, you can create a new branch with the following command:</li></ol><pre>git branch new-branch-name commit-hash</pre><p>Replace new-branch-name with the name you want for your new branch, and commit-hash with the actual hash of the commit.</p><p>3. If you want to switch to the new branch immediately, you can use the checkout command:</p><pre>git checkout new-branch-name</pre><p>4. Or, if you can combine the creation and checkout (Step 2 &amp; Step 3) of the new branch into one command:</p><pre>git checkout -b new-branch-name commit-hash</pre><p>5. To push the locally created branch into remote, use the below command.</p><pre>git push -u origin &lt;branch&gt;</pre><p><strong><em>Happy Coding!</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bdd936721047" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Loguru: A Concise logging solution]]></title>
            <link>https://sachinjose31.medium.com/loguru-a-concise-logging-solution-2f5c90f38503?source=rss-1a7d912917d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f5c90f38503</guid>
            <category><![CDATA[loguru]]></category>
            <category><![CDATA[decorators]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[logging]]></category>
            <dc:creator><![CDATA[Sachinjose]]></dc:creator>
            <pubDate>Sun, 09 Jun 2024 16:30:18 GMT</pubDate>
            <atom:updated>2024-06-09T16:30:18.953Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QEkPkqyL6gHOTfJXSS85lQ.png" /><figcaption>Photo by Dalle</figcaption></figure><p>While I was engaged in a Python project, I considered investigating alternative logging options. Although the conventional logging module is quite effective, I was in search of an enhanced solution. During my research, I discovered an impressive module known as <strong>Loguru</strong>.</p><p>In this article, I will delve into my journey with Loguru, detailing its features, benefits, and installation instructions.</p><p><strong>Install Loguru</strong></p><p>Before you can start using Loguru module, you need to install it. You can install Loguru using the pip command:</p><pre>pip install loguru</pre><p><strong>How to Use Python Loguru</strong></p><p>Utilizing Python’s Loguru library is straightforward. You only need to import the loguru package and utilize its logger instance to carry out logging tasks.</p><pre>from loguru import logger<br><br>logger.trace(&quot;TRACE&quot;)<br>logger.debug(&quot;DEBUG&quot;)<br>logger.info(&quot;INFO&quot;)<br>logger.success(&quot;SUCCESS&quot;)<br>logger.warning(&quot;WARNING&quot;)<br>logger.error(&quot;ERROR&quot;)<br>logger.critical(&quot;CRITICAL&quot;)<br></pre><p>Loguru defaults to using DEBUG as its minimum level, which causes any logs with a severity lower than DEBUG to be ignored.</p><p>If you want to change the default level, you may use the level argument to the add() method shown below:</p><pre>logger.add(sys.stderr, level=&quot;INFO&quot;)</pre><h3>Custom logger levels</h3><p>In addition to the predefined logging levels in Loguru, it is possible to create custom log levels for use as demonstrated below.</p><pre>import sys<br>from loguru import logger<br>logger.level(&quot;FATAL&quot;, no=60, color=&quot;&lt;red&gt;&quot;, icon=&quot;!!!&quot;)<br>logger.log(&quot;FATAL&quot;, &quot;A user updated some information.&quot;)</pre><h3>Adding handlers</h3><p>Handlers can be controlled to either print logs to the console or store them in a log file, as demonstrated below.</p><pre>import sys<br>from loguru import logger<br><br>format = &quot;{time:HH:mm:ss.ss} | {level: &lt;8} | {file: ^8} | {function: ^15} | {line: &gt;3} | &lt;level&gt; {message} &lt;/level&gt;&quot;<br>log_file = &quot;logger.log&quot;<br>logger.add(sys.stderr, format=format, level=&quot;INFO&quot;)<br>logger.add(log_file, format=format, level=&quot;INFO&quot;)</pre><p>To add coloring to the console logs,</p><pre>import sys<br>from loguru import logger<br><br>format = &quot;{time:HH:mm:ss.ss} | {level: &lt;8} | {file: ^8} | {function: ^15} | {line: &gt;3} | &lt;level&gt; {message} &lt;/level&gt;&quot;<br>log_file = &quot;logger.log&quot;<br>logger.add(sys.stderr, format=format, level=&quot;INFO&quot;, colorize=True)</pre><p>To direct logs of a specific level to a separate file, use as below. This was helpful to me when I wanted to store only the error logs into a seperate file.</p><pre>import sys<br>from loguru import logger<br>logger.add(log_file, filter=lambda record: record[&quot;level&quot;].name==&quot;ERROR&quot;, Serialize=True)</pre><h3>Exceptions catching</h3><p>By using the logger wrapper, we can perform exception handling. This avoids use of try/except block explicitly.</p><pre>@logger.catch(level=&quot;CRITICAL&quot;, message=&quot;Error in division.&quot;)<br>def division(a, b):<br>    return a/b<br><br>division(10, 0)</pre><p>Output:-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*LEX-DXI2xs2svdw-DgE0XA.png" /></figure><h3>Extra Insights</h3><h3>Rotation of Logs</h3><p>Using rotation in the handler, new log file will be generated based it.</p><pre>. . .<br>logger.add(&quot;logger.log&quot;, rotation=&quot;60 seconds&quot;)<br></pre><p>For example, new log file will be generated every 60 seconds. After every 60 seconds, the file is renamed to logger.&lt;timestamp&gt;.log and a new loguru.log file is created afterward.</p><h3>Wrapper function</h3><p>One of the sample wrapper function that came in handy is to log the total time taken for executing a method</p><pre>import functools<br>from loguru import logger<br><br><br>def timeit(func):<br>    def wrapped(*args, **kwargs):<br>        start = time.time()<br>        result = func(*args, **kwargs)<br>        end = time.time()<br>        logger.debug(&quot;Function &#39;{}&#39; executed in {:f} s&quot;, func.__name__, end - start)<br>        return result<br><br>    return wrapped<br><br><br># To use the created wrapper<br>@timeit()<br>def foo(a, b, c):<br>    logger.info(&quot;Inside the function&quot;)<br>    return a * b * c</pre><p>As we sign off about the Python Loguru module, let’s not forget that in the realm of coding, every line tells a story, and every log captures an epic tale.</p><p>Keep your spirits up and your log levels down and let the chronicles of your code be as legendary as the myths of old. Until we code again,</p><p><strong><em>happy logging!</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f5c90f38503" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Merge Vs Rebase]]></title>
            <link>https://sachinjose31.medium.com/merge-vs-rebase-7fd8f56b9465?source=rss-1a7d912917d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/7fd8f56b9465</guid>
            <category><![CDATA[merge]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Sachinjose]]></dc:creator>
            <pubDate>Sun, 09 Jun 2024 14:53:54 GMT</pubDate>
            <atom:updated>2024-06-09T14:53:54.446Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9P7ZzPF550RPJrGqSMvP3A.png" /></figure><p>When collaborating on a project within a team, a new branch is typically created for each new feature. This allows you to experiment and make changes without the risk of breaking anything. Once you’re satisfied with your changes, you can merge them into the main branch.</p><p>Whenever we want to merge the branches, we can use one of the below options.</p><ul><li><strong><em>Git Merge</em></strong></li><li><strong><em>Git Rebase</em></strong></li></ul><h3>What is a Git Merge?</h3><p><strong>Purpose</strong>: Merging combines changes from one branch (the source branch) into another branch (the target branch).</p><p><strong>How it works</strong>:</p><ul><li>When merging branches, a new ‘merge commit’ is created, connecting the histories of both branches.</li><li>The existing branches remain unchanged, making it a non-destructive operation.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*XUyUDwc6jqsqTOMxFBNdPw.png" /></figure><p><strong>Pros</strong>:</p><ul><li>Non-destructive: Existing branches are preserved.</li><li>Simple to perform. It maintains the chronological history of all changes made in the repository.</li></ul><p><strong>Cons</strong>:</p><ul><li>Creates extraneous merge commits, especially if the main branch is active.</li><li>Can clutter the feature branch’s history. As your project’s main branch accumulates merge commits, especially in large team settings, the commit history can become cluttered and harder to manage.</li></ul><h4><strong>Command:</strong></h4><blockquote>git checkout feature<br>git merge main</blockquote><h3>Rebasing</h3><p><strong>Purpose</strong>: Rebasing also integrates changes from one branch into another, but in a different way.</p><p><strong>How it works</strong>:</p><ul><li>Git rebase involves moving the entire feature branch to start from the latest commit on the main branch.</li><li>It achieves this by creating new commits for each original commit, effectively rewriting the project history.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*2-b1O37y2iehbsqkLEFvMA.png" /></figure><p><strong>Pros</strong>:</p><ul><li>Cleaner project history: No unnecessary merge commits.</li><li>Linear history: Easier navigation.</li></ul><p><strong>Cons</strong>:</p><ul><li>Destructive: Rewrites commit history. One must be careful not to rebase branches that are public.</li><li>Requires a deep understanding of how git works, which needed additional care to avoid issues.</li></ul><p><strong>Command</strong></p><blockquote>git checkout feature</blockquote><blockquote>git rebase main</blockquote><p>Remember that both approaches have their place, and the choice is depended on your team’s workflow, type of projects, team, and organizational requirements that you are working with. <strong><em>Happy coding!</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7fd8f56b9465" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>