Skip to main content

Memium

Open in Dev Container PyPI Python Version

When you have to stop and look things up, it breaks up your flow. Adding this knowledge to long-term memory builds fluency, and being fluent at something makes it much more fun! The faster you can get from crawling to running, the more enjoyable it is.

Unfortunately, we forget most of what we read, even stuff we care about.

It turns out that if you ask questions of the texts you read, and ask those questions of yourself in the future, you learn much more! But writing questions and quizzing yourself can feel quite mechanical. What if you wrote questions as part of your notes, and then your computer could quiz you in the future? That's the purpose of Memium. It extracts questions from your notes like

Q. Why can spaced repetition result in more enjoyable learning?
A. It enables faster bootstrapping to proficiency, which is more fun!

And adding them to a spaced repetition service like Anki.

This is an implementation of Andy Matuschak's Personal Mnemonic Medium.

Use as an application

If you want to sync markdown notes to Anki, here's how to get started!

  1. In Anki, install the AnkiConnect add-on

Command line interface

  1. Install Memium in its own virtual environment with pipx,
> uv tool install memium
  1. Import your notes!
> memium --input-dir [YOUR_INPUT_DIR] --vault-name [YOUR_VAULT_NAME]

In Docker container

  1. Install Orbstack or Docker Desktop.
  2. Setup a container
$INPUT_DIR="PATH_TO_YOUR_INPUT_DIR"
VAULT_NAME="NAME_OF_YOUR_OBSIDIAN_VAULT"

docker run -i \
  --name=memium \
  -e HOST_INPUT_DIR=$INPUT_DIR \
  -v $INPUT_DIR:/input \
  --restart unless-stopped \
  ghcr.io/martinbernstorff/memium:latest \
  memium --input-dir /input --vault-name "$VAULT_NAME"

--vault-name is optional, and is the vault's name as Obsidian shows it on your host, not a path: the "Obsidian" button on each card is resolved by Obsidian on the host, so the container's /input is irrelevant to it. Omit it and the button opens whichever vault is active.

This will start a docker container which updates your deck from $INPUT_DIR. In case of updated files, it will sync the difference (create new prompts and delete deleted prompts) to Anki.

If you want to continuously sync the directory, set the --watch-seconds [UPDATE_SECONDS] argument as well.

Keeping the package update can be a bit of a chore, which can be automated with WatchTower.

Use as library

If you would like to build build your own Python application on top of the abstractions added here, you can install the library from pypi:

uv add memium

Contributing

Setting up a dev environment

  1. Install Orbstack or Docker Desktop. Make sure to complete the full install process before continuing.
  2. If not installed, install VSCode
  3. Press this link
  4. Complete the setup process

💬 Where to ask questions

Type
🚨 Bug Reports GitHub Issue Tracker
🎁 Feature Requests & Ideas GitHub Issue Tracker
👩‍💻 Usage Questions GitHub Discussions
🗯 General Discussion GitHub Discussions

Metadata

Release files for memium 1.14.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 memium 1.14.1
File Size Uploaded Provenance Actions
memium-1.14.1.tar.gz 207.1 kB With provenance Details for memium-1.14.1.tar.gz

Built distribution (wheel)

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

Total release size: 258.0 kB

Release files / memium-1.14.1.tar.gz

Download URL memium-1.14.1.tar.gz
Size 207.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2145be1a58b6eac444f9483ef1c71915773d477a7000895ab3eb582e696c8496
BLAKE2b-256 checksum
How to use checksums
f8095f2139f4134d0c0903864ee86147beabf5a08b19b393aedd794ddaaecdaa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / memium-1.14.1-py3-none-any.whl

Download URL memium-1.14.1-py3-none-any.whl
Size 50.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e2afba0269cafc3a596b1239028b6020d6cd4cbed87f0c59d8ea0518198f73a8
BLAKE2b-256 checksum
How to use checksums
c4bc6b72ca187cbff931dd73742e4527d9167a70abf40b6d51bafefd72568367
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Security for memium 1.14.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for memium-1.14.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

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.14.1 This release

2 release files Full 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