Skip to main content

A single file note-taking app that work with .txt files

Project description

 ___      ___   _______  _______
|   |    |   | |       ||       |
|   |    |   | |  _____||   _   |
|   |    |   | | |_____ |  | |  |
|   |___ |   | |_____  ||  |_|  |
|       ||   |  _____| ||      |
|_______||___| |_______||____||_|

From Polish "lisek / foxie" – lisq is a single file note-taking app that work with .txt files.

Lightweight, fast and portable. It's meant to be used as terminal aplication.

Code available under a non-commercial license (see LICENSE file).

Copyright © funnut www.github.com/funnut


Instalation

With installed Python,

  • Copy src/lisq.py somewhere inside $PATH folder, then make it executable ( chmod +x filename ) and start by typing filename.
  • Alternatively you can install Lisq by pip* : pip install lisq

* Python language Package Manager

How to install Python packages visit this site.

CLI USAGE

lisq [command [arg1] [arg2] ...]
lisq add "my new note"  # alternatively use / instead of add

COMMANDS

Basic functionality:

It's design to be simple so there are just three core commands: add/show/del.

: quit, q       # exit the program
: clear, c      # clear screen
: cmds      # list of all available commands
: edit      # open the notes file in set editor
: [--]help      # show help page
: [--]version   # show version
:
: add, / <str>  # adds a note (preferably enclosed in quotation marks)
:
: show, s   # show recent notes (default 10)
:      <int>    # show number of recent notes
:      <str>    # show notes containing <string>
:      all      # show all notes
:      random, r    # show a random note
:
: del <str>     # delete notes containing <string>
:     last, l   # delete the last note
:     all   # delete all notes

Additional functionality:

You can encrypt your notes or any other file with a URL-safe Base64-encoded 32-byte token (use with caution!).

[!WARNING] This functionality requires the cryptography package. If it is not already installed via package manager, please run: pip install -r requirements.txt

: encryption on|off|set     # enables or disables login functionality; 'set' stores the token so it won't be requested again
: changepass    # changes the password (token)
:
: encrypt ~/file.txt    # encrypts any file
: decrypt ~/file.txt    # decrypts any file
:
: settings  # lists all settings
: reiterate     # renumber notes' IDs
: echo <str>    # prints the given text
: type <str>    # types the given text

You can add your own functions by:

  • defining them,
  • then adding to dispatch table.

SETTINGS

Default settings are:

  • default notes path is ~/notesfile.txt,
  • default key path is set to wherever main file is,
  • default history path is set to wherever the main file is,
  • default color accent is green,
  • default editor is set to nano,
  • default encryption is set to off.

To change it, set the following variable in your system by adding it to a startup file (eg. ~/.bashrc).

export LISQ_SETTINGS='{
    "notes-path": "~/path/notesfile.txt",
    "key-path": "~/path/key.lisq",
    "hist-path": "~/path/history.lisq",
    "color-accent": "\\033[34m",
    "editor": "nano",
    "encryption": "set"
    }'

Source your startup file or restart terminal.

You can check current settings by typing settings (both default and environmental drawn from LISQ_SETTINGS var).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lisq-2025.7.29.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lisq-2025.7.29-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file lisq-2025.7.29.tar.gz.

File metadata

  • Download URL: lisq-2025.7.29.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for lisq-2025.7.29.tar.gz
Algorithm Hash digest
SHA256 6b4cd41899a8041b8642ebfd1724b5dad8f31cb809bba593fe2b53cc489db686
MD5 c67bd50fcf7c7ed8239735c388f83807
BLAKE2b-256 a25db5ce4c629661aa8c1a66f8b25c5f723bc2b1f151e24bb28f10237394b01c

See more details on using hashes here.

File details

Details for the file lisq-2025.7.29-py3-none-any.whl.

File metadata

  • Download URL: lisq-2025.7.29-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for lisq-2025.7.29-py3-none-any.whl
Algorithm Hash digest
SHA256 c3c9fcf284b95df7973c18e314083d45172292c656e37254539f7031585bf322
MD5 b4fd55ddde5701d766dde12a0af46afd
BLAKE2b-256 380e6b17d5f9b8c0753f98fb02a394460edeb4b24345678410a3e82442309198

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page