Skip to main content

A library to download (and cache) fonts with Fontsource REST API

Project description

fontsource-downloader

Python Rust codecov docs.rs Crates.io PyPI

A library to download (and cache) fonts with fontsource REST API.

Library Features

  • async compatible
  • caching enabled (with option to customize cache root dir)

Examples

Python

import asyncio # only supported async runtime in python
from fontsource_downloader import FontQuery, FontSourceClient, Weight

client = FontSourceClient()
query = FontQuery(
    family: "Roboto",
    weight: Weight.Normal,
)
font_file: Path = await client.download_font(&query)
# do what you want with the cached font file ...

Rust

use std::path::PathBuf;
use fontsource_downloader::{FontQuery, FontSourceClient, Weight};

let client = FontSourceClient::new().unwrap();
let query = FontQuery {
    family: "Roboto".to_string(),
    weight: Weight::Normal,
    ..Default::default()
};
let font_file: PathBuf = client.download_font(&query).await.unwrap();
// do what you want with the cached font file ...

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

fontsource_downloader-0.1.0.tar.gz (75.3 kB view details)

Uploaded Source

Built Distributions

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

fontsource_downloader-0.1.0-cp310-abi3-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.10+Windows x86-64

fontsource_downloader-0.1.0-cp310-abi3-win32.whl (2.2 MB view details)

Uploaded CPython 3.10+Windows x86

fontsource_downloader-0.1.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

fontsource_downloader-0.1.0-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (2.9 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ s390x

fontsource_downloader-0.1.0-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (3.5 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ppc64le

fontsource_downloader-0.1.0-cp310-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (2.7 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ i686

fontsource_downloader-0.1.0-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (2.3 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARMv7l

fontsource_downloader-0.1.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.8 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

fontsource_downloader-0.1.0-cp310-abi3-macosx_11_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

fontsource_downloader-0.1.0-cp310-abi3-macosx_10_12_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

Details for the file fontsource_downloader-0.1.0.tar.gz.

File metadata

  • Download URL: fontsource_downloader-0.1.0.tar.gz
  • Upload date:
  • Size: 75.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for fontsource_downloader-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1ed7f9821b27c91d6a6cd839655f6f49015c2e6f2cc324e749925b4d15c21d1c
MD5 344478f652722467425b0575335604bc
BLAKE2b-256 132ae08c65ac4a7088fcce39481db62e294c83f99fd5b80c17911baa663ce33a

See more details on using hashes here.

Provenance

The following attestation bundles were made for fontsource_downloader-0.1.0.tar.gz:

Publisher: python.yml on 2bndy5/fontsource-downloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fontsource_downloader-0.1.0-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for fontsource_downloader-0.1.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 bf6e0ec996cf3bf7279151e15648b959eb9244dd0d6f1f60f34950fd70bc04a6
MD5 5868d6fb864c8c7645788cb92b08c5ba
BLAKE2b-256 a82c3ad040a05490120ded97858a2c1e1a0463813968f20c31148d39af0fc775

See more details on using hashes here.

Provenance

The following attestation bundles were made for fontsource_downloader-0.1.0-cp310-abi3-win_amd64.whl:

Publisher: python.yml on 2bndy5/fontsource-downloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fontsource_downloader-0.1.0-cp310-abi3-win32.whl.

File metadata

File hashes

Hashes for fontsource_downloader-0.1.0-cp310-abi3-win32.whl
Algorithm Hash digest
SHA256 9f59e907fff648b37bf84376b06385bf13550fcabf6f627b9e435cae0f625bfb
MD5 f10f9747537ff2ba3af9ba4652344fc8
BLAKE2b-256 7d0fa0a3cb9988d0d226c2b5ebe84e1f3b807e0ed87991e0ff50d2db12891502

See more details on using hashes here.

Provenance

The following attestation bundles were made for fontsource_downloader-0.1.0-cp310-abi3-win32.whl:

Publisher: python.yml on 2bndy5/fontsource-downloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fontsource_downloader-0.1.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for fontsource_downloader-0.1.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 053e6cabf3d907ffb8f0e58fa4b32e3dde699a10724e01098d6a91e20b224e41
MD5 6dc0b5af4cfc5e40dce6e05ff7373adc
BLAKE2b-256 c373c0484d396468dd6f4dcc03998bbffd302c8d8cd4d8e3613f007cdbb193ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for fontsource_downloader-0.1.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: python.yml on 2bndy5/fontsource-downloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fontsource_downloader-0.1.0-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for fontsource_downloader-0.1.0-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 15bcdbf4b643bea8c32ed83439996ac9b97cb520aed7325136887a527e0dc04f
MD5 e2384cdd0aa4ba7e00d646f315dccb3c
BLAKE2b-256 5acde102961dfeaf676a15bd19dc6b8e1cebe7a256a5fe997607baf31aa1d824

See more details on using hashes here.

Provenance

The following attestation bundles were made for fontsource_downloader-0.1.0-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl:

Publisher: python.yml on 2bndy5/fontsource-downloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fontsource_downloader-0.1.0-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for fontsource_downloader-0.1.0-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 947179bd217b04dcf88b8db728bb17de19fb448f5cce79d567394221e813009b
MD5 46bfa9c72ec0c676f93fddbc752b7148
BLAKE2b-256 bcfc40106ebdbfed1bcadca30fe74f6003cb5bdc8e1575c52bd16a467e917a19

See more details on using hashes here.

Provenance

The following attestation bundles were made for fontsource_downloader-0.1.0-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl:

Publisher: python.yml on 2bndy5/fontsource-downloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fontsource_downloader-0.1.0-cp310-abi3-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for fontsource_downloader-0.1.0-cp310-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 9b392fb00c5b5b0bcb28d1d6884d4618e34a044eb9a1c00d30a3c22fa72c9f45
MD5 6c5e6e9ac50ba705055943c8ea32099f
BLAKE2b-256 749ccae55807d4e9b2d1e36161db6732a410f683c90190644225787794e3b29f

See more details on using hashes here.

Provenance

The following attestation bundles were made for fontsource_downloader-0.1.0-cp310-abi3-manylinux_2_17_i686.manylinux2014_i686.whl:

Publisher: python.yml on 2bndy5/fontsource-downloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fontsource_downloader-0.1.0-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for fontsource_downloader-0.1.0-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 984f89648d37bc61899f23bb860b9a78a82237e57d868713b3bce75ad1bc5050
MD5 2d9c8fb724a44decb8d26861fc8277e7
BLAKE2b-256 6edc9804aa4c76ed4293c89aea8f05d744627a051492f489243134abf7cc1672

See more details on using hashes here.

Provenance

The following attestation bundles were made for fontsource_downloader-0.1.0-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl:

Publisher: python.yml on 2bndy5/fontsource-downloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fontsource_downloader-0.1.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for fontsource_downloader-0.1.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9dce62486064f9f645fb3af3d850556b0e07d0feaa466a2bdd4c1b0cdc5c741e
MD5 723387d5b97b68bc56ccb4ce3200eb17
BLAKE2b-256 60e4f9cf4ce18736f1448eb9e9ade53c04781e663dfdc03749437f993452a00c

See more details on using hashes here.

Provenance

The following attestation bundles were made for fontsource_downloader-0.1.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: python.yml on 2bndy5/fontsource-downloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fontsource_downloader-0.1.0-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for fontsource_downloader-0.1.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a89bc2430dfa6dd0e50635ee56fe4c158c0f9f9b5d9b6cfe07e475375f1a881c
MD5 2ecfa0f7b840f252c02eec363d03597d
BLAKE2b-256 05f5ee1db6f56f7662528a3fc07c0b2a81d266163c1161822b3774bf509dbc25

See more details on using hashes here.

Provenance

The following attestation bundles were made for fontsource_downloader-0.1.0-cp310-abi3-macosx_11_0_arm64.whl:

Publisher: python.yml on 2bndy5/fontsource-downloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fontsource_downloader-0.1.0-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for fontsource_downloader-0.1.0-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 444f32c012a750ebee318e7508dfdcca13f86a7ef564de162cbb8d2d6b3794c1
MD5 a00b2b0461c0fb007e66d01d2d620bd0
BLAKE2b-256 0a20d2ccbd204e18550316257f897d79011deb191660ded5cfb317866ec56dd8

See more details on using hashes here.

Provenance

The following attestation bundles were made for fontsource_downloader-0.1.0-cp310-abi3-macosx_10_12_x86_64.whl:

Publisher: python.yml on 2bndy5/fontsource-downloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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