Skip to main content

gomi

Chat Channel Donate

Gomi is a Python package used to store and manage Note Types for Anki in a git repository. At Ajatt-Tools, we store our note types here. Gomi provides a super user-friendly mechanism of importing and exporting note types, and everyone is welcome to add their templates to our collection by making a pull request.

Prerequisites

GNU/Linux

Install Python 3.12 or later if you haven't already.

Windows

Windows is not recommended because it is malware.

Install Python from the Microsoft Store or check if you already have the good version putting on your file explorer search bar

%LOCALAPPDATA%\Microsoft\WindowsApps\python3

If you have the correct version, you can just close the python's window that just popped up.

Make sure to add python3 to the PATH. The path you need to add should look like C:\Users\[YourUsername]\AppData\Local\Microsoft\WindowsApps\python3.

If you don't have the python installed, when you'll put this command into the search bar, it will open a microsoft store window directly on the correct python version, and you just need to click Download.

After doing this step, you can make sure that everything is good by opening the command prompt with Windows+R, cmd and put the command:

python3 -m

If everything's good, you should get a response like : Argument expected for the -m option

Installation

Install gomi using pipx: pipx install gomi.

Usage

Make sure Anki is running, and you have AnkiConnect installed.

Clone AnkiNoteTypes and cd into it. If you have never cloned a repository before, you need to install git. If you have git installed, open your terminal and type the following commands.

git clone "https://github.com/Ajatt-Tools/AnkiNoteTypes.git"
cd AnkiNoteTypes

Importing

To import one of the available Note Types to Anki, run:

gomi import

Note: When using AJT Japanese, reopen the current profile to add the add-on's scripts to the note type after importing and after updating. Alternatively, open AJT Japanese's settings and press "Ok" ("Accept").

Updating

If you imported a note type from the AJATT collection before, it received an update, and you want to import the new version, run:

gomi update

Exporting

To export one of your Note Types, run:

gomi export

Then write a helpful readme and commit your changes:

git add templates media && git commit

After committing your template, please create a pull request.

Caveats

Although gomi supports note types that reference external CSS and JS files stored in the collection.media folder, for example, by using <script src="_script.js"></script> in a Front or Back template, or by using @import url("_styling.css"); in the Styling section, there are a few caveats to keep in mind.

  • The filenames should begin with an underscore to prevent Anki from flagging them as unused.

  • If you use AnkiWeb to sync your collection with other devices (like an Android phone), external files will only sync once. If you change your externally linked CSS or JS file, you'll need to rename it so that updates are sent to your other devices. However, referencing external fonts is acceptable because they typically need to be synced only once.

  • Specifically, loading external JS files causes a slight flicker or lag whenever you flip a card. It is recommended that you use inline scripts instead:

    <script>
    // some code
    </script>
    

Metadata

Release files for gomi 25.5.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 gomi 25.5.3.1
File Size Uploaded Provenance Actions
gomi-25.5.3.1.tar.gz 37.1 kB With provenance Details for gomi-25.5.3.1.tar.gz

Built distribution (wheel)

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

Total release size: 75.7 kB

Release files / gomi-25.5.3.1.tar.gz

Download URL gomi-25.5.3.1.tar.gz
Size 37.1 kB
Tags Source
SHA-256 checksum
How to use checksums
94965233da2885bb4dad9c3c559aac24fbb0d700412705f5d06e95df4841de68
BLAKE2b-256 checksum
How to use checksums
4dc03a1e7e06ceac480d16429c05c950920e6dd1f2a9b1163d54d971e2e6f40d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 May 3, 2025.

Transparency log

Release files / gomi-25.5.3.1-py3-none-any.whl

Download URL gomi-25.5.3.1-py3-none-any.whl
Size 38.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d9467ab819c443303426a21d99695e887c88d7e670d8ce7efe6a59492be30adc
BLAKE2b-256 checksum
How to use checksums
4d517dccb963d3bb2c5de5727dbb8351d0cbfa399f94760c217da93332477742
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 May 3, 2025.

Transparency log

Security for gomi 25.5.3.1

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for gomi-25.5.3.1.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 May 3, 2025.

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