Skip to main content

youparle

Local tooling for a YouParle language learning vault.

A student learns a language with an LLM agent that lives in a folder on their machine. This package is what that agent calls for everything it is not allowed to do by itself: publishing lessons and cards, rendering exercises, fetching media and what sources answer, showing the student a picture or a sound. There is no server and no account. No data leaves the machine, unless the student chooses the Microsoft voice, which sends the texts it speaks to Microsoft.

The package also makes that folder. youparle init copies a template that ships inside the package, src/youparle/vault_template/: the agent's instructions and the Obsidian settings with the Spaced Repetition plugin. After that the folder belongs to the student. The one part the package rewrites is the youparle block at the top of AGENTS.md, which holds the agent's instructions; the student writes their own below it. The package recognises a vault by its contents alone: AGENTS.md and agent/ at the root.

Installing

The student's agent installs youparle. The student opens an empty folder in their harness and pastes the prompt in INSTALL.md. The agent installs uv the way its system needs, then youparle with uv tool install, and runs youparle init in that folder. It asks the student to install Obsidian and open the folder in it, runs youparle check, and asks them to restart the harness. No administrator rights are needed.

By hand, from the course folder:

uv tool install --managed-python --python 3.13 youparle
uv tool update-shell
youparle init

init also takes a path. The folder must be empty, or must not exist yet. Hidden files a harness, Obsidian or the system made there are allowed, but not .git. Run init again in a vault, and it creates only what is missing and rewrites the youparle block in AGENTS.md. Any other folder is refused: for init, a vault is a folder whose AGENTS.md holds that block.

Then, from the course folder:

youparle check

To update, ask the agent. It follows youparle skill update: it stops the server, runs uv tool upgrade youparle, then youparle voice update, then youparle init to rewrite the block, then youparle check.

Installing youparle installs no voice. The agent offers one when it meets the student, with the voice skill: the Microsoft voice, a program of the student's own, or none. See docs/voice.md.

Commands

Command What it does
youparle init [path] Make a vault from the template, or create what a vault is missing and rewrite the youparle block in AGENTS.md. Overwrites nothing else.
youparle guide Print what to do at the start of a session, the skills, the tools, the rules that hold everywhere, and who the student is and how they want to be taught.
youparle tmp clear Empty agent/tmp/, folders included. Run at the start of a session.
youparle journal add <line>… Add lines at the end of today's journal, agent/journal/YYYY-MM-DD.md. A line about practice is checked: its competences, and its exercise.
youparle skill <name> Print the steps for one task: exercise, exercise-page, minimal-pairs, shadowing, lesson, card, feedback, onboarding, session-start, remember, update, voice.
youparle check Diagnose the installation: folder, memory files, Obsidian plugins, and the voice, which it tests by having it speak.
youparle server start|stop|status Explicit control over the local server. The normal lifecycle is automatic.
youparle exercise new <source.json> Validate an exercise and write it into agent/exercises/.
youparle build-exercise <id> Render an exercise and open it in the browser.
youparle lesson publish <draft.md> [--title …] Publish a draft into lessons/.
youparle cards <proposal.json> Open the page where the student edits the proposed cards; each one validated is written into cards/.
youparle fetch <url>… [--name …] [--header …] Download pictures, sounds, or files to read (JSON, JSON Lines, HTML, XML, text) into agent/tmp/, several at once. An address is typed as it reads, in any script. A header a source requires is sent with --header.
youparle json <file>… [--path …] Print the outline of JSON or JSON Lines files in the vault, or what each path leads to in them. A path that finds nothing says what is there instead.
youparle html <file>… [--select …] [--from …] Print the outline of HTML pages in the vault, or the text of what each selector matches in them, a table a row a line. --from reads the HTML that a JSON file holds. A selector that matches nothing says what is there instead.
youparle tts --locale <locale> <text>… [--name …] Speak texts into mp3s in agent/tmp/, a voice drawn per text.
youparle voice Show the voice of this machine. voice use edge|none|custom installs one or switches to one; voice update updates it.
youparle open <path> Open a note of the vault in Obsidian.

Every command but init resolves its vault from the current directory, and every command takes --json. A refusal says what was refused and what to do instead, on stderr, with a non-zero exit code.

youparle guide and youparle skill are what the agent is told, and they ship with the code, so they cannot describe a version that is not installed. youparle <command> --help has the options.

Documentation

docs/ explains why the package is built the way it is, and which rules a change must not break. Start at docs/README.md.

Developing

uv sync --group dev
uv run pytest
uv run ruff check . && uv run ruff format --check .

Everything in this repository is in English — names, comments, tests and the messages the CLI prints. The system is agnostic about the language being taught, and French is only one course among others.

A running server holds the code it was started with, so run youparle server stop after changing anything it serves.

What a new vault holds is the folder src/youparle/vault_template/. See docs/vault.md before changing it.

Licence

MIT. See LICENSE.

The vault template includes the Obsidian plugin Spaced Repetition by Stephen Mwangi, under the MIT licence. Its main.js bundles other libraries, all MIT except minimatch, which is under the Blue Oak Model License 1.0.0. The plugin's folder, src/youparle/vault_template/.obsidian/plugins/obsidian-spaced-repetition/, holds its LICENSE and a THIRD-PARTY-NOTICES.txt with the licence of each bundled library, so both reach every vault.

Metadata

Release files for youparle 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for youparle 0.1.2
File Size Uploaded Provenance
youparle-0.1.2.tar.gz 873.7 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 1.7 MB

Release files / youparle-0.1.2.tar.gz

Download URL youparle-0.1.2.tar.gz
Size 873.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7e1627f533a5d3280d9240817007b11c35c719cfa564c2846f6d77b99cddc98f
BLAKE2b-256 checksum
How to use checksums
73685704f6643122b1f3cbac23c8960c34671184d2405870feb133d54828e0ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / youparle-0.1.2-py3-none-any.whl

Download URL youparle-0.1.2-py3-none-any.whl
Size 812.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a243d21fc28149546b37b947fe07e553f94cb6165f0f67a279e9f678c98a6d29
BLAKE2b-256 checksum
How to use checksums
04dab175b108f4e13c0ab09163ab690e3dd9d29097abf28bcf79b0f6c065bcc3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for youparle 0.1.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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