Skip to main content

plain-text daily notes with optional encryption

Project description

duras

License

Daily notes as plain text files, with search and optional encryption.


Install

pip install duras

Requires Python 3.13+. No dependencies. gpg optional for encrypted notes.


Quick start

duras               # open today's note in $EDITOR
duras append "fix login bug #todo"
duras search todo
duras tags

Model

One note per day:

YYYY/MM/YYYY-MM-DD.dn
  • plain UTF-8 text
  • filesystem is the index
  • no database, no hidden state
  • atomic writes

Encrypted note:

YYYY/MM/YYYY-MM-DD.dn.gpg

via the GNU Privacy Guard.


Scope

Fits:

  • terminal-based workflows
  • grep-based retrieval
  • long-lived plain text notes
  • optional encryption

Not a fit:

  • sync system
  • GUI / rich text editor
  • query engine or database

Commands

open

duras               # today
duras open -1       # yesterday
duras open 2026-04-19
duras open -- +10   # pass +10 to $EDITOR (jump to line)

append

duras append "text"
duras append -d -1 "yesterday"
cat file | duras append -

- reads from stdin.

show

duras show
duras show -1

list / stats

duras list
duras list -n 0     # all notes
duras stats

Order: by filename (ISO date), not mtime.

search / tags

duras search error
duras search todo -i    # case-insensitive
duras tags              # all tags with counts
duras tags project      # notes containing #project

Literal match, not regex. Encrypted notes excluded.

export

duras export ~/backup
duras export ~/backup --encrypt

Creates a timestamped .tar.gz. --encrypt pipes through gpg; no plaintext archive is written.

other

duras path          # absolute path to today's note
duras dir           # notes root directory
duras today         # print today's date
duras audit         # validate directory structure
duras echo          # notes on this date in past years
duras near          # notes within ±3 days of today
duras mv 2026-04-17 2026-04-16

Encryption

duras -c open
duras -c append "secret"
duras -c show
  • uses system gpg
  • append -c is memory-only; no plaintext temp file
  • open -c writes a temp file to /dev/shm when available

Dates

YYYY-MM-DD   absolute
0            today
-1           yesterday
-7           one week ago

Future dates are rejected.


Environment

variable meaning
DURAS_DIR notes directory (default: ~/Documents/Notes)
EDITOR editor (fallback: nano, vi, ed)
DURAS_GPG_KEY GPG recipient (default: self)

Exit codes

code meaning
0 ok
1 error
2 not found
3 invalid input
4 external failure

Limits

  • encrypted notes are not searchable
  • depends on system gpg for encryption

Docs


Variants

duras

Standard variant for Unix-like systems. Uses system gpg. No dependencies.

duras_ashell

For iOS a-Shell mini. Uses PGPy (pure Python) instead of system gpg. No external binaries. Handles .asc keys directly; no keyring. Compatible encrypted format.


License

ISC

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

duras-1.0.6.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

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

duras-1.0.6-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file duras-1.0.6.tar.gz.

File metadata

  • Download URL: duras-1.0.6.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for duras-1.0.6.tar.gz
Algorithm Hash digest
SHA256 183db7659359e734a446f842c96dbb462d1f46e1154f4cf0e081987660b529ab
MD5 9e5671bb44c6b65aa4744de92c31fa78
BLAKE2b-256 137f9363391868549c44c0e220f10d011c6d826646d5768bc10c878f5ef94a25

See more details on using hashes here.

File details

Details for the file duras-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: duras-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for duras-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 db31fe8cc22fca1605180426f48701e23a66055eebc01fcf0a3d8c96c49d2ae6
MD5 c663fd0ed5778659c5617a009a9aa8b6
BLAKE2b-256 75ef215be973dba99bf87632a4f296965b1f0ccd14f889df274bfefda1d3b219

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