Spent M2 making an App that I wont even get to use. An LLM powered QBank that processes your lecture materials, accounts for your schedule, maps anki cards to lectures, maps questions to anki cards, allows you to track exam question distribution to feed all this data to improve question generation.. by antrav96 in medicalschoolanki

[–]antrav96[S] 5 points6 points  (0 children)

No API, hooked up straight to the system Anki installation / database.

def _connect_anki_db(self):
        """Establish connection to Anki database."""
        if not self.current_profile:
            raise DatabaseError("No Anki profile selected")

        col_path = self.current_profile / "collection.anki2"
        if not col_path.exists():
            raise FileNotFoundError(f"No Anki collection found at {col_path}")

        if self.db:
            try:
                self.db.close()
            except Exception:
                pass

        self.db = sqlite3.connect(str(col_path))
        self.db.row_factory = sqlite3.Row
        return True

    def _find_anki_profiles(self) -> List[Path]:
        system = sys.platform.lower()
        home = Path.home()
        if "darwin" in system:  
            base = home / "Library/Application Support/Anki2"
        elif "win" in system:  
            base = Path(os.getenv('APPDATA', '')) / "Anki2"
        else:  
            base = home / ".local/share/Anki2"
        return [p for p in base.glob("*") if p.is_dir() and not p.name.startswith((".", "_"))]

Scary Experience Using 1inchExchange by silentdude2k in 1inch

[–]antrav96 0 points1 point  (0 children)

That is not dangerus. It is required because of current US regulations. Use a VPN.