Skip to main content

Anki Forge logo: stacked cards with a folded corner and card loop

anki-forge

Tests passing PyPI version Documentation License: MIT

Python SDK

Build Basic, Cloze, Image Occlusion and custom cards, package media, and check updates before distributing a new deck.

Install

Use an ordinary CPython interpreter with a matching platform wheel; CPython 3.11/3.12 are verified in the recorded package checks. See verified environments. The public package is ankiforge 0.3.1.

python -m venv .venv
. .venv/bin/activate
python -m pip install ankiforge==0.3.1

On Windows, activate the environment with .venv\Scripts\Activate.ps1.

Your first deck

Save this as main.py:

from ankiforge import Project, Note, BuildOptions

project = Project('spanish', default_deck='Spanish')
project.add('es:hola', Note.basic('hola', 'hello'))
output = project.build(BuildOptions.to('spanish.apkg'))
print(output.artifact.path)
python main.py

Open the persistent spanish.apkg in Anki. It contains one Basic card in Spanish, with hola → hello. Keep spanish and es:hola stable when editing this publication.

Continue

Metadata

Release files for ankiforge 0.3.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 ankiforge 0.3.1
File Size Uploaded
ankiforge-0.3.1.tar.gz 447.0 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for ankiforge 0.3.1
File
ankiforge-0.3.1-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details
ankiforge-0.3.1-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 abi3 Linux glibc 2.17+ x86-64 Details
ankiforge-0.3.1-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details
ankiforge-0.3.1-cp311-abi3-macosx_10_12_x86_64.whl CPython 3.11 abi3 macOS 10.12+ x86-64 Details

Total release size: 17.9 MB

Release files / ankiforge-0.3.1.tar.gz

Download URL ankiforge-0.3.1.tar.gz
Size 447.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7a3675ed131b7c9ec54326e9fdda73654ee3e5d6dd7c70295982a9505d381b9d
BLAKE2b-256 checksum
How to use checksums
f42b1abebd27153bdb0f42e42355608964669fdfa2787026b06ef0b606f772a4
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 13, 2026.

Transparency log

Release files / ankiforge-0.3.1-cp311-abi3-win_amd64.whl

Download URL ankiforge-0.3.1-cp311-abi3-win_amd64.whl
Size 3.8 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
b3e5ecd678d49dc74248e10edd7ad0c6bc3035d41fddb6ce5902b2f880df88ce
BLAKE2b-256 checksum
How to use checksums
f09b6d4af5fdc5895127bef2df4c97be0a7b752ab88d2e3c24fe0a8f4200be75
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 13, 2026.

Transparency log

Release files / ankiforge-0.3.1-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL ankiforge-0.3.1-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 5.5 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
64213ce806e535440e800f1b7fed65d3b68795ca39e501193ce312bb07dec107
BLAKE2b-256 checksum
How to use checksums
9daca08a062cd79f1e19633a407f5c7c860b876100aa0dccbb7503f67c70a6ec
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 13, 2026.

Transparency log

Release files / ankiforge-0.3.1-cp311-abi3-macosx_11_0_arm64.whl

Download URL ankiforge-0.3.1-cp311-abi3-macosx_11_0_arm64.whl
Size 3.9 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
632c2dc0da33234ad0d9615092be9e218389077489723a0c00b90099c62dd5c1
BLAKE2b-256 checksum
How to use checksums
274eb507bd4f13c3e1ae2e7e843a8274fa3a143fd023b71e0c8b75188ff688c6
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 13, 2026.

Transparency log

Release files / ankiforge-0.3.1-cp311-abi3-macosx_10_12_x86_64.whl

Download URL ankiforge-0.3.1-cp311-abi3-macosx_10_12_x86_64.whl
Size 4.2 MB
Tags CPython 3.11 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
2d5141430b0c48b277362c7cbc9dd9b40fec18b9ef9dd9c48093657411d49818
BLAKE2b-256 checksum
How to use checksums
33a094bd5deb0bc9c735ab20f536648a0315c59b2ffd5f444039e08f74db85ae
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 13, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.1 This release

5 release files

0.3.0

5 release files

0.2.0

5 release files

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