<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Blog (Posts about python)</title><link>https://blog.pronus.io/</link><description></description><atom:link href="https://blog.pronus.io/en/categories/python.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><lastBuildDate>Wed, 05 Aug 2026 18:19:59 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Developing a FastAPI Application for File Sharing - Part 1</title><link>https://blog.pronus.io/en/posts/python/fastapi/developing-a-fastapi-application-for-file-sharing-part-1/</link><dc:creator>André Felipe Dias</dc:creator><description>&lt;div&gt;&lt;a href="https://transfer.pronus.xyz"&gt;
        &lt;img class="cover" alt="Developing a FastAPI Application for File Sharing - Part 1" src="https://blog.pronus.io/images/python/developing_transfer_project-part_1.svg"&gt;
    &lt;/a&gt;
    &lt;p&gt;This is a tutorial for building a WEB application for sharing files, very useful in cases where there is no access via &lt;code&gt;SSH&lt;/code&gt;. The application will be developed using the &lt;a href="https://blog.pronus.io/en/posts/python/fastapi/minimal-fastapi-project/"&gt;minimal FastAPI project&lt;/a&gt; template , which will save a lot of time and effort as we will start from a ready-made basic project structure.&lt;/p&gt;
    &lt;aside class="tip"&gt;The working version of this project is available at &lt;a href="https://transfer.pronus.xyz"&gt;https://transfer.pronus.xyz&lt;/a&gt;&lt;/aside&gt;
    &lt;p&gt;&lt;a href="https://blog.pronus.io/en/posts/python/fastapi/developing-a-fastapi-application-for-file-sharing-part-1/"&gt;Read more…&lt;/a&gt; (21 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>development</category><category>fastapi</category><category>file sharing</category><category>python</category><category>tutorial</category><category>web application</category><guid>https://blog.pronus.io/en/posts/python/fastapi/developing-a-fastapi-application-for-file-sharing-part-1/</guid><pubDate>Wed, 01 Nov 2023 10:30:00 GMT</pubDate></item><item><title>How to Create Structured and Traceable Logs in FastAPI Applications</title><link>https://blog.pronus.io/en/posts/python/fastapi/how-to-create-structured-and-traceable-logs-in-fastapi-applications/</link><dc:creator>André Felipe Dias</dc:creator><description>&lt;div&gt;&lt;img class="cover" alt="https://www.flickr.com/photos/gregloby/3763720734/" src="https://blog.pronus.io/images/fotos/3763720734_3c9e8daf68_c.jpg"&gt;
    &lt;p&gt;Log messages are fundamental for monitoring applications in production, but often these messages are inadequate. This article presents how to enhance log message generation in FastAPI applications using Loguru as the logging module, JSON formatting, and log message identification through request IDs.&lt;/p&gt;
    &lt;p&gt;&lt;a href="https://blog.pronus.io/en/posts/python/fastapi/how-to-create-structured-and-traceable-logs-in-fastapi-applications/"&gt;Read more…&lt;/a&gt; (21 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>exception handlers</category><category>fastapi</category><category>json</category><category>logs</category><category>loguru</category><category>python</category><guid>https://blog.pronus.io/en/posts/python/fastapi/how-to-create-structured-and-traceable-logs-in-fastapi-applications/</guid><pubDate>Wed, 25 Oct 2023 12:48:00 GMT</pubDate></item><item><title>Packaging and Distribution of the Minimal FastAPI Project</title><link>https://blog.pronus.io/en/posts/python/fastapi/packaging-and-distribution-of-the-minimal-fastapi-project/</link><dc:creator>André Felipe Dias</dc:creator><description>&lt;div&gt;&lt;img class="cover" src="https://blog.pronus.io/images/fastapi/arquitetura_docker_compose_fastapi_minimo.svg" alt=""&gt;
    &lt;p&gt;This is the second in the series of articles about building the &lt;strong&gt;Minimal FastAPI Project&lt;/strong&gt;. While the &lt;a href="https://blog.pronus.io/en/posts/python/fastapi/minimal-fastapi-project/"&gt;previous article&lt;/a&gt; covered directory structure, virtual environment, code linting, continuous integration, version control, and automated tests, this article deals with distributing the application in the form of Docker containers.&lt;/p&gt;
    &lt;p&gt;As a final result, we will have the &lt;code&gt;FastAPI&lt;/code&gt; application running in a &lt;code&gt;Docker&lt;/code&gt; container, accessible through &lt;code&gt;Caddy&lt;/code&gt; as a reverse proxy and with services orchestrated by &lt;code&gt;Docker Compose&lt;/code&gt;. This solution can be used directly in production or as a foundation for more complex projects. Furthermore, it works the same way in both development and production.&lt;/p&gt;
    &lt;p&gt;&lt;a href="https://blog.pronus.io/en/posts/python/fastapi/packaging-and-distribution-of-the-minimal-fastapi-project/"&gt;Read more…&lt;/a&gt; (15 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>caddy</category><category>container</category><category>containers</category><category>contêiner</category><category>deploy</category><category>deployment</category><category>distribuição</category><category>docker</category><category>docker compose</category><category>empacotamento</category><category>fastapi</category><category>gabarito</category><category>orquestração</category><category>proxy reverso</category><category>python</category><category>reverse proxy</category><category>template</category><category>tutorial</category><guid>https://blog.pronus.io/en/posts/python/fastapi/packaging-and-distribution-of-the-minimal-fastapi-project/</guid><pubDate>Fri, 29 Sep 2023 15:37:27 GMT</pubDate></item><item><title>Minimal FastAPI Project</title><link>https://blog.pronus.io/en/posts/python/fastapi/minimal-fastapi-project/</link><dc:creator>André Felipe Dias</dc:creator><description>&lt;div&gt;&lt;img class="cover" src="https://blog.pronus.io/images/python/fastapi_logo.svg" alt=""&gt;
    &lt;p&gt;This article demonstrates how to start even the smallest FastAPI project in the best possible way, with a proper structure, using a virtual environment, code linting, continuous integration (GitHub Actions), version control, and automated testing. From there, it's possible to expand the project according to the needs, using it for serverless, data science, REST API, programming education, as a foundation for new templates, and other purposes.&lt;/p&gt;
    &lt;p&gt;The main difference between this project and other templates is that it contains only a minimal set of functionalities and dependencies to form a solid foundation for other projects.&lt;/p&gt;
    &lt;aside class="tip"&gt;
        &lt;p&gt;TLDR&lt;/p&gt;
        &lt;p&gt;The &lt;a href="https://github.com/andredias/perfect_python_project/tree/fastapi-minimum"&gt;minimal FastAPI project template&lt;/a&gt; is available and ready to be used. Follow the instructions available in &lt;code&gt;README.rst&lt;/code&gt; to instantiate a new project.&lt;/p&gt;
    &lt;/aside&gt;
    &lt;p&gt;&lt;a href="https://blog.pronus.io/en/posts/python/fastapi/minimal-fastapi-project/"&gt;Read more…&lt;/a&gt; (14 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>fastapi</category><category>project</category><category>python</category><category>tutorial</category><guid>https://blog.pronus.io/en/posts/python/fastapi/minimal-fastapi-project/</guid><pubDate>Tue, 10 Jan 2023 15:25:00 GMT</pubDate></item><item><title>Managing Version, Virtual Environments and Dependencies with Pyenv and Poetry</title><link>https://blog.pronus.io/en/posts/python/managing-versions-virtual-environments-and-dependencies-with-pyenv-and-poetry/</link><dc:creator>André Felipe Dias</dc:creator><description>&lt;div&gt;&lt;img class="cover" src="https://blog.pronus.io/images/python/pyenv_poetry.jpg" alt=""&gt;
    &lt;p&gt;Software developers always have several projects on their computers using different languages, versions of those languages, libraries, and tools. So that one project does not interfere with another, they must be isolated somehow. In the case of Python projects, we will need tools that manage Python versions, virtual environments, and project dependencies. There are several options, but let's focus on two:&lt;/p&gt;
    &lt;ol type="1"&gt;
        &lt;li&gt;&lt;a href="https://github.com/pyenv/pyenv"&gt;pyenv&lt;/a&gt; manages different versions of Python on the same machine&lt;/li&gt;
        &lt;li&gt;&lt;a href="https://python-poetry.org/"&gt;poetry&lt;/a&gt; manages virtual environments and project dependencies within those virtual environments.&lt;/li&gt;
    &lt;/ol&gt;
    &lt;p&gt;&lt;a href="https://blog.pronus.io/en/posts/python/managing-versions-virtual-environments-and-dependencies-with-pyenv-and-poetry/"&gt;Read more…&lt;/a&gt; (11 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>poetry</category><category>pyenv</category><category>python</category><guid>https://blog.pronus.io/en/posts/python/managing-versions-virtual-environments-and-dependencies-with-pyenv-and-poetry/</guid><pubDate>Thu, 02 Dec 2021 10:49:00 GMT</pubDate></item><item><title>Program in the Browser Using Code Lab</title><link>https://blog.pronus.io/en/posts/programe-pelo-navegador-com-code-lab/</link><dc:creator>André Felipe Dias</dc:creator><description>&lt;div&gt;&lt;img src="https://blog.pronus.io/images/codelab_codebox/codelab_screenshot.png" alt=""&gt;
    &lt;!-- title: Referências Comuns --&gt;
    &lt;!-- slug: referencias-comuns --&gt;
    &lt;!-- date: 2020-03-23 03:07:44 UTC-03:00 --&gt;
    &lt;!-- tags: referencias --&gt;
    &lt;!-- author: André Felipe Dias --&gt;
    &lt;!-- status: draft --&gt;
    &lt;p&gt;The &lt;a href="https://codelab.pronus.xyz"&gt;Code Lab&lt;/a&gt; project allows programming directly in the browser, without any other external dependencies. It is interesting for cases where you want to do a quick experiment but there is no computer with the programming language installed and configured nearby.&lt;/p&gt;
    &lt;p&gt;This project was originally done as a proof of concept and also to help my students to use different programming languages ​ without installing anything on their machines.&lt;/p&gt;
    &lt;p&gt;&lt;a href="https://blog.pronus.io/en/posts/programe-pelo-navegador-com-code-lab/"&gt;Read more…&lt;/a&gt; (4 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>fastapi</category><category>javascript</category><category>python</category><category>vuejs</category><guid>https://blog.pronus.io/en/posts/programe-pelo-navegador-com-code-lab/</guid><pubDate>Fri, 16 Apr 2021 13:00:07 GMT</pubDate></item></channel></rss>