FANDOM


Line 1: Line 1:
 
<b><span style="color:rgb(135,206,250);">= COMPLETED =</span></b>
 
<b><span style="color:rgb(135,206,250);">= COMPLETED =</span></b>
  +
  +
  +
[[File:Capture.jpg|left]]
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
   
 
== About ==
 
== About ==
Line 31: Line 62:
   
 
[https://www.youtube.com/watch?v=rnatu3xxVQE Python Advanced Tutorial 3 - Argparse]
 
[https://www.youtube.com/watch?v=rnatu3xxVQE Python Advanced Tutorial 3 - Argparse]
 
 
   
 
[https://stackoverflow.com/questions/4710067/using-python-for-deleting-a-specific-line-in-a-file Using Python for deleting a specific line in a file]
 
[https://stackoverflow.com/questions/4710067/using-python-for-deleting-a-specific-line-in-a-file Using Python for deleting a specific line in a file]

Revision as of 07:56, March 25, 2019

= COMPLETED =


Capture















About

The idea for this basic script is to emulate my physical pen-and-paper To-Do list by creating a command-line script that can create, store, and edit a To-Do list from the command-line. Git: CLI_ToDoList

What I Learnt

I learnt (re-learnt) how to use the Argparse module in Python and handle files.

I learnt how to manipulate lines inside text files and how to edit them from the command line.

I also learnt how to use the datetime, and colorama modules. As well as finding out you can use the webbrowser module to open text files in basic text editing programs in Windows and Linux.

Another thing that I learnt was how to find out the operating system your script is being run in using the os module.

References

Here are some of the sites that helped me while building my script.

How to get current date and time in Python

How do I check if I'm running on Windows in Python?

colorama 0.4.1

Creating and Deleting Directories with Python

Python File Handling

argparse python docs

Building Beautiful Command Line Interfaces with Python

Python Advanced Tutorial 3 - Argparse

Using Python for deleting a specific line in a file

Python Argparse Cookbook

Community content is available under CC-BY-SA unless otherwise noted.