Skip to main content

A tool for versioning font files with Git.

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.7.tar.gz (7.2 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.7-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fontgit-0.0.7.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.4 Darwin/24.5.0

File hashes

Hashes for fontgit-0.0.7.tar.gz
Algorithm Hash digest
SHA256 1ab13fa0371b4353cf0ecf9041ff0e7658494f2ed6b19f62ae5945af0b4a8e32
MD5 400df8362c179d0bbd34923d78460430
BLAKE2b-256 84b23a5f948365de749c6901e7fa6a7ca0ec0b7857d520c9eb6ea557adbee9fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fontgit-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.4 Darwin/24.5.0

File hashes

Hashes for fontgit-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 7819c27be10e59a913ff2cf12a83fa0686dfecf3989f0890e7c80046581f148e
MD5 cca652e4832e2ef31b25bf76c3740c99
BLAKE2b-256 6a2c266ef7e7cdd4b005044f6b1cd93b248dc58d2ff268ff84e43c6eaab11b4a

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