https://github.com/annotation/text-fabric
Raw File
Tip revision: e445baad1442c458acd1bfe73898a9f521f2433b authored by Dirk Roorda on 15 February 2024, 16:05:43 UTC
small fixes
Tip revision: e445baa
zip.py
from .advanced.app import loadApp
from .core.timestamp import DEEP
from .core.helpers import console


def main():
    """Makes a complete zip file.

    Determines the repository that contains the current directory.
    Finds the TF dataset of that repository.

    Then zips its TF data (most recent version) plus all related data modules,
    not only other TF data, but also images that are included.

    Puts the TF data somewhere in your Downloads directory,
    from where you can attach it to a release on GitHub or GitLab.

    TF is instructed to try that file first
    if a user of this dataset needs to download the latest data.
    """
    console("loading TF app ...")
    app = loadApp(silent=DEEP)
    app.zipAll()


if __name__ == "__main__":
    main()
back to top