Skip to main content

Notii

Your personal terminal assistant — contacts, notes, and tags, all in one place.

PyPI Python License: MIT

Notii is a lightweight command-line tool for managing contacts and notes without ever leaving your terminal. Store a full address book — name, phones, e-mail, birthday, address — and a searchable notebook of tagged notes. Everything is saved automatically between sessions, no database or cloud account required.


Features

Contacts

  • Add a contact with full name, phone number, e-mail, birthday, and address
  • Search contacts across all fields by a text query
  • Edit any field of an existing contact
  • Delete a contact
  • View contacts whose birthday falls within a given number of days

Notes

  • Create notes with a title and a free-text body
  • Search notes by their text content
  • Edit a note's title or body
  • Delete notes
  • Attach keyword tags to notes
  • Search notes by tag and sort alphabetically by tag

General

  • Phone numbers and e-mail addresses are validated on entry; invalid values are rejected with a clear message and the prompt is repeated
  • Data is persisted automatically to the data/ folder at the project root
  • Tab-autocomplete and command history via prompt_toolkit
  • All commands use a / prefix; any input without a leading / is rejected with a friendly error

Validation rules

Phone numbers — 10–15 digits, optional leading +. Spaces, hyphens, dots, and parentheses are stripped before checking, so 099 123-45-67 and 0991234567 are treated as the same number. Enter multiple phones comma-separated on one prompt.

E-mail — standard user@domain.tld format.

Birthday — DD.MM.YYYY format; must be a past date (future dates are rejected). The days counter shows how many days remain until the next annual celebration of that date — the birth year is used only to store the date, not to compute the count.

Tags — letters, digits, underscores _, and hyphens - only; no spaces; 1–50 characters. A leading # is accepted and stripped automatically. Enter multiple tags comma-separated on the /add-tag or /remove-tag prompt.

Name — non-empty, max 100 characters.

Address — non-empty, max 200 characters.


Requirements

Python 3.10 or later.


Installation

From PyPI

pip install notii

From source

git clone https://github.com/Serhii2009/smart-assistant-cli.git
cd smart-assistant-cli
pip install -r requirements.txt
pip install -e .

Running

notii

The application starts, shows a short header, and waits for commands. Type / to see the full command list with autocomplete.


Commands

All commands use a / prefix. After entering a command, the application guides you through each required field on a separate prompt line. No arguments are ever typed on the same line as the command itself.

Command Description
/add-contact Add a new contact (interactive field prompts)
/show-contacts List all contacts
/find-contact Search contacts by any field
/edit-contact Edit a field of an existing contact
/delete-contact Delete a contact
/birthdays Contacts with a birthday in the next N days
/add-note Create a new note (interactive)
/show-notes List all notes
/find-note Search notes by title or body
/edit-note Edit a note's title or body
/delete-note Delete a note
/add-tag Attach a tag to a note
/remove-tag Remove a tag from a note
/find-by-tag Find notes by tag
/sort-by-tags List notes sorted alphabetically by tag
/help Show the command list
/exit Save data and exit

/sort-by-tags orders notes alphabetically by their first tag. Notes with no tags appear at the bottom of the list. The first tag on each note is the sort key — add tags in the order you want them.


Project structure

smart-assistant-cli/
├── data/
│   ├── contacts.pkl     address book (created automatically on first run)
│   └── notes.pkl        notes (created automatically on first run)
├── src/
│   ├── __init__.py      package version
│   ├── __main__.py      entry point
│   ├── cli.py           REPL loop and command dispatch
│   ├── fields.py        Field base class and all field types
│   ├── contact.py       Record and AddressBook classes
│   ├── note.py          Note and NoteBook classes
│   ├── repository.py    pickle persistence (the only file touching disk)
│   ├── handlers.py      pure handler functions (no I/O)
│   └── renderer.py      all terminal output (the only file using rich)
├── requirements.txt
├── pyproject.toml
└── README.md

Layered architecture:

cli.py  →  handlers.py  →  contact.py / note.py / fields.py
  ↓                                ↓
renderer.py             repository.py
  • handlers.py contains only pure functions: no printing, no input
  • renderer.py is the only file that imports rich
  • repository.py is the only file that reads or writes files
  • fields.py is the single source of truth for every validation rule — no field format is checked anywhere else in the codebase

Contributing

  1. Clone the repository:

    git clone https://github.com/Serhii2009/smart-assistant-cli.git
    cd smart-assistant-cli
    
  2. Create a branch for your work:

    git checkout -b feature/your-feature-name
    
  3. Install dependencies:

    pip install -r requirements.txt
    pip install -e .
    
  4. Make your changes, commit them, and open a pull request against main.

Branch naming conventions: feature/, fix/, docs/.


License

MIT — see LICENSE.

Metadata

Release files for notii 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for notii 1.0.1
File Size Uploaded Provenance Actions
notii-1.0.1.tar.gz 19.4 kB Without provenance Details for notii-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for notii 1.0.1
File Interpreter ABI Platform Actions
notii-1.0.1-py3-none-any.whl Python 3 none any Details for notii-1.0.1-py3-none-any.whl

Total release size: 42.4 kB

Release files / notii-1.0.1.tar.gz

Download URL notii-1.0.1.tar.gz
Size 19.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a14129586e3d2e8330706932d680d38fa2e6146d0203c0a858afd6e4e1d4879f
BLAKE2b-256 checksum
How to use checksums
81765268f6a39cdf948391b84c46984625960e3ef67ebda91f546e332a20aad9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.0

Release files / notii-1.0.1-py3-none-any.whl

Download URL notii-1.0.1-py3-none-any.whl
Size 23.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a00cd47c2521b76f6da65c223384906add59a425027d432ca096a4bebe5e95af
BLAKE2b-256 checksum
How to use checksums
525d69ba7ab4f05821111a074e86fa53843e8deec8d34725cba911b7ae2b6152
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.0

Security for notii 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page