Skip to main content

Larkhré

Mosi larkhré : « la langue de la machine », en soninké. Le langage pour apprendre à coder en français, avec des erreurs qui t'expliquent quoi corriger.

laz nom = "Awa"

fonk saluer(qui) {
    rend "Bonjour " + qui + " !"
}

pou i dan 1..3 {
    vox(saluer(nom))
}

tests

Essayer

Dans le navigateur, sans rien installer : larkhre.github.io/code (marche aussi sur téléphone, et hors ligne une fois ouvert).

Sur ton ordinateur (Python 3) :

pip install larkhre
larkhre mon_programme.laz     # exécuter un fichier
larkhre                       # mode interactif

Sans pip : python3 larkhre.py exemples/demo.laz.

Pourquoi Larkhré

  • Les erreurs sont expliquées en français, avec le « film » des dernières valeurs avant le plantage.
  • Des mots-clés écrits comme on parle : laz (variable), vox (afficher), kan (quand), tanke (tant que), pou … dan (pour … dans), fonk (fonction), walu (rien).
  • ralenti() montre le programme s'exécuter ligne par ligne, variables visibles.
  • Tes langues : #langue: anglais, #langue: francais (académique), et des packs en bambara et en wolof.
  • Une passerelle vers Python : larkhre --traduire prog.laz produit du Python lisible.

Le langage en 30 secondes

Larkhré Signification
laz x = 5 déclarer une variable
vox("salut") afficher
demand("Ton nom ? ") saisie clavier (renvoie un texte)
kan … { } sinon { } si / sinon
tanke … { } tant que
pou i dan 1..10 { } boucle pour
fonk f(x) { rend x } fonction et retour
kase / swiv break / continue
vrai / faux / walu true / false / null
et / ou / non and / or / not
klas … herite … classes et héritage
vox("Salut {nom}") interpolation
essaie { } rattrape err { } gestion d'erreurs
garde score = 0 variable qui se souvient entre deux exécutions

Le manuel complet : GUIDE_LARKHRE.md. L'historique : CHANGELOG.md.

Apprendre

  • L'École, dans le playground : 12 leçons avec vérification automatique.
  • Le livre Apprends à coder de zéro : 14 chapitres, exercices corrigés, 3 projets. Tous ses exemples sont vérifiés automatiquement dans tests/.

Pour les développeurs

  • Deux moteurs : larkhre.py (Python, zéro dépendance) et le moteur JavaScript du playground (docs/code/index.html), publié sur npm : npm install larkhre.
  • Tests : python3 tests/run_tests.py lance chaque programme sur les deux moteurs et compare leur sortie. GitHub les relance à chaque modification.
  • React : le composant <LarkhrePlayground /> dans react/.
  • Agents IA : le serveur MCP larkhre-mcp dans mcp/, et la spécification pour IA dans LARKHRE_POUR_IA.md.

English

Larkhré (mosi larkhré, "the language of the machine" in Soninke) is a beginner-friendly programming language with French keywords and error messages that explain what to fix. Curly braces, no semicolons. Try it in the browser at larkhre.github.io/code or pip install larkhre. Two engines (Python and JavaScript) are checked against the same test suite on every commit.

Licence

MIT — libre et gratuit, pour tout le monde. Créé par Ladji Doucaré, 2026. Anciennement LAZARUS.

Metadata

Release files for larkhre 11.3.0

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

Source distribution (sdist)

Source distribution for larkhre 11.3.0
File Size Uploaded Provenance Actions
larkhre-11.3.0.tar.gz 33.8 kB With provenance Details for larkhre-11.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 67.9 kB

Release files / larkhre-11.3.0.tar.gz

Download URL larkhre-11.3.0.tar.gz
Size 33.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b29fce71c34d1195464d53858266182ce5232049d68bfa24f47ce73003b09f24
BLAKE2b-256 checksum
How to use checksums
cec3c5dfd11be008e5fbc6bc680dca2e4841001a6e8fe57692969259712847e8
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 Sep 29, 2026.

Transparency log

Release files / larkhre-11.3.0-py3-none-any.whl

Download URL larkhre-11.3.0-py3-none-any.whl
Size 34.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
674593fd8033b7856556161d056bfa89a43a409834928f14782c7e9c6e67548c
BLAKE2b-256 checksum
How to use checksums
b17618aa60a4e9312888825c44f167dc3db64d3a14d70bac61d9daf55bda60f6
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 Sep 29, 2026.

Transparency log

Security for larkhre 11.3.0

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 larkhre-11.3.0.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 Sep 29, 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.

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