Skip to main content

Anki Forge for Python

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.0.

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

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.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 ankiforge 0.3.0
File Size Uploaded
ankiforge-0.3.0.tar.gz 435.7 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for ankiforge 0.3.0
File
ankiforge-0.3.0-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details
ankiforge-0.3.0-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.0-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details
ankiforge-0.3.0-cp311-abi3-macosx_10_12_x86_64.whl CPython 3.11 abi3 macOS 10.12+ x86-64 Details

Total release size: 17.8 MB

Release files / ankiforge-0.3.0.tar.gz

Download URL ankiforge-0.3.0.tar.gz
Size 435.7 kB
Tags Source
SHA-256 checksum
How to use checksums
306aff949ff2c025469c9a7fd083e81ff6319d2a80f33963e242f0ab472aa012
BLAKE2b-256 checksum
How to use checksums
3a0ec90ddcd526845926f45a67dda5cd1c927d068e47d2c918700ac317c45b9f
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 9, 2026.

Transparency log

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

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

Transparency log

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

Download URL ankiforge-0.3.0-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
bfba4390dc530c998f6e90ed75000eb561a8702ae860f749ae1361a27c081370
BLAKE2b-256 checksum
How to use checksums
650c3827ab160f3c9f66cb25fda65b4816cbee2f4902e740791afb125872bd1a
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 9, 2026.

Transparency log

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

Download URL ankiforge-0.3.0-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
94ed6d248b64cf2a5c693d653cab8fd6d06fcb1432d063ed84ab7a92ac6f49e0
BLAKE2b-256 checksum
How to use checksums
40d1645a396bbd72ed1e6dfe0c7a8cd9bb6b86bf70f98a4418733b2b45def296
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 9, 2026.

Transparency log

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

Download URL ankiforge-0.3.0-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
85a313b498cd9f103aae9ac5e255db97372ecebda67dadc0910db9dafe598e19
BLAKE2b-256 checksum
How to use checksums
5001debc16fb75573a22c5339fcb198dce89ea70006e3b2d380c1ed175913428
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 9, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.1

5 release files

This release

0.3.0 This release

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