Skip to content

Notes CLI is a lightweight, persistent, and beginner-friendly command-line interface (CLI) tool for managing personal notes directly from the terminal.

License

Notifications You must be signed in to change notification settings

Co-Contribute-OpenSource/Notes-CLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notes CLI

A simple command-line interface (CLI) tool to manage your notes. This project is beginner-friendly and perfect for learning Python, open source, and contributing during Hacktoberfest.


Features

  • Add new notes
  • List all notes
  • Search notes by keyword
  • Delete notes by ID
  • Persistent storage using JSON

Project Structure


notes-cli/
├── notes\_cli/
│   ├── **init**.py
│   ├── main.py           \# CLI entry point
│   ├── notes.py          \# Core notes functions
│   ├── storage.py        \# Handles reading/writing JSON
│   └── utils.py          \# Helper functions
├── data/
│   └── notes.json        \# Stores notes persistently
├── tests/
│   ├── test\_notes.py     \# Unit tests for notes.py
│   └── test\_storage.py   \# Unit tests for storage.py
├── requirements.txt      \# Dependencies (if any)
└── README.md


Installation

  1. Clone the repository:
git clone [https://github.com/your-username/notes-cli.git](https://github.com/your-username/notes-cli.git)
cd notes-cli
  1. (Optional) Create a virtual environment:
python -m venv venv
source venv/bin/activate  # Linux/macOS
venv\Scripts\activate     # Windows
  1. Install dependencies (if any):
pip install -r requirements.txt

Usage

Run the CLI using Python:

python -m notes_cli.main <command> [options]

Commands

Add a note

python -m notes_cli.main add "Buy groceries"

List all notes

python -m notes_cli.main list

Search notes

python -m notes_cli.main search "groceries"

Delete a note

python -m notes_cli.main delete 1

Contributing

We welcome contributions! Here’s how to get started:

  1. Fork the repository
  2. Create a new branch: git checkout -b feature/your-feature-name
  3. Make your changes
  4. Commit your changes: git commit -m "Add your descriptive message"
  5. Push to the branch: git push origin feature/your-feature-name
  6. Create a pull request

Check out our [issues] for good first issues.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgements

  • Inspired by beginner-friendly Python projects
  • Perfect for Hacktoberfest contributions

About

Notes CLI is a lightweight, persistent, and beginner-friendly command-line interface (CLI) tool for managing personal notes directly from the terminal.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages