Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoSign in
Socket

bafcode

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bafcode - pypi Package Compare versions

Comparing version
1.1.1
to
1.1.4
+1
-1
bafcode.egg-info/PKG-INFO
Metadata-Version: 2.1
Name: bafcode
Version: 1.1.1
Version: 1.1.4
Summary: BafCode Framework CLI

@@ -5,0 +5,0 @@ Home-page: https://github.com/aitelabranding/bafcode_cli

@@ -118,3 +118,3 @@ import os

class_name = ToolContext.snake_to_camel(name)
llm_class_name = class_name + "LLm"
llm_class_name = class_name + "LLM"
add_import_to_init(base_dir, llm_class_name, name)

@@ -121,0 +121,0 @@ else:

@@ -5,3 +5,3 @@ import subprocess

def setup():
def setup(project_name):
try:

@@ -16,2 +16,11 @@ # Cloning the git repository

return
try:
# Rename the cloned repository to the project_name
print(f"Renaming the cloned repository to {project_name}...")
os.rename('bafcode', project_name)
print("Renaming completed successfully!")
except OSError:
print(f"Error: Failed to rename the cloned repository to {project_name}.")
return

@@ -21,3 +30,3 @@ try:

print("Installing the requirements...")
subprocess.check_call(['pip', 'install', '-r', 'bafcode/src/requirements.txt'])
subprocess.check_call(['pip', 'install', '-r', f'{project_name}/src/requirements.txt'])
print("Requirements installed successfully!")

@@ -31,6 +40,6 @@

# Change directory to run the baf command
print("Changing directory to 'bafcode/src/'...")
os.chdir('bafcode/src/')
print(f"Changing directory to '{project_name}/src/'...")
os.chdir(f'{project_name}/src/')
except OSError:
print("Error: Failed to change directory to 'bafcode/src/'. Ensure the repository was cloned correctly.")
print(f"Error: Failed to change directory to '{project_name}/src/'. Ensure the repository was cloned and renamed correctly.")
return

@@ -37,0 +46,0 @@

@@ -7,3 +7,3 @@ from .commands import setup, start, generate_key, make

if len(sys.argv) < 2:
print("Please provide a command. Options: setup, start, generate-key, make")
print("\033[94mPlease provide a command. Options: setup, start, generate-key, make\033[0m")
return

@@ -13,3 +13,7 @@

if command == "setup":
setup.setup()
if len(sys.argv) < 3:
print("\033[94mPlease provide a project name. E.g., bafcode setup 'project name'\033[0m")
return
project_name = sys.argv[2]
setup.setup(project_name)
elif command == "start":

@@ -16,0 +20,0 @@ start.start_baf()

Metadata-Version: 2.1
Name: bafcode
Version: 1.1.1
Version: 1.1.4
Summary: BafCode Framework CLI

@@ -5,0 +5,0 @@ Home-page: https://github.com/aitelabranding/bafcode_cli

@@ -5,3 +5,3 @@ from setuptools import setup, find_packages

name="bafcode",
version="1.1.1",
version="1.1.4",
packages=find_packages(),

@@ -8,0 +8,0 @@ install_requires=[