Skip to main content

No project description provided

Project description

FontGit

FontGit is an experimental package that loads fonts from a specific commit in a git repo. You don't have to check out any commits, or reset the repo to a specific commit, fontgit loads everything lazily. This means only the requested parts of the fonts is loaded which makes the reading faster.

Example

from fontGit import FontGit

font_path = 'tests/test_repo/fonts/font_1.ufo' # font should be inside a repo with a commit history

# Open a font at latest commit
font = FontGit.open_at_commit(font_path)

# get list of all commit hashes in the repo
from fontGit.utils import RepoCache
sample_repo = RepoCache(font_path) # it will resolve to the repo root even if font path is given
commits = sample_repo.commits

# get a font at a spcific commit
font = FontGit.open_at_commit(font_path, commit_sha=commits[1])

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fontgit-0.0.3.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fontgit-0.0.3-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file fontgit-0.0.3.tar.gz.

File metadata

  • Download URL: fontgit-0.0.3.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.1 Darwin/24.3.0

File hashes

Hashes for fontgit-0.0.3.tar.gz
Algorithm Hash digest
SHA256 2f9a8b97269ba8796434f233f6073f5e05b42712efed3d4c180dc64a8c5a1d61
MD5 706a7dc089ae2453869a99f15b1d8c33
BLAKE2b-256 f56001482c2424e82a4e086d163b72894477ebcad5ab693d0fae468a63235084

See more details on using hashes here.

File details

Details for the file fontgit-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: fontgit-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.1 Darwin/24.3.0

File hashes

Hashes for fontgit-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a308973f0c520b2f1d3a41418ee5ff92ae178a360ece14244a2687d1b5a0e25b
MD5 71295e7cc987911b0f3fdc9999a79b5e
BLAKE2b-256 0eceb8cd5594f18c6080d8d5ef9914c7998392d41102dbe3eead584fa72c3239

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page