Skip to main content

seal files now, open them later

Project description

MAGICICADA !!!!!!

image

magicicapsula

image

install

pip install magicicapsula

needs python 3.10+

how it works

the workflow is staged, so you don't have to add everything at once:

magicicapsula init -u 2030-01-01     # start a draft here
magicicapsula add letter.txt photos/ # stage files/folders
magicicapsula add diary.txt          # add more later
magicicapsula status                 # see what's staged
magicicapsula seal                   # pack it all into capsule.mcap

the draft lives in a .capsule/ directory (found by walking up from the current dir). seal reads everything staged and writes the .mcap file.

later, when the date has passed:

magicicapsula open capsule.mcap -d ./out

commands

init

start a new capsule draft in the current directory.

magicicapsula init [-u DATE] [-n NOTE] [-o OUT]

  -u, --unlock DATE  unlock date, can also be set at seal
  -n, --note NOTE    plaintext note shown by info
  -o, --out OUT      output file name (default: capsule.mcap)

add

stage files or folders to put in the capsule.

magicicapsula add <paths...>
magicicapsula add --text "dear future me" [--name letter.txt]
echo "..." | magicicapsula add -

  --text TEXT  stage text directly, no file needed
  --name NAME  filename for --text or stdin (default: note.txt)

status

show the draft: unlock date and staged files.

magicicapsula status

rm

unstage files. does not delete them from disk.

magicicapsula rm <paths...>

seal

seal everything staged into a capsule file. flags override the draft's settings and stick.

magicicapsula seal [-u DATE] [-o FILE] [-n NOTE] [-f] [-P]

  -u, --unlock DATE  unlock date, overrides the draft's
  -o, --out FILE     output capsule file, overrides the draft's
  -n, --note NOTE    plaintext note, overrides the draft's
  -f, --force        overwrite the output if it exists
  -P, --no-password  seal without a password (anyone can open it after the date)

info

show a capsule's dates and status. no password needed.

magicicapsula info <file> [--json]

  --json  print capsule metadata as JSON

open

open a capsule and extract it, once the unlock date has passed.

magicicapsula open [-d DEST] <file>

  -d, --dest DEST  directory to extract into (default: current dir)

verify

check a capsule's integrity (and the password, if any) without opening it.

magicicapsula verify <file>

remind

write a calendar (.ics) reminder for a capsule's unlock date. no account or api needed: import the file into any calendar (google, apple, outlook).

magicicapsula remind <file> [-o FILE] [-b DAYS] [-f]

  -o, --out FILE    output .ics path (default: <capsule>.ics)
  -b, --before DAYS remind this many days before the unlock date
  -f, --force       overwrite the output if it exists

version

magicicapsula version

config

show or edit configuration. settings resolve in the order default < config file < environment variable. the config file is ~/.config/magicicapsula/config.json; MAGICICAPSULA_PASSWORD overrides it.

magicicapsula config                  # list all (secrets masked)
magicicapsula config --reveal         # list all, secrets shown
magicicapsula config get <key>        # show one value and its source
magicicapsula config set <key> <val>  # write to the config file
magicicapsula config unset <key>      # remove from the config file

date format

absolute YYYY-MM-DD or YYYY-MM-DDTHH:MM (2030-01-01, 2030-01-01T08:00), or relative from now: +30d, +2w, +6m, +1y.

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

magicicapsula-1.0.3.tar.gz (21.0 kB view details)

Uploaded Source

Built Distribution

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

magicicapsula-1.0.3-py3-none-any.whl (26.3 kB view details)

Uploaded Python 3

File details

Details for the file magicicapsula-1.0.3.tar.gz.

File metadata

  • Download URL: magicicapsula-1.0.3.tar.gz
  • Upload date:
  • Size: 21.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for magicicapsula-1.0.3.tar.gz
Algorithm Hash digest
SHA256 ed227c04da6592f423af71fedf39a0347288c2c40d5a70638f17962c86b98836
MD5 69b6b0c20d5b1420cc8943fa791cf54f
BLAKE2b-256 110933a6dc744cfe169dbda4cec56cd6f2c0e95f41853661c014bdac184eb47d

See more details on using hashes here.

Provenance

The following attestation bundles were made for magicicapsula-1.0.3.tar.gz:

Publisher: publish.yml on iDavi/magicicapsula

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file magicicapsula-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: magicicapsula-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 26.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for magicicapsula-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1c716af762af65d68d340bbfb41fe7611cd802318fa497c738af640df7cc67db
MD5 eb08a9cb5717ffc65ba67b4a3048f98d
BLAKE2b-256 034623b10a6ae60a093c8a5bbd26111138eabe43de85aae1653107513701c3b8

See more details on using hashes here.

Provenance

The following attestation bundles were made for magicicapsula-1.0.3-py3-none-any.whl:

Publisher: publish.yml on iDavi/magicicapsula

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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