bhargavnova / python-helper-modules

MIT License
7 stars 24 forks source link

Python Script: Execute Another Python Script (CURD) #36

Open bhargavnova opened 9 months ago

bhargavnova commented 9 months ago

Objective

Develop a Python script that allows users to perform basic CURD (Create, Read, Update, Delete) operations on entries representing Python scripts. This tool will enable users to manage a collection of Python scripts, execute them, and perform operations like adding new scripts, updating existing ones, reading script details, and deleting scripts.

Features

Example Usage

import script_manager

# Add a new script entry
script_manager.add_script('Script Name', '/path/to/script.py')

# List existing scripts
script_manager.list_scripts()

# Execute a script
script_manager.execute_script(1)

# Update script details
script_manager.update_script(1, new_name='New Script Name', new_path='/new/path/to/script.py')

# Delete a script entry
script_manager.delete_script(2)

Difficulty: Beginner/Intermediate

Tags: Python, Script Management, File Execution, CURD Operations

Additional Information

Contribution Guidelines

The updated guidelines can be found here.

Note:

devang-pipaliya commented 9 months ago

@bhargavnova Please assign this to me.

bhargavnova commented 9 months ago

Sure @devang-pipaliya, Thanks for picking this up!

Happy Coding!

devang-pipaliya commented 9 months ago

@bhargavnova No worries.

I have 1 que. the example says the module name -> script_manager

But note shays -> py_script_manager

Which one you would prefer to keep?

bhargavnova commented 9 months ago

anything will do. as long as it's in lower case and separated by underscore.

TheCodingEnthusiast commented 8 months ago

@bhargavnova Can i pick up this issue ?

bhargavnova commented 8 months ago

@TheCodingEnthusiast , I have already assigned this to @devang-pipaliya , You can pick another issues or you can also submit your own code.