<?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 Mohamedmeqlad on Medium]]></title>
        <description><![CDATA[Stories by Mohamedmeqlad on Medium]]></description>
        <link>https://medium.com/@mohamedmeqlad9?source=rss-2d9e085418f5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3ezeF-JOumXUvNFYe8U_zA.jpeg</url>
            <title>Stories by Mohamedmeqlad on Medium</title>
            <link>https://medium.com/@mohamedmeqlad9?source=rss-2d9e085418f5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 00:27:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mohamedmeqlad9/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[Lake house vs Delta Lake vs Delta Table: What’s Really the Difference?]]></title>
            <link>https://medium.com/@mohamedmeqlad9/lake-house-vs-delta-lake-vs-delta-table-whats-really-the-difference-cc2999c677dc?source=rss-2d9e085418f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc2999c677dc</guid>
            <category><![CDATA[databricks-data-engineer]]></category>
            <category><![CDATA[data-engineer]]></category>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Mohamedmeqlad]]></dc:creator>
            <pubDate>Sat, 14 Jun 2025 09:54:58 GMT</pubDate>
            <atom:updated>2025-06-14T09:54:58.121Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A68vxKN0uA7clMOtpCI_fg.png" /></figure><h3>I Got Asked This in an Interview: What’s the Difference Between a Lakehouse, Delta Lake, and a Delta Table?</h3><p>During a recent interview, I was hit with a question that sounded straightforward on the surface:</p><blockquote><em>“Can you explain the difference between a Lakehouse, Delta Lake, and a Delta Table?”</em></blockquote><p>I paused for a second. I <em>thought</em> I knew the answer. but the more I tried to explain it out loud, the more I realized how blurry the lines were in my mind.</p><p>To make sense of the differences, we need to rewind a bit and start from the foundation: <strong>What’s the difference between a data warehouse and a data lake?</strong></p><h3>Starting from the Basics</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*laUx2B4RSk42XcWmv4egIg.png" /></figure><h3>What is a Data Warehouse?</h3><p>A <strong>data warehouse</strong> is a centralized system that stores <strong>structured</strong> data, typically coming from operational databases and ETL pipelines. It’s optimized for fast SQL queries and is used heavily in BI dashboards and reporting.</p><p>Key traits:</p><ul><li>Data is <strong>cleaned and structured</strong> before it’s stored</li><li>Schema is enforced (schema-on-write)</li><li>High performance for analytical queries</li><li>Expensive to scale, especially with growing data volumes</li></ul><h3>What is a Data Lake?</h3><p>A <strong>data lake</strong>, on the other hand, is a storage system that holds <strong>raw data</strong> in all formats — structured, semi-structured, or unstructured. Think CSVs, JSONs, log files, images, and more.</p><p>Key traits:</p><ul><li><strong>Schema-on-read</strong> (structure is applied when you query it)</li><li>Much cheaper and more scalable</li><li>Great for collecting massive volumes of data</li><li>Not ideal for analytics without additional tooling</li></ul><p>So, in short:</p><ul><li>Data warehouse = clean, structured, fast, expensive</li><li>Data lake = raw, flexible, cheap, but messy</li></ul><h3>The Problem</h3><p>Many teams were using both. Data lakes for collecting and storing everything, and data warehouses for analytics. But this led to duplicated storage, complex ETL pipelines, and extra costs.</p><p>There had to be a better way to unify storage and analytics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S33nCIo96WXPP_cw_REJSw.png" /></figure><h3>The Solution: Lakehouse Architecture</h3><p>That’s where the <strong>Lakehouse</strong> comes in. A <strong>Lakehouse</strong> is an architectural approach that combines the low-cost storage of a data lake with the performance and reliability of a data warehouse.</p><p>In other words, it gives you:</p><ul><li>One system for both raw and structured data</li><li>Support for ACID transactions</li><li>Schema enforcement</li><li>SQL compatibility</li></ul><p>It’s designed to simplify the data stack — no more bouncing between a data lake and warehouse just to run analytics.</p><h3>So What is Delta Lake?</h3><p>Delta Lake is a <strong>technology layer</strong> that makes the Lakehouse possible.</p><p>It sits on top of your cloud object storage (like S3, ADLS, or GCS) and adds critical features that traditional data lakes lack:</p><ul><li>ACID transactions (no partial writes)</li><li>Schema enforcement and evolution</li><li>Version control and time travel</li><li>Support for batch and streaming</li><li>Scalable metadata handling</li></ul><p>Delta Lake turns your plain old Parquet-based data lake into something more reliable and production-ready.</p><h3>And a Delta Table?</h3><p>A <strong>Delta Table</strong> is just a table stored using the Delta Lake format. You can think of it as the <em>unit</em> of storage and querying in a Delta Lake system.</p><p>It looks and behaves like a regular table, but with all the benefits Delta Lake brings: versioning, schema enforcement, support for MERGE, DELETE, and UPDATE, etc.</p><p>When you save a DataFrame using .write.format(&quot;delta&quot;), you’re creating a Delta Table.</p><p>What’s inside a Delta Table:</p><ul><li>Parquet files (the data)</li><li>A _delta_log directory (transaction log)</li><li>Optional metadata like schema and partitions</li></ul><h3>Putting It All Together</h3><p>Here’s how they relate:</p><ul><li>A <strong>Delta Table</strong> is a dataset in Delta format</li><li><strong>Delta Lake</strong> is the storage engine that enables ACID and versioning for those tables</li><li>The <strong>Lakehouse</strong> is the architecture that builds on top of Delta Lake to unify analytics and storage</li></ul><p>Each layer adds more structure and capability:</p><ul><li>Data Lake = just files</li><li>Delta Lake = files + logic + reliability</li><li>Lakehouse = architecture that unifies the ecosystem</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc2999c677dc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Take Notes as a Data Engineer: My System for Organizing Knowledge]]></title>
            <link>https://medium.com/@mohamedmeqlad9/how-i-take-notes-as-a-data-engineer-my-system-for-organizing-knowledge-f3fab625ce70?source=rss-2d9e085418f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/f3fab625ce70</guid>
            <category><![CDATA[obsidian]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[personal-development]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[pyton]]></category>
            <dc:creator><![CDATA[Mohamedmeqlad]]></dc:creator>
            <pubDate>Sat, 22 Mar 2025 12:49:54 GMT</pubDate>
            <atom:updated>2025-03-22T12:49:54.964Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qHpyFlufiAGE7Cjr" /></figure><p>I am not going to lie, but I used to rely heavily on <strong>pen and paper</strong> for note-taking. There was something satisfying about jotting things down manually. However, in the tech-driven era, paper notes alone are not enough. They are hard to manage, difficult to search, and not portable. Eventually, I realized the need for a <strong>digital note-taking system</strong> that allows me to organize, edit, and access my notes anytime, anywhere.</p><p>Three months ago, I started using <strong>Obsidian</strong>, which has completely transformed how I manage my notes as a data engineer. With powerful features, plugins, and a growing interconnected graph of knowledge, I can now structure my learning, troubleshooting logs, and project documentation intuitively.</p><p>fast note → if you don’t know anything about obsidian I heavily encourage you to counter this link →<a href="https://www.youtube.com/watch?v=hSTy_BInQs8&amp;t=419s"><em> </em>click here</a></p><h3>Why I Chose Obsidian for Note-Taking</h3><p>There are many note-taking tools available, but I found <strong>Obsidian</strong> to be the perfect fit for my workflow because:</p><ul><li><strong>Markdown-based</strong>: Simple, lightweight, and future-proof.</li><li><strong>Local-first storage</strong>: No dependency on cloud services unless I choose to sync.</li><li><strong>Bidirectional linking &amp; Graph View</strong>: Helps me visualize connections between different concepts.</li><li><strong>Plugins &amp; Customization</strong>: Allows me to extend functionality with useful add-ons.</li></ul><h3>The Power of Obsidian’s Graph View</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/0*hd4aaAoBh5jiCk14" /></figure><p>One of my favorite features of Obsidian is the <strong>Graph View</strong>. Over the past three months, I’ve watched my knowledge network grow into a highly interconnected system. I can now visually explore my notes, identify knowledge gaps, and discover unexpected connections between topics.</p><p>For example, by linking <strong>ETL best practices</strong> to <strong>Airflow DAG optimization tips</strong>, I realized patterns in pipeline performance tuning that I wouldn’t have noticed otherwise.</p><h3>My Folder &amp; Structuring System</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mTkBSLUDbe8Sm_SQ" /></figure><p>To keep my notes organized, I follow a hierarchical structuring approach:</p><ol><li><strong>Main or Mind Category</strong>: This represents the broadest level of my knowledge base.</li><li><strong>Concept Level</strong>: Topics such as Spark, CDMP, or Airflow.</li><li><strong>Sub-Concept Level</strong>: More specific topics within the concept, such as DAGs in Airflow.</li><li><strong>Detailed Level</strong>: Breaking down sub-concepts into even finer details, like “Defining a DAG in Airflow.”</li></ol><p>This structured approach ensures that my notes are <strong>logically organized</strong> and easy to navigate when I need to recall specific information.</p><h3>Capturing Technical Knowledge Efficiently</h3><h3>Dealing with Code Snippets &amp; Debugging Steps</h3><p>One of the most critical aspects of my note-taking system is how I handle <strong>code snippets, scripts, and troubleshooting steps</strong>. I follow a specific technique to ensure my notes remain actionable and easy to use later. My approach includes:</p><ul><li><strong>Problem-Solution Format</strong>: Each note related to a bug fix or debugging process follows a clear structure:</li><li><strong>Issue Description</strong>: A concise explanation of the problem.</li><li><strong>Error Message</strong>: If applicable, I include the exact error message to improve searchability.</li><li><strong>Analysis &amp; Hypothesis</strong>: What I think caused the issue and potential solutions.</li><li><strong>Solution &amp; Steps Taken</strong>: A step-by-step breakdown of how I resolved the problem.</li><li><strong>Code Snippet</strong>: Any commands, SQL queries, or Python scripts I used.</li><li><strong>Reference Links</strong>: Any external sources that helped me.</li><li><strong>Tagging for Quick Access</strong>: I use specific tags like #debugging, #SQL-tricks, and #airflow-errors to quickly retrieve relevant notes.</li></ul><p><strong>Code Block Formatting</strong>: Obsidian supports Markdown code blocks, so I format my scripts neatly for readability:</p><pre>from airflow.models import TaskInstance<br>def retry_failed_task(task_id):<br>&quot;&quot;Retries a failed Airflow task by task_id.&quot;&quot;<br>task = TaskInstance(task_id=task_id)<br>task.run()</pre><ul><li><strong>Linking Related Notes</strong>: I connect troubleshooting steps to broader concept notes. For example, if I document an issue with “Airflow DAG Not Scheduling,” I link it to my <strong>Airflow Best Practices</strong> note for future reference.</li></ul><p>This technique ensures that whenever I revisit an issue, I have all the relevant information and solutions at my fingertips, without having to search through scattered documentation.</p><h3>Final Thoughts</h3><p>Transitioning from pen and paper to a <strong>digital-first note-taking approach</strong> has significantly improved how I manage technical knowledge. Obsidian, with its Markdown support, linking capabilities, and growing graph of interconnected notes, has made learning and problem-solving more efficient.</p><p>If you’re a data engineer looking to <strong>level up your note-taking game</strong>, I highly recommend trying Obsidian. Start simple, build your system gradually, and see how it transforms your workflow.</p><p><strong>How do you take notes as a data engineer?</strong> Share your thoughts in the comments!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f3fab625ce70" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Future of Data Engineering in the AI Era]]></title>
            <link>https://medium.com/@mohamedmeqlad9/the-future-of-data-engineering-in-the-ai-era-3867370fd2dd?source=rss-2d9e085418f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/3867370fd2dd</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Mohamedmeqlad]]></dc:creator>
            <pubDate>Fri, 28 Feb 2025 11:55:56 GMT</pubDate>
            <atom:updated>2025-02-28T11:55:56.069Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*76D7wDZxMyzq7Bbs.jpg" /></figure><p>Over the last weeks, I was doing research about the impact of AI on data engineering. The rise of AI is reshaping industries, and data engineering is no exception. Many professionals worry that automation and AI-driven tools will reduce the demand for data engineers. However, the reality is more complicated than this. AI is shifting the nature of data engineering rather than eliminating it.</p><h3>How AI is Changing Data Engineering</h3><p>The introduction of AI-powered automation is reducing the need for repetitive tasks. ETL processes, data pipeline optimizations, and query tuning can now be automated to a large extent. data engineering tools with built-in AI capabilities to optimize data workflows.</p><p>At the same time, data engineering is becoming more integrated with AI and machine learning workflows. Companies are demanding engineers who understand data governance, MLOps, and real-time data processing. The focus is shifting toward <strong>ensuring data quality, reliability, and scalability</strong> rather than just writing ETL scripts.</p><h3>Data Engineering is not like Software Engineering</h3><p>Unlike software engineering, which is often focused on writing application code and building features, data engineering is fundamentally about <strong>data movement, transformation, and management</strong>. It requires a deep understanding of <strong>data modeling, storage optimization, and pipeline orchestration</strong>, rather than just coding proficiency.</p><p>Data engineers must think in terms of <strong>data architecture, scalability, and governance</strong> rather than only focusing on implementation. While software engineering is concerned with delivering functional applications, data engineering is more about ensuring <strong>data is reliable, accessible, and well-structured</strong> for downstream usage. This conceptual nature makes data engineering more resilient to automation, as AI tools struggle with the high-level design and strategic decision-making involved in data workflows.</p><h3>What to Expect in the Next Five Years</h3><p>The demand for data engineers is expected to evolve, but not decline. Instead, roles will require <strong>more strategic thinking, automation knowledge, and adaptability</strong>. Some key trends include:</p><p>📉 <strong>Decreasing demand for:</strong></p><ul><li>Basic ETL developers who manually build data pipelines.</li><li>Engineers focused purely on SQL query writing.</li><li>Repetitive data transformation tasks that AI can automate.</li></ul><p>📈 <strong>Increasing demand for:</strong></p><ul><li><strong>Cloud Data Engineers</strong> optimizing workflows in AWS, Azure, and GCP.</li><li><strong>Data Reliability Engineers</strong> ensuring that AI-driven data pipelines are trustworthy.</li><li><strong>MLOps &amp; Data Engineers</strong> who bridge traditional data engineering with AI workflows.</li><li><strong>Streaming Data Experts</strong> working with real-time architectures like Kafka and Flink.</li></ul><p>The industry is evolving toward <strong>AI-augmented data engineering</strong>, where professionals will collaborate with AI rather than compete against it.</p><h3>The Reality of AI in Data Engineering</h3><p>Despite concerns, AI is unlikely to replace data engineers entirely. AI models still require clean, structured, and well-governed data to function effectively. Engineers will remain responsible for:</p><ul><li><strong>Data architecture and modeling</strong> to ensure efficient AI adoption.</li><li><strong>Building scalable infrastructure</strong> that can support AI-driven analytics.</li><li><strong>Ensuring data compliance and security</strong>, which AI tools cannot handle autonomously.</li></ul><p>Rather than a decline in jobs, we are seeing a <strong>shift in responsibilities</strong>. Engineers who embrace AI-driven tools will likely become <strong>more valuable</strong>, while those who rely on outdated methods may struggle to keep up with industry changes.</p><h3>Final Thoughts</h3><p>AI is not eliminating data engineering, but rather transforming it into a more automated, intelligent field. The demand for advanced data engineers will continue to grow, especially in areas like cloud infrastructure, MLOps, and real-time data processing. The key to thriving in this new landscape is recognizing that AI is a tool for augmentation, not replacement. <strong>The role of data engineers is evolving, not disappearing.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3867370fd2dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Installing Apache Airflow on Docker (Ubuntu)]]></title>
            <link>https://medium.com/@mohamedmeqlad9/installing-apache-airflow-on-docker-ubuntu-3a06640cf0a9?source=rss-2d9e085418f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a06640cf0a9</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[airflow]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[ubuntu]]></category>
            <dc:creator><![CDATA[Mohamedmeqlad]]></dc:creator>
            <pubDate>Thu, 21 Dec 2023 18:19:42 GMT</pubDate>
            <atom:updated>2023-12-21T18:19:42.474Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h1k88rlMmLAVPOWdSjxWLw.png" /></figure><p>Apache Airflow is an open-source platform to programmatically author, schedule, and monitor workflows. Using Docker to install Airflow ensures a consistent and isolated environment. This guide will walk you through the process of setting up Apache Airflow on Docker for Ubuntu.</p><h3>Prerequisites</h3><ol><li>Docker Installation: Ensure that Docker is installed on your Ubuntu machine. If not, you can install it by running the following commands:</li></ol><pre>sudo apt update<br>sudo apt install docker.io</pre><p>Start and enable the Docker service:</p><pre>sudo systemctl start docker<br>sudo systemctl enable docker</pre><p>2.Docker Compose: Install Docker Compose for managing multi-container Docker applications. You can install it using:</p><pre>sudo apt install docker-compose</pre><h3>Setting Up Apache Airflow</h3><ol><li>Create a Docker Compose File: Create a file named docker-compose.yml with the following content:</li></ol><pre>version: &#39;3&#39;<br><br>services:<br>  postgres:<br>    image: postgres:13<br>    environment:<br>      POSTGRES_USER: airflow<br>      POSTGRES_PASSWORD: airflow<br>      POSTGRES_DB: airflow<br>    ports:<br>      - &quot;5432:5432&quot;<br>    networks:<br>      - airflow<br><br>  webserver:<br>    image: apache/airflow:2.1.2<br>    environment:<br>      - AIRFLOW__CORE__EXECUTOR=LocalExecutor<br>      - AIRFLOW__CORE__SQL_ALCHEMY_CONN=postgresql+psycopg2://airflow:airflow@postgres/airflow<br>    ports:<br>      - &quot;8080:8080&quot;<br>    depends_on:<br>      - postgres<br>    networks:<br>      - airflow<br><br>networks:<br>  airflow:</pre><p>This configuration sets up a PostgreSQL database for Airflow and the Airflow web server.</p><p>2.Create Airflow Folders:</p><p>In the same directory as your docker-compose.yml file, create three folders:</p><pre>mkdir dags<br>mkdir logs<br>mkdir plugins</pre><p>These folders will be used by Airflow for storing DAGs, logs, and custom plugins.</p><p>3.Start Airflow: Run the following command in the directory containing the docker-compose.yml file:</p><pre>docker-compose up -d</pre><ol><li>This command will download the necessary Docker images and start the Airflow containers.</li><li>Access the Airflow Web UI: Open your web browser and navigate to <a href="http://localhost:8080.">http://localhost:8080.</a> You should see the Airflow web interface.</li><li>Login to Airflow: The default credentials are:</li></ol><ul><li>Username: admin</li><li>Password: admin</li></ul><ol><li>Change the password immediately after logging in.</li></ol><h3>Conclusion</h3><p>Congratulations! You have successfully installed Apache Airflow on Docker for Ubuntu. This setup provides a scalable and reproducible environment for managing your workflows. Explore the Airflow web UI to create and schedule your workflows efficiently.</p><p>Feel free to customize the Docker Compose file to suit your specific requirements, such as adding additional services or modifying configurations.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a06640cf0a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Faker the perfect python package to generate fake data]]></title>
            <link>https://medium.com/@mohamedmeqlad9/faker-the-perfect-python-package-to-generate-fake-data-6f43fa168e86?source=rss-2d9e085418f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f43fa168e86</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[python-coding]]></category>
            <dc:creator><![CDATA[Mohamedmeqlad]]></dc:creator>
            <pubDate>Sat, 11 Nov 2023 17:59:00 GMT</pubDate>
            <atom:updated>2023-11-11T17:59:00.203Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/349/1*_QVLbT8uVaLOLSu4om5VIA.png" /></figure><h3>Introduction</h3><p>generating realistic and diverse data for testing and prototyping purposes can be a time-consuming and tedious task. This is where the Faker Python library comes to the rescue. Faker is a powerful open-source library that provides developers with a simple and efficient way to generate fake data in a wide range of formats</p><h3>what is faker ?</h3><p>Faker is a Python library developed by François Best that generates large volumes of high-quality fake data. It is designed to produce realistic data in various formats, including names, addresses, phone numbers, dates, and more. With Faker, developers can easily populate databases and create realistic test environments without the risk of using sensitive or real data.</p><h3>Install and usage</h3><p>Install with pip:</p><pre>pip install Faker</pre><p>Use faker.Faker() to create and initialize a faker generator, which can generate data by accessing properties named after the type of data you want.</p><pre>from faker import Faker<br>fake = Faker()<br><br>fake.name()<br># &#39;Lucy Cechtelar&#39;<br><br>fake.address()<br># &#39;426 Jordy Lodge<br>#  Cartwrightshire, SC 88120-6700&#39;<br><br>fake.text()<br># &#39;Sint velit eveniet. Rerum atque repellat voluptatem quia rerum. Numquam excepturi</pre><p>Each call to method fake.name() yields a different (random) result. This is because faker forwards faker.Generator.method_name() calls to faker.Generator.format(method_name).</p><pre>for i in range(10):<br>  print(fake.name())<br><br># &#39;Adaline Reichel&#39;<br># &#39;Dr. Santa Prosacco DVM&#39;<br># &#39;Noemy Vandervort V&#39;<br># &#39;Lexi O&#39;Conner&#39;<br># &#39;Gracie Weber&#39;<br># &#39;Roscoe Johns&#39;<br># &#39;Emmett Lebsack&#39;<br># &#39;Keegan Thiel&#39;<br># &#39;Wellington Koelpin II&#39;<br># &#39;Ms. Karley Kiehn V&#39;</pre><h3>Localization</h3><p>faker.Faker can take a locale as an argument, to return localized data. If no localized provider is found, the factory falls back to the default LCID string for US english, ie: en_US.</p><pre>from faker import Faker<br>fake = Faker([&#39;it_IT&#39;, &#39;en_US&#39;, &#39;ja_JP&#39;]) #it --&gt; italy ja --&gt; japan<br>for _ in range(10):<br>    print(fake.name())<br><br># 鈴木 陽一<br># Leslie Moreno<br># Emma Williams<br># 渡辺 裕美子<br># Marcantonio Galuppi<br># Martha Davis<br># Kristen Turner<br># 中津川 春香<br># Ashley Castillo<br># 山田 桃子</pre><h3>Unique values</h3><p>Through use of the .unique property on the generator, you can guarantee that any generated values are unique for this specific instance.</p><pre>from faker import Faker<br>fake = Faker()<br>names = [fake.unique.first_name() for i in range(500)]<br>assert len(set(names)) == len(names)</pre><h3>Seeding the Generator</h3><p>When using Faker for unit testing, you will often want to generate the same data set. For convenience, the generator also provide a seed() method, which seeds the shared random number generator. Seed produces the same result when the same methods with the same version of faker are called.</p><pre>from faker import Faker<br>fake = Faker()<br>Faker.seed(4321)<br><br>print(fake.name())<br># &#39;Margaret Boehm&#39;</pre><p>Each generator can also be switched to its own instance of random.Random, separate to the shared one, by using the seed_instance() method, which acts the same way. For example:</p><pre>from faker import Faker<br>fake = Faker()<br>fake.seed_instance(4321)<br><br>print(fake.name())<br># &#39;Margaret Boehm&#39;</pre><h3>Conclusion</h3><p><em>Faker</em> is a Python package that generates fake data for you. Whether you need to bootstrap your database, create good-looking XML documents, fill-in your persistence to stress test it, or anonymize data taken from a production service, Faker is for you.</p><p>in this article I have introduce a brief introduction to faker with a discuss for some of it’s features to know every thing about faker you can check the official documentation from here <a href="https://faker.readthedocs.io/en/master/">https://faker.readthedocs.io/en/master/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f43fa168e86" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>