Skip to content

PytHon Interactive Declarative Intelligent Agent System

License

Notifications You must be signed in to change notification settings

corradosantoro/phidias

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


arslogo

PHIDIAS

PytHon Interactive Declarative Intelligent Agent System
by Prof. Santoro Corrado


Table of Contents
  1. Install
  2. Usage

Install

First of all, you need to download this repository on your machine. You can download this repository as a zip file or use git clone command:

  git clone https://github.com/corradosantoro/phidias

(back to top)

Pythonic Way for Linux-Windows-macOS

We are going to create a virtual environment to contains all the dependencies.

  1. Install Python 3 on your system, at the time of writing it is recommended Python 3.9 or newer:

    • Linux (Debian-based):

      sudo apt install python3 python3-pip python3-venv
    • Linux (RHEL-based):

      sudo dnf install python3 python3-pip
    • Windows and macOS:

      Use the proper installer provided on the official Python website
      
  2. Create a virtual environment, open a terminal inside the phidias folder and execute the following command:

     python -m venv ./venv
    
  3. Activate the virtual environment:

    • Linux (bash shell) or macOS:
      source ./venv/bin/activate
    • Windows (cmd.exe):
      ./venv/Scripts/activate.bat
  4. Install the dependencies using:

    pip install -r requirements.txt
    
  5. Install the library using:

    python setup.py install
    

(back to top)

Usage

Before running any script you need to activate the virtual environment containing the required dependencies:

  • Linux (bash shell) or macOS:
    source ./venv/bin/activate
  • Windows (cmd.exe):
    ./venv/Scripts/activate.bat

You can now run any provided sample, example:

python ./samples/factorial.py

The PHIDIAS shell will be displayed, you can type the following command:

eShell: main > fact(10)

The program will compute the factorial of 10 and will show:

the resuilting factorial is 3628800

About

PytHon Interactive Declarative Intelligent Agent System

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages