sahil-sagwekar2652 / GitHub-Automation-scripts

Bash and Python scripts to automate your Git & GitHub workflow. Made by using only standard python libraries.
https://sahil-sagwekar2652.github.io/GitHub-Automation-scripts/
MIT License
52 stars 64 forks source link

To Update create_repo python script #51

Open anupammaurya6767 opened 1 year ago

anupammaurya6767 commented 1 year ago

Changes Proposed:

  1. Replace the use of os.system for executing shell commands with the subprocess module, which provides more flexibility and better handling of command execution.
  2. Utilize the requests library instead of the http.client module for making HTTP requests, as it offers a more straightforward and user-friendly interface.
  3. Implement error handling for HTTP requests and responses to provide better feedback in case of failures.
  4. Improve code readability and adherence to PEP 8 style guidelines.
anupammaurya6767 commented 1 year ago

@sahil-sagwekar2652 I am a GSSOC contributor I want to work on this issue Please assign it to me

shubham-deshmukh commented 1 year ago

Changes Proposed:

  1. Replace the use of os.system for executing shell commands with the subprocess module, which provides more flexibility and better handling of command execution.
  2. Utilize the requests library instead of the http.client module for making HTTP requests, as it offers a more straightforward and user-friendly interface.
  3. Implement error handling for HTTP requests and responses to provide better feedback in case of failures.
  4. Improve code readability and adherence to PEP 8 style guidelines.

Hi @anupammaurya6767 I would like to discuss this issue just for information and to understand the workflow of the project. As per my understanding, http.client is used as it is a built-in library whereas the requests module needs to be imported. I'm thinking what could be the major advantages of using the requests library over the other.

anupammaurya6767 commented 1 year ago

@shubham-deshmukh

shubham-deshmukh commented 1 year ago

@anupammaurya6767 Thank you for the detailed explanation.

sahil-sagwekar2652 commented 1 year ago

Hey everyone, it's great to see that people are collaborating and helping each other. Keep up the spirit! I am assigning this issue to @anupammaurya6767 .

bhavya1857 commented 1 year ago

hey, if this issue hasn't been closed, can i work on it then?