Git Product home page Git Product logo

ntz-py's Introduction

ntz-py

  • Purpose
    • To familiarize with how to manipulate persistent data through command line.
  • Objective
    • ntz.py is intended to be a note taker that can be interacted with through the command line.
    • ntz.py is a python command line note tool that allows users to read and write notes to and from SQLite3, YAML, or JSON

Keeping track of a small list of things to remember or stuff that needs doing is a pain. Remembering its location, manually accessing it, formatting it and all of the clicking that entails, is something many find unpleasant.

Other command line note tools out there are...clunky. They require interacting with vim or nano, and manual formatting. Yuck

ntz takes command line arguments and builds tidy todo/remember lists using the inherent neatness of SQLite (or YAML) and a little python magic. The result is a notes system that is easily manipulated both in the command line using ntz' interface, or manually in the SQLite database (or YAML file).

Installation (Once you have it written)

  1. Execute the command below to prepend the python environment to the ntz.py
    • echo "#!/usr/bin/env python3" | cat - ntz.py
  2. Execute the command below to add execution permissions to ntz.py
    • chmod +x ntz.py
  3. Execute the command below to move the ntz.py file to your /usr/local/bin directory.
    • cp ./ntz.py /usr/local/bin/ntz.py
  4. Execute the command below to append ntz alias to your .bashrc
    • echo "alias ntz='./ntz.py'" >> ~/.bashrc
  5. Execute the command below to reread the .bashrc file
    • source ~/.bashrc
  • TLDR
echo "#!/usr/bin/env python3" | cat - ntz.py
chmod +x ntz.py
cp ./ntz.py /usr/local/bin/ntz.py
echo "alias ntz='./ntz.py'" >> ~/.bashrc
source ~/.bashrc

Usage

What's it look like?

  • ntz has four commands.
    • [r]emember
    • [-c] creates or appends to a category
    • [f]orget a note
    • [e]dit a note
    • clear

Showing notes.

Typing ntz with no arguments should display all your notes. (Can you figure out how to send them to more or less so you can see them one screen at a time?)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.