Part 1: Building Environments

 

1. Prerequisites

Ensure your system meets the minimum requirements:

 

System Requirements

Python Requirements

EDINET API Access

Additional Tools

 

2. Windows PowerShell

Windows PowerShell is a command-line shell and scripting language designed for system management and automation. Think of it as a powerful tool to control and automate your computer.

This guide is tailored to help you get comfortable with navigating folders and running Python scripts in Windows PowerShell.

 

2.1 Open PowerShell

 

2.2 Navigating Folders in PowerShell

PowerShell uses commands to move between folders (directories) on your computer.

 

Check Current Folder

 

Change Folders

List Files and Folders

Go Back to the Previous Folder

 

2.3. Running Python Scripts in PowerShell

Verify Python Installation

If Python is installed, you’ll see a version number like Python 3.10.0.

If not, download and install Python from python.org.

Run Python in PowerShell

3. Virtual Environments

3.1 What is a Virtual Environment? 🤔

A virtual environment is like a sandbox for your Python project.

It creates an isolated space where you can install and manage libraries and dependencies specific to your project without affecting the global Python setup on your computer.

 

Why Use It?

 

3.2 Setting Up a Virtual Environment 🛠️

Using venv (Recommended)

  1. Navigate to Your Project Folder:

     

  2. Create the Virtual Environment:

    my_venv is the name of your virtual environment folder.

    You can name it anything (e.g., .env, myenv).

  3. Activate the Virtual Environment:

    On Windows:

    On macOS:

  4. You’ll Notice a Change in Your Shell:

    Your shell prompt will now have (my_venv) or your chosen name in front, indicating the virtual environment is active:

     

3.3 Installing Libraries in the Virtual Environment 📦

Now that your virtual environment is active, you can install libraries specific to edinet-explorer

This command installs the edinet-explorer library ONLY in the virtual environment.