Skip to main content
# Note
This is a tool for writing, restoring and retriving notes in command line. Here are some examples of command:


1. **note add/a note\_file**
add a note. the note file's first line is keywords seperated by whitespaces, the rest of lines are content.
2. **note delete/d [-r] keyword1 [keyword2...]**
delete the notes with the keywords
3. **note get/g keyword0 [keyword1 ... keywordN]**
print notes about the keyword(s)
4. **note change/c note\_file**
for the note with keywords in note\_file, the note in database will be changed.
5. **note scan/s**
dispaly the information of the notes which have stored.
6. **note -h**
display help infomation

# Implementation
For each note, it has two components which are keyword(s) and content.
In order to save the notes, a database is created. The database has two tables. One table is a dict, whose keys and values are the keywords and the note ids. Each id links to a note. The other table has three columns: the notes' ids, the keywords which the notes linked to, the note contents.

```
create table keywords (
keyword string primary key not null,
ids string not null
);

create table notes (
id integer primary key autoincrement,
keywords string not null,
content string not null
);
```

# to do
1. get notes with bool filter
2. suppert a gui

Metadata

Release files for key_note 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 key_note 0.1
File Size Uploaded
key_note-0.1.tar.gz 4.0 kB Details

Release files / key_note-0.1.tar.gz

Download URL key_note-0.1.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
699c81bbd9899045b3afeed6fd5b7d9af10756b7d9418a9a0be51aed7f4a8157
BLAKE2b-256 checksum
How to use checksums
9fe8699148fbf384b38a1bebd386624ee4a24f41d7062309b53dc5bb10cb0210
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file

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