<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Shelwyn Corte</title>
    <description>The latest articles on DEV Community by Shelwyn Corte (@shelwyn_corte).</description>
    <link>https://dev.to/shelwyn_corte</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2256123%2Ff6aea24a-60ef-4b8e-9893-2f6772f1fdf6.png</url>
      <title>DEV Community: Shelwyn Corte</title>
      <link>https://dev.to/shelwyn_corte</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shelwyn_corte"/>
    <language>en</language>
    <item>
      <title>Python chatbot under 10 lines of code.</title>
      <dc:creator>Shelwyn Corte</dc:creator>
      <pubDate>Fri, 16 May 2025 06:00:53 +0000</pubDate>
      <link>https://dev.to/shelwyn_corte/python-chatbot-under-10-lines-of-code-2m82</link>
      <guid>https://dev.to/shelwyn_corte/python-chatbot-under-10-lines-of-code-2m82</guid>
      <description>&lt;p&gt;Here is how you can create a #python #chatbot under 10 lines of code leveraging #googleGemini LLM&lt;/p&gt;

&lt;p&gt;1 - Hit &lt;a href="https://aistudio.google.com/apikey" rel="noopener noreferrer"&gt;https://aistudio.google.com/apikey&lt;/a&gt; and get yourself an FREE API-KEY&lt;br&gt;
2 - install python and pip install google-generative-ai&lt;br&gt;
3 - create a python file (bot.py), use the below code&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1v8878sivc9nwapcg9ba.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1v8878sivc9nwapcg9ba.jpeg" alt="Image description" width="800" height="458"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>gemini</category>
    </item>
    <item>
      <title>Beyond YOLO: Implementing D-FINE Object Detection for Superior Precision</title>
      <dc:creator>Shelwyn Corte</dc:creator>
      <pubDate>Sat, 10 May 2025 03:33:47 +0000</pubDate>
      <link>https://dev.to/shelwyn_corte/beyond-yolo-implementing-d-fine-object-detection-for-superior-precision-1epo</link>
      <guid>https://dev.to/shelwyn_corte/beyond-yolo-implementing-d-fine-object-detection-for-superior-precision-1epo</guid>
      <description>&lt;p&gt;Object detection remains one of the most practical and widely applied tasks in computer vision. While YOLO (You Only Look Once) has dominated this space for years with its speed and simplicity, a new approach is gaining traction among researchers and practitioners looking for improved accuracy: D-FINE.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://shelwyncorte.medium.com/beyond-yolo-implementing-d-fine-object-detection-for-superior-precision-a695523c26c7" rel="noopener noreferrer"&gt;Code and instructions &lt;/a&gt;&lt;/p&gt;

</description>
      <category>computervision</category>
      <category>machinelearning</category>
      <category>deeplearning</category>
      <category>ai</category>
    </item>
    <item>
      <title>Build a Speaking RAG Locally</title>
      <dc:creator>Shelwyn Corte</dc:creator>
      <pubDate>Mon, 17 Mar 2025 04:59:44 +0000</pubDate>
      <link>https://dev.to/shelwyn_corte/build-a-speaking-rag-locally-3kap</link>
      <guid>https://dev.to/shelwyn_corte/build-a-speaking-rag-locally-3kap</guid>
      <description>&lt;p&gt;&lt;iframe src="https://player.vimeo.com/video/1066271216" width="710" height="399"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Here is link to the git repo: &lt;a href="https://github.com/shelwyn/fox" rel="noopener noreferrer"&gt;https://github.com/shelwyn/fox&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>javascript</category>
      <category>ai</category>
    </item>
    <item>
      <title>Build Your Own Offline AI Chatbot: Running DeepSeek Locally with Ollama</title>
      <dc:creator>Shelwyn Corte</dc:creator>
      <pubDate>Fri, 07 Feb 2025 11:16:42 +0000</pubDate>
      <link>https://dev.to/shelwyn_corte/build-your-own-offline-ai-chatbot-running-deepseek-locally-with-ollama-51pk</link>
      <guid>https://dev.to/shelwyn_corte/build-your-own-offline-ai-chatbot-running-deepseek-locally-with-ollama-51pk</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx78rn9c1rzb5xk26a3it.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx78rn9c1rzb5xk26a3it.png" alt="Image description" width="686" height="386"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;get the complete code &lt;a href="https://medium.com/@shelwyncorte/build-your-own-offline-ai-chatbot-running-deepseek-locally-with-ollama-d8921c20bb53" rel="noopener noreferrer"&gt;here&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>ollama</category>
      <category>deepseek</category>
      <category>localai</category>
    </item>
    <item>
      <title>Build Your Own Free AI Chatbot: A Step-by-Step Guide Using DeepSeek and FastAPI</title>
      <dc:creator>Shelwyn Corte</dc:creator>
      <pubDate>Wed, 29 Jan 2025 14:49:50 +0000</pubDate>
      <link>https://dev.to/shelwyn_corte/build-your-own-free-ai-chatbot-a-step-by-step-guide-using-deepseek-and-fastapi-283b</link>
      <guid>https://dev.to/shelwyn_corte/build-your-own-free-ai-chatbot-a-step-by-step-guide-using-deepseek-and-fastapi-283b</guid>
      <description>&lt;p&gt;Create a powerful chatbot with 1,000 free daily requests — no paid APIs needed!&lt;br&gt;
I’ll walk you through creating a simple yet powerful chatbot using DeepSeek’s language model, FastAPI, and plain HTML/JavaScript — all while staying within the free tier of HuggingFace’s Inference API.&lt;/p&gt;

&lt;p&gt;GitHub Repository: &lt;a href="https://github.com/shelwyn/try-deepSeek-ai" rel="noopener noreferrer"&gt;[try-deepSeek-ai]&lt;/a&gt;&lt;/p&gt;

</description>
      <category>deepseek</category>
      <category>fastapi</category>
      <category>python</category>
    </item>
    <item>
      <title>Capture and stream video on browser with Python-FLASK</title>
      <dc:creator>Shelwyn Corte</dc:creator>
      <pubDate>Tue, 21 Jan 2025 11:45:46 +0000</pubDate>
      <link>https://dev.to/shelwyn_corte/capture-and-stream-video-on-browser-with-python-flask-51le</link>
      <guid>https://dev.to/shelwyn_corte/capture-and-stream-video-on-browser-with-python-flask-51le</guid>
      <description>&lt;p&gt;&lt;a href="https://medium.com/p/5320440e2e5e" rel="noopener noreferrer"&gt;Read the complete article (With code) on Medium&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>flask</category>
      <category>opencv</category>
    </item>
    <item>
      <title>Remember Agent Smith from The Matrix? 🕴️</title>
      <dc:creator>Shelwyn Corte</dc:creator>
      <pubDate>Fri, 08 Nov 2024 14:44:14 +0000</pubDate>
      <link>https://dev.to/shelwyn_corte/remember-agent-smith-from-the-matrix-500b</link>
      <guid>https://dev.to/shelwyn_corte/remember-agent-smith-from-the-matrix-500b</guid>
      <description>&lt;p&gt;That iconic scene where he multiplies into countless clones, each single-mindedly pursuing their mission to maintain order in the system.&lt;/p&gt;

&lt;p&gt;Fast forward to 2024, and we're witnessing something fascinating:&lt;/p&gt;

&lt;p&gt;Instead of Agent Smith, we're creating AI agents powered by Large Language Models (LLMs). Like Smith's clones, these digital assistants are being deployed across different tasks:&lt;br&gt;
• Writing code 💻&lt;br&gt;
• Analyzing data 📊&lt;br&gt;
• Managing customer service 🤝&lt;br&gt;
• Automating workflows ⚙️&lt;/p&gt;

&lt;p&gt;But here's the key difference: Unlike Smith's clones who sought to control, these AI agents are designed to collaborate and empower. They're not here to trap us in a system, but to help us break free from mundane tasks and unlock our creative potential.&lt;/p&gt;

&lt;p&gt;The "Matrix" we're building isn't a prison - it's a scaffold for human innovation.&lt;/p&gt;

&lt;p&gt;What tasks would you delegate to your AI "Agent Smith"? 🤔&lt;/p&gt;

&lt;h1&gt;
  
  
  ArtificialIntelligence #Matrix #Technology #Innovation #FutureOfWork #AI #LLM #DigitalTransformation
&lt;/h1&gt;

</description>
    </item>
    <item>
      <title>Translate speech to any language (Google supported) with Python and Google Translate API</title>
      <dc:creator>Shelwyn Corte</dc:creator>
      <pubDate>Fri, 08 Nov 2024 06:42:19 +0000</pubDate>
      <link>https://dev.to/shelwyn_corte/translate-speech-to-any-language-google-supported-with-python-and-google-translate-api-47k4</link>
      <guid>https://dev.to/shelwyn_corte/translate-speech-to-any-language-google-supported-with-python-and-google-translate-api-47k4</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcpgbpfjqtx5er9ks2561.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcpgbpfjqtx5er9ks2561.png" alt="Image description" width="647" height="346"&gt;&lt;/a&gt;&lt;br&gt;
In this article, we are going to create a speech translator with python using the Google translate API&lt;/p&gt;

&lt;p&gt;Installation (Linux):&lt;br&gt;
— pip install SpeechRecognition&lt;br&gt;
— pip install googletrans&lt;br&gt;
— pip install gTTS&lt;br&gt;
— pip install playsound&lt;/p&gt;

&lt;p&gt;Installation (Windows):&lt;br&gt;
— pip install SpeechRecognition&lt;br&gt;
— pip install gTTS&lt;br&gt;
— pip install pipwin&lt;br&gt;
— pipwin install pyaudio&lt;br&gt;
— pip install playsound==1.2.2&lt;br&gt;
— pip install googletrans==4.0.0-rc1&lt;/p&gt;

&lt;p&gt;Lets import the required modules&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import speech_recognition as sr
from googletrans import Translator
from gtts import gTTS
from playsound import playsound
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Create an object of the translator class&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;translator = Translator()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We will now use the default microphone as the audio source, listen to the phrase and extract it into audio data&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;r = sr.Recognizer()
with sr.Microphone() as source:
    print("Speak Now:")
    audio = r.listen(source)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Set the destination language, you can get a list of all language codes here [&lt;a href="https://meta.wikimedia.org/wiki/Template:List_of_language_names_ordered_by_code" rel="noopener noreferrer"&gt;https://meta.wikimedia.org/wiki/Template:List_of_language_names_ordered_by_code&lt;/a&gt;]&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;language_to_translate='en'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The below section will print the recognized speech, set the language to be translated to and use the google API to to translate the recognized speech. We will also print the detected text and the translated text on the console&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;print("Recognized as: ", r.recognize_google(audio))
language = language_to_translate
translations = translator.translate(r.recognize_google(audio), dest=language)
print(translations.origin, ' -&amp;gt; ', translations.text)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Finally we will save the translated text as an mp3 audio file using Google Text-to-Speech and then play it using the playsound library&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;myobj = gTTS(text=translations.text, lang=language)
myobj.save(tr + ".mp3")
playsound(tr + ".mp3")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;*&lt;em&gt;Complete Code:&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import speech_recognition as sr
from googletrans import Translator
from gtts import gTTS
from playsound import playsound

translator = Translator()
r = sr.Recognizer()
with sr.Microphone() as source:
    print("Speak Now:")
    audio = r.listen(source)

language_to_translate='en'
try:
    print("Recognized as: ", r.recognize_google(audio))
    language = language_to_translate
    translations = translator.translate(r.recognize_google(audio), dest=language)
    print(translations.origin, ' -&amp;gt; ', translations.text)
    myobj = gTTS(text=translations.text, lang=language)
    myobj.save(tr + ".mp3")
    playsound(tr + ".mp3")
except Exception as e:
    print(e)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>python</category>
      <category>speechtotext</category>
      <category>speechrecognition</category>
      <category>translate</category>
    </item>
    <item>
      <title>Create API’s in 5 minutes with Python</title>
      <dc:creator>Shelwyn Corte</dc:creator>
      <pubDate>Wed, 23 Oct 2024 06:21:02 +0000</pubDate>
      <link>https://dev.to/shelwyn_corte/create-apis-in-5-minutes-with-python-3b3p</link>
      <guid>https://dev.to/shelwyn_corte/create-apis-in-5-minutes-with-python-3b3p</guid>
      <description>&lt;p&gt;"Create APIs in 5 minutes with FastAPI. A modern, high-performance Python framework, FastAPI makes it easy to build powerful web applications."&lt;/p&gt;

&lt;p&gt;Installation&lt;br&gt;
Install FastAPI and uvicorn (ASGI server) using pip:&lt;/p&gt;

&lt;p&gt;pip install fastapi uvicorn&lt;br&gt;
pip install fastapi&lt;/p&gt;

&lt;p&gt;Lets create our API&lt;/p&gt;

&lt;p&gt;Open notepad and paste the below contents, save the file as data.json (we will adding data to this file using the POST method and will be retrieving records using the GET method&lt;/p&gt;

&lt;p&gt;data.json&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[
   {
      "name": "John",
      "age": 25
   },
   {  "name": "Smith",
      "age": 27
   }
]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now create a new python file, name it as app.py and paste the below code&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# This section imports necessary modules and classes from the FastAPI library and Python's standard library. It imports FastAPI for creating the web application, HTTPException for raising HTTP exceptions, List for type hints, and json for working with JSON data.

from fastapi import FastAPI, HTTPException
from typing import List
import json

# This creates an instance of the FastAPI class, which will be the main application instance for handling HTTP requests.
app = FastAPI()

# This block reads the content of the "data.json" file using a context manager (with statement) and loads the JSON data into the initial_data variable.
with open("data.json", "r") as file:
    initial_data = json.load(file)

# This line initializes the data variable with the loaded JSON data, effectively creating a list of dictionaries containing user information.
data = initial_data

# This decorator (@app.get(...)) defines a GET endpoint at the "/users" URL. It uses the get_users function to handle the request. The response_model parameter specifies the expected response model, which is a list of dictionaries in this case.
@app.get("/users", response_model=List[dict])
async def get_users():
    return data

# This decorator (@app.post(...)) defines a POST endpoint at the "/users" URL. It uses the create_user function to handle the request. The response_model parameter specifies the expected response model, which is a single dictionary in this case.
# The create_user function attempts to append the received user dictionary to the data list. If successful, it constructs a response dictionary indicating the success. If an exception occurs during the attempt (e.g., due to invalid data), it constructs a response dictionary indicating an error.
@app.post("/users", response_model=dict)
async def create_user(user: dict):
    try:
        data.append(user)
        response_data = {"message": "User created successfully", "user": user}
    except:
        response_data = {"message": "Error creating user", "user": user}
    return response_data

# This function uses a context manager to open the "data.json" file in write mode and then uses json.dump to write the contents of the data list back to the file, formatting it with an indentation of 4 spaces.
def save_data():
    with open("data.json", "w") as file:
        json.dump(data, file, indent=4)

# This decorator (@app.on_event(...)) defines a function that will be executed when the FastAPI application is shutting down. In this case, it calls the save_data function to save the data back to the JSON file before the application exits.
@app.on_event("shutdown")
async def shutdown_event():
    save_data()

# This block checks if the script is being run directly (not imported as a module). If it is, it uses the uvicorn.run function to start the FastAPI application on host "0.0.0.0" and port 8000. This is how you launch the application using the Uvicorn ASGI server.
if __name__ == "__main__":
    import uvicorn
    uvicorn.run(app, host="0.0.0.0", port=8000)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run the app.py, Uvicorn server will start a new process to handle incoming HTTP requests. once the server is up and running, open Postman, create a new GET request with the URL: &lt;a href="http://0.0.0.0:8000/users" rel="noopener noreferrer"&gt;http://0.0.0.0:8000/users&lt;/a&gt; and click send&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0g2q5ewing8ctvcjw4ud.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0g2q5ewing8ctvcjw4ud.png" alt="Image description" width="800" height="97"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhcz4pmrertm4v7droudq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhcz4pmrertm4v7droudq.png" alt="Image description" width="800" height="444"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You will see a JSON response with the list of users from the data.json file.&lt;/p&gt;

&lt;p&gt;Now lets add an user to this file with POST method. Create a new request, select the POST method, click on body, select raw, select JSON from the dropdown and paste the below JSON as a payload to add a new user&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
    "name": "Tina",
    "age": 22
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqiszcw3kk0nmfxtued8m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqiszcw3kk0nmfxtued8m.png" alt="Image description" width="800" height="274"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once you click send, you will get a response back if the user is added successfully with a status code of 200 OK&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3berizv38zqhtw6f8elo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3berizv38zqhtw6f8elo.png" alt="Image description" width="800" height="204"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And that is it, we have successfully created an API with GET/POST method to view and add users to a file. go back to the GET request and click send, you should now see the user Tina also listed in the response of the API.&lt;/p&gt;

&lt;p&gt;One amazing thing about FastAPI is that it automatically generates Swagger documentation for your API endpoints, making it easier for developers to understand and use your API effectively.&lt;/p&gt;

&lt;p&gt;If you open a browser and type &lt;a href="http://localhost:8000/docs" rel="noopener noreferrer"&gt;http://localhost:8000/docs&lt;/a&gt; you will see a swagger document for the API&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5n74rvixwewru6ownyta.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5n74rvixwewru6ownyta.png" alt="Image description" width="800" height="304"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Please note, this is just an basic example of creating a quick API with python, you will further need to do more configuration or coding especially in terms of error handling, data validation, and security.&lt;/p&gt;

</description>
      <category>python</category>
      <category>api</category>
      <category>fastapi</category>
      <category>json</category>
    </item>
  </channel>
</rss>
