<?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 anish gul on Medium]]></title>
        <description><![CDATA[Stories by anish gul on Medium]]></description>
        <link>https://medium.com/@anishps3games?source=rss-511ef4e2a081------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*cCnZLaHZuGFvDRwh</url>
            <title>Stories by anish gul on Medium</title>
            <link>https://medium.com/@anishps3games?source=rss-511ef4e2a081------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 06:09:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anishps3games/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[Building an End-to-End Data Engineering Pipeline Using CoinGecko, Python, PostgreSQL, Docker, and…]]></title>
            <link>https://medium.com/@anishps3games/building-an-end-to-end-data-engineering-pipeline-using-coingecko-python-postgresql-docker-and-8b5c76fa38fc?source=rss-511ef4e2a081------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b5c76fa38fc</guid>
            <category><![CDATA[criptocurrency]]></category>
            <category><![CDATA[deployment-pipelines]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[anish gul]]></dc:creator>
            <pubDate>Mon, 21 Sep 2026 09:03:45 GMT</pubDate>
            <atom:updated>2026-09-21T09:03:45.025Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building an End-to-End Data Engineering Pipeline Using CoinGecko, Python, PostgreSQL, Docker, and Streamlit</h3><p><strong>By Anish Gulhane</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-JmdXze1kMRJ5RYnLfnzjw.png" /></figure><h3>Introduction</h3><p>Data engineering is the process of collecting, processing, storing, and making data available for analysis and decision-making. To understand these concepts practically, I built a simple end-to-end data engineering project using CoinGecko, Python, PostgreSQL, Docker, and Streamlit.</p><p>The main objective of this project was to understand how data moves through different stages of a pipeline, starting from an external API and ending with a dashboard. The architecture consists of a CoinGecko API as the data source, a Python script called load_to_db.py for loading the data, PostgreSQL for storing the data, Docker for running the PostgreSQL service, and dashboard.py for creating a Streamlit dashboard. The project is organized as a local data engineering environment.</p><p>architecture.html</p><p>This project helped me understand how individual technologies work together to form a complete data pipeline.</p><h3>Project Architecture</h3><p>The overall architecture follows a simple flow: data is collected from the CoinGecko API, passed to the Python loader, inserted into PostgreSQL, and then retrieved by the Streamlit dashboard.</p><p>The CoinGecko API acts as the source of cryptocurrency data. The data is transferred using JSON over HTTP. The Python loader receives this data and loads it into the PostgreSQL database. Once the data is stored, the dashboard retrieves it using SQL queries and displays it through Streamlit.</p><p>architecture.html</p><p>The architecture can therefore be understood through four main stages: data collection, data loading, data storage, and data visualization.</p><h3>Data Collection Using CoinGecko API</h3><p>The first stage of the pipeline is data collection.</p><p>For this project, I used the CoinGecko API as the external data source. APIs are an important part of modern data engineering because they allow applications to retrieve structured data from external services.</p><p>In this project, the data is received in JSON format through HTTP. This provides the initial raw data that is passed into the next stage of the pipeline.</p><p>The important point here is that the API is only responsible for providing the data. It does not need to know how the data will eventually be stored or displayed.</p><h3>Loading Data with Python</h3><p>After collecting the data, the next step is to load it into a database.</p><p>For this purpose, I used a Python script called load_to_db.py. The architecture identifies this file as the loader script and places it between the CoinGecko API and PostgreSQL.</p><p>architecture.html</p><p>The loader acts as a bridge between the external source and the database. It takes the incoming data and performs the required database insertion.</p><p>This separation is important because it gives each part of the system a specific responsibility. The API provides the data, the Python script handles the loading process, and PostgreSQL takes care of persistent storage.</p><h3>PostgreSQL as the Database</h3><p>The next major component is PostgreSQL.</p><p>The project uses PostgreSQL to store the collected cryptocurrency data. The architecture represents the database as crypto_raw, and the loader sends an INSERT operation to this database.</p><p>architecture.html</p><p>Using PostgreSQL provides a persistent storage layer for the pipeline. Instead of relying only on temporary API responses or local files, the data can be stored in a structured database and accessed later using SQL.</p><p>This also allows other applications to use the same stored data without having to communicate directly with the external API.</p><h3>Running PostgreSQL with Docker</h3><p>Another important part of the project is Docker.</p><p>The PostgreSQL database is configured as a Docker container. The architecture identifies it as a PostgreSQL service running inside Docker. The database connection uses port mapping 5433:5432.</p><p>architecture.html</p><p>Docker is useful because it provides an isolated and reproducible environment for the database. Instead of installing and configuring PostgreSQL directly on the local machine, the database can run inside a container.</p><p>This makes the project environment easier to manage and provides a foundation for deploying the same setup in different environments.</p><h3>Building the Dashboard with Streamlit</h3><p>Once the data has been stored in PostgreSQL, it needs to be accessed and presented.</p><p>For this project, I used Streamlit to build the dashboard. The dashboard is implemented in dashboard.py, which the architecture identifies as the Streamlit user interface.</p><p>architecture.html</p><p>The dashboard retrieves information from PostgreSQL using SELECT queries. This means that the dashboard does not need to directly communicate with CoinGecko.</p><p>The database acts as the middle layer between data ingestion and data visualization.</p><p>This creates a clean separation between the backend data pipeline and the frontend dashboard.</p><h3>Complete Data Flow</h3><p>The complete pipeline starts with CoinGecko and ends with the Streamlit dashboard.</p><p>First, cryptocurrency data is collected from the CoinGecko API. The data is received in JSON format through HTTP.</p><p>Next, load_to_db.py processes the incoming data and loads it into PostgreSQL.</p><p>The PostgreSQL database stores the data in crypto_raw.</p><p>Finally, dashboard.py retrieves the required information from PostgreSQL using SQL SELECT queries and presents it through the Streamlit interface.</p><p>Therefore, the complete flow of the project is:</p><p>CoinGecko API → Python Loader → PostgreSQL → Streamlit Dashboard</p><p>This represents a basic but complete data engineering pipeline.</p><h3>Why This Project Is Important</h3><p>Although this is a relatively small project, it demonstrates several important concepts in data engineering.</p><p>The first concept is separation of responsibilities. Each component has a specific role. CoinGecko provides the data, Python handles the loading process, PostgreSQL stores the data, Docker provides the database environment, and Streamlit provides the visualization layer.</p><p>The second concept is data persistence. Once the data is loaded into PostgreSQL, it can be stored and queried independently of the original API.</p><p>The third concept is data lineage. It is possible to follow the journey of the data from the original source through the loader and database and finally to the dashboard.</p><p>The fourth concept is modularity. Each part of the system can be developed and improved independently. For example, the dashboard can be modified without changing the API, and the database can be improved without completely redesigning the dashboard.</p><h3>What I Learned</h3><p>Working on this project helped me understand that data engineering is not simply about collecting data.</p><p>A successful pipeline needs a clear structure for moving data between different systems.</p><p>Through this project, I learned how an external API can act as a data source, how Python can be used to load data into a relational database, how PostgreSQL can provide persistent storage, how Docker can be used to run database services, and how Streamlit can turn stored data into an interactive application.</p><p>More importantly, I learned how these technologies can work together as a single system rather than as separate tools.</p><h3>Future Improvements</h3><p>This project can be extended in several ways.</p><p>The pipeline could be automated so that cryptocurrency data is collected at regular intervals. Data validation and error handling could be added to make the ingestion process more reliable. Logging could be introduced to track successful and failed pipeline executions.</p><p>The database could also be expanded to include additional tables for cleaned and transformed data. More advanced SQL queries and indexes could be introduced as the amount of data increases.</p><p>Another possible improvement would be to introduce a workflow orchestration tool to manage the different stages of the pipeline automatically.</p><p>These improvements would gradually transform the current project from a simple local pipeline into a more advanced data engineering system.</p><h3>Conclusion</h3><p>This project gave me practical experience in building an end-to-end data engineering pipeline.</p><p>The architecture begins with the CoinGecko API, which provides the source data. The Python load_to_db.py script handles the loading process and inserts the data into PostgreSQL. PostgreSQL provides persistent storage, while Docker runs the database as a containerized service. Finally, dashboard.py uses Streamlit to retrieve and present the stored data.</p><p>architecture.html</p><p>The project demonstrates a simple but important principle of data engineering: data needs to move through clearly defined stages before it becomes useful to the end user.</p><p>Building this project helped me understand the connection between data ingestion, database storage, SQL querying, containerization, and visualization. It also provides a foundation for exploring more advanced topics such as automation, data transformation, orchestration, monitoring, and data quality.</p><p><strong>By Anish Gulhane</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b5c76fa38fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>