PraisonAI 0.0.59rc2__cp312-cp312-manylinux_2_35_x86_64.whl → 0.0.59rc5__cp312-cp312-manylinux_2_35_x86_64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of PraisonAI might be problematic. Click here for more details.

praisonai/cli.py CHANGED
@@ -98,12 +98,15 @@ class PraisonAI:
98
98
  if getattr(args, 'code', False):
99
99
  self.create_code_interface()
100
100
  return
101
-
101
+
102
102
  if args.agent_file == 'train':
103
+ if 'init' in sys.argv:
104
+ from praisonai.setup.setup_conda_env import main as setup_conda_main
105
+ setup_conda_main()
103
106
  from .train import main as train_main
104
- train_args = sys.argv[2:] # Get all arguments after 'train'
105
- train_main(train_args) # Pass the arguments to train.py's main function
106
- return
107
+ train_args = sys.argv[2:] # Get all arguments after 'train'
108
+ train_main()
109
+ return
107
110
 
108
111
  invocation_cmd = "praisonai"
109
112
  version_string = f"PraisonAI version {__version__}"
praisonai/deploy.py CHANGED
@@ -56,7 +56,7 @@ class CloudDeployer:
56
56
  file.write("FROM python:3.11-slim\n")
57
57
  file.write("WORKDIR /app\n")
58
58
  file.write("COPY . .\n")
59
- file.write("RUN pip install flask praisonai==0.0.59rc2 gunicorn markdown\n")
59
+ file.write("RUN pip install flask praisonai==0.0.59rc5 gunicorn markdown\n")
60
60
  file.write("EXPOSE 8080\n")
61
61
  file.write('CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]\n')
62
62
 
File without changes
@@ -0,0 +1,21 @@
1
+ import subprocess
2
+ import sys
3
+ import os
4
+
5
+ def build(setup_kwargs):
6
+ try:
7
+ # Get the directory of the current script
8
+ script_dir = os.path.dirname(os.path.abspath(__file__))
9
+
10
+ # Construct the path to post_install.py
11
+ post_install_script = os.path.join(script_dir, 'post_install.py')
12
+
13
+ # Run the post_install.py script
14
+ subprocess.check_call([sys.executable, post_install_script])
15
+ except subprocess.CalledProcessError as e:
16
+ print(f"Error occurred while running the post-install script: {e}")
17
+ sys.exit(1)
18
+ return setup_kwargs
19
+
20
+ if __name__ == "__main__":
21
+ build({})
@@ -0,0 +1,20 @@
1
+ import subprocess
2
+ import sys
3
+ import os
4
+
5
+ def main():
6
+ try:
7
+ # Get the absolute path of the current file
8
+ current_file = os.path.abspath(__file__)
9
+
10
+ # Get the directory of the current file
11
+ script_dir = os.path.dirname(current_file)
12
+
13
+ # Construct the path to setup_conda_env.py
14
+ setup_script = os.path.join(script_dir, 'setup_conda_env.py')
15
+ except subprocess.CalledProcessError as e:
16
+ print(f"Error occurred while running the setup script: {e}")
17
+ sys.exit(1)
18
+
19
+ if __name__ == "__main__":
20
+ main()
@@ -0,0 +1,25 @@
1
+ import subprocess
2
+ import os
3
+ import sys
4
+ import platform
5
+
6
+ def main():
7
+ script_dir = os.path.dirname(os.path.abspath(__file__))
8
+ script_path = os.path.join(script_dir, 'setup_conda_env.sh')
9
+
10
+ if platform.system() == 'Windows':
11
+ print("Windows detected. Please run the setup_conda_env.sh script manually in Git Bash or WSL.")
12
+ print(f"Script location: {script_path}")
13
+ sys.exit(1)
14
+
15
+ try:
16
+ subprocess.check_call(['bash', script_path])
17
+ except subprocess.CalledProcessError as e:
18
+ print(f"Error occurred while running the setup script: {e}")
19
+ print("Setup failed. Please check the error message above and try to resolve the issue.")
20
+ sys.exit(1)
21
+
22
+ print("Conda environment setup completed successfully!")
23
+
24
+ if __name__ == "__main__":
25
+ main()
@@ -0,0 +1,60 @@
1
+ #!/bin/bash
2
+
3
+ # Detect OS and architecture
4
+ if [[ "$OSTYPE" == "darwin"* ]]; then
5
+ # macOS
6
+ if [[ $(uname -m) == 'arm64' ]]; then
7
+ MINICONDA_URL="https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh"
8
+ else
9
+ MINICONDA_URL="https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh"
10
+ fi
11
+ elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
12
+ # Linux
13
+ MINICONDA_URL="https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh"
14
+ elif [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
15
+ # Windows
16
+ MINICONDA_URL="https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe"
17
+ echo "Windows detected. Please run this script in Git Bash or WSL."
18
+ exit 1
19
+ else
20
+ echo "Unsupported operating system: $OSTYPE"
21
+ exit 1
22
+ fi
23
+
24
+ # Check if conda is already installed
25
+ if ! command -v conda &> /dev/null; then
26
+ echo "Conda is not installed. Installing Miniconda..."
27
+ wget $MINICONDA_URL -O ~/miniconda.sh
28
+ bash ~/miniconda.sh -b -p $HOME/miniconda
29
+ source $HOME/miniconda/bin/activate
30
+ conda init
31
+ else
32
+ echo "Conda is already installed."
33
+ fi
34
+
35
+ # Create and activate the Conda environment
36
+ ENV_NAME="unsloth_env"
37
+ if conda info --envs | grep -q $ENV_NAME; then
38
+ echo "Environment $ENV_NAME already exists. Activating..."
39
+ conda activate $ENV_NAME
40
+ else
41
+ echo "Creating new environment $ENV_NAME..."
42
+ if [[ "$OSTYPE" == "darwin"* ]]; then
43
+ # macOS (both Intel and M1/M2)
44
+ conda create --name $ENV_NAME python=3.10 pytorch=2.3.0 -c pytorch -y
45
+ elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
46
+ # Linux
47
+ conda create --name $ENV_NAME python=3.10 pytorch=2.3.0 cudatoolkit=11.8 -c pytorch -c nvidia -y
48
+ conda activate $ENV_NAME
49
+ pip install xformers==0.0.26.post1
50
+ fi
51
+ fi
52
+
53
+ source $HOME/miniconda/bin/activate $ENV_NAME
54
+
55
+ # Install other packages
56
+ pip install --upgrade pip
57
+ pip install "unsloth[colab-new] @ git+https://github.com/unslothai/unsloth.git@4e570be9ae4ced8cdc64e498125708e34942befc"
58
+ pip install --no-deps "trl<0.9.0" peft accelerate bitsandbytes
59
+
60
+ echo "Setup completed successfully!"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PraisonAI
3
- Version: 0.0.59rc2
3
+ Version: 0.0.59rc5
4
4
  Summary: PraisonAI application combines AutoGen and CrewAI or similar frameworks into a low-code solution for building and managing multi-agent LLM systems, focusing on simplicity, customization, and efficient human-agent collaboration.
5
5
  Author: Mervin Praison
6
6
  Requires-Python: >=3.10,<3.13
@@ -3,8 +3,8 @@ praisonai/__main__.py,sha256=MVgsjMThjBexHt4nhd760JCqvP4x0IQcwo8kULOK4FQ,144
3
3
  praisonai/agents_generator.py,sha256=8d1WRbubvEkBrW1HZ7_xnGyqgJi0yxmXa3MgTIqef1c,19127
4
4
  praisonai/auto.py,sha256=9spTXqj47Hmmqv5QHRYE_RzSVHH_KoPbaZjskUj2UcE,7895
5
5
  praisonai/chainlit_ui.py,sha256=bNR7s509lp0I9JlJNvwCZRUZosC64qdvlFCt8NmFamQ,12216
6
- praisonai/cli.py,sha256=64ubHQr9j8O0pXnjbXWEpvnHbviDO-R4YYFWOLE_RSU,14772
7
- praisonai/deploy.py,sha256=J83zRX4P4TOxL_0kLrD9DAHI8E4e9nNqrICDIM0N6Wc,6031
6
+ praisonai/cli.py,sha256=Ff4FyjfAh_QcL7wMCiW4RxKNOgqEorsNtR5zvBtuGvA,14875
7
+ praisonai/deploy.py,sha256=E2YIHDRQ8nb6nQiSghTXxxskynM_2g1-ms9jhmekDt8,6031
8
8
  praisonai/inbuilt_tools/__init__.py,sha256=mUKnbL6Gram9c9f2m8wJwEzURBLmPEOcHzwySBH89YA,74
9
9
  praisonai/inbuilt_tools/autogen_tools.py,sha256=svYkM2N7DVFvbiwgoAS7U_MqTOD8rHf8VD3BaFUV5_Y,14907
10
10
  praisonai/inc/__init__.py,sha256=sPDlYBBwdk0VlWzaaM_lG0_LD07lS2HRGvPdxXJFiYg,62
@@ -21,6 +21,11 @@ praisonai/public/logo_dark.png,sha256=frHz1zkrnivGssJgk9iy1cabojkVgm8B4MllFwL_Cn
21
21
  praisonai/public/logo_light.png,sha256=8cQRti_Ysa30O3_7C3ku2w40LnVUUlUok47H-3ZZHSU,19656
22
22
  praisonai/public/movie.svg,sha256=aJ2EQ8vXZusVsF2SeuAVxP4RFJzQ14T26ejrGYdBgzk,1289
23
23
  praisonai/public/thriller.svg,sha256=2dYY72EcgbEyTxS4QzjAm37Y4srtPWEW4vCMFki98ZI,3163
24
+ praisonai/setup/__init__.py ,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
+ praisonai/setup/build.py,sha256=NyTAXQ_UZ8vKo_KwCINp8ctmauZyCMDkw1rys3ay0ec,646
26
+ praisonai/setup/post_install.py,sha256=hXukn_7bL64vE582SZcS-9MiZGeJj6hN7upoR1oJ-Bo,576
27
+ praisonai/setup/setup_conda_env.py,sha256=4QiWrqgEObivzOMwfJgWaCPpUEpB68cQ6lFwVwFoufk,816
28
+ praisonai/setup/setup_conda_env.sh,sha256=akFPm3hZq_b6C17zLhLD22owJruzdQYgCqjJmDPr7kE,2126
24
29
  praisonai/test.py,sha256=OL-wesjA5JTohr8rtr6kWoaS4ImkJg2l0GXJ-dUUfRU,4090
25
30
  praisonai/train.py,sha256=Kuckd3TjW6ZYTISyXpL0upB-NibsEmwk1BMhRHPXba0,9200
26
31
  praisonai/ui/chat.py,sha256=B4F1R7qP-0c-elg8WcRsYlr6-FkmHWtdunGIzU7WrDM,9321
@@ -34,8 +39,8 @@ praisonai/ui/public/movie.svg,sha256=aJ2EQ8vXZusVsF2SeuAVxP4RFJzQ14T26ejrGYdBgzk
34
39
  praisonai/ui/public/thriller.svg,sha256=2dYY72EcgbEyTxS4QzjAm37Y4srtPWEW4vCMFki98ZI,3163
35
40
  praisonai/ui/sql_alchemy.py,sha256=HsyeRq-G9qbQobHWpTJHHKQiT4FvYw_7iuv-2PNh0IU,27419
36
41
  praisonai/version.py,sha256=ugyuFliEqtAwQmH4sTlc16YXKYbFWDmfyk87fErB8-8,21
37
- praisonai-0.0.59rc2.dist-info/LICENSE,sha256=kqvFysVlnFxYOu0HxCe2HlmZmJtdmNGOxWRRkT9TsWc,1035
38
- praisonai-0.0.59rc2.dist-info/METADATA,sha256=WBOruz17emj1t6_j4lWvjZ3ef1AfKaSWskp36wjpJkA,11151
39
- praisonai-0.0.59rc2.dist-info/WHEEL,sha256=HBsDV7Hj4OTiS1GX6ua7iQXUQTB9UHftbBxr7Q8Xm9c,110
40
- praisonai-0.0.59rc2.dist-info/entry_points.txt,sha256=jB078LEGLY3Ky_indhclomRIVVpXrPSksHjJ-tcBZ-o,133
41
- praisonai-0.0.59rc2.dist-info/RECORD,,
42
+ praisonai-0.0.59rc5.dist-info/LICENSE,sha256=kqvFysVlnFxYOu0HxCe2HlmZmJtdmNGOxWRRkT9TsWc,1035
43
+ praisonai-0.0.59rc5.dist-info/METADATA,sha256=K_WXer8aL_M5VM8eQn-YWkRC0Re1BMMjb21kh3xJ9Ts,11151
44
+ praisonai-0.0.59rc5.dist-info/WHEEL,sha256=HBsDV7Hj4OTiS1GX6ua7iQXUQTB9UHftbBxr7Q8Xm9c,110
45
+ praisonai-0.0.59rc5.dist-info/entry_points.txt,sha256=jB078LEGLY3Ky_indhclomRIVVpXrPSksHjJ-tcBZ-o,133
46
+ praisonai-0.0.59rc5.dist-info/RECORD,,