This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import base64 | |
import hashlib | |
import json | |
import os | |
import secrets | |
import sys | |
import time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fastmcp import FastMCP | |
import json | |
import os | |
import sqlite3 | |
from fsrs import Card, Scheduler, Rating, State | |
from datetime import datetime, timezone | |
import sys | |
DB_FILE = "/data/flashcards.db" | |
scheduler = Scheduler() |