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 # the only supported async runtime in python
from pathlib import Path
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.2.0.tar.gz (77.4 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.2.0-cp310-abi3-win_amd64.whl (2.6 MB view details)

Uploaded CPython 3.10+Windows x86-64

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

Uploaded CPython 3.10+Windows x86

fontsource_downloader-0.2.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.2.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.2.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.2.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.2.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.2.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.2.0-cp310-abi3-macosx_11_0_arm64.whl (3.1 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

fontsource_downloader-0.2.0-cp310-abi3-macosx_10_12_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: fontsource_downloader-0.2.0.tar.gz
  • Upload date:
  • Size: 77.4 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.2.0.tar.gz
Algorithm Hash digest
SHA256 7388b7dc2c61a3f681ee065efd9872b242ca5722069ae0a5ba2ef7d8dbbb463a
MD5 93da8f6ca19ae787df074cb3cabf4419
BLAKE2b-256 2f1c25b4f7c12ca1528a48ccbca81e362ea1133bb30f3b2e7ed10f636a30093f

See more details on using hashes here.

Provenance

The following attestation bundles were made for fontsource_downloader-0.2.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.2.0-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for fontsource_downloader-0.2.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 5a9cfa5224a7adb36d0b0a79769942d62632d93d895f21c5bab8f5e32667b712
MD5 af5c315fa7c5efdf3dc5712c9d2a0abd
BLAKE2b-256 831608a2931cc01b59a7ea57928f608bffde888dfb75b1a6ebadf195fc8171d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for fontsource_downloader-0.2.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.2.0-cp310-abi3-win32.whl.

File metadata

File hashes

Hashes for fontsource_downloader-0.2.0-cp310-abi3-win32.whl
Algorithm Hash digest
SHA256 520944bd2942d9b04385da0bb791b7daf4682f0b95c36ff588df4417519004cf
MD5 6ff9e636cf08e13156f454edf22a9a2d
BLAKE2b-256 5fb07d03a6c381f21f19a5ccd6466b229d4fb2118a6f0cd6509de503cf9d8d42

See more details on using hashes here.

Provenance

The following attestation bundles were made for fontsource_downloader-0.2.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.2.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for fontsource_downloader-0.2.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c23ce91b4e0ddfd3d0629ab273bf4a9ff4fb0e02abdd32b955e068bdd1825413
MD5 3bc17cf90aa098a4188b3af75feb2726
BLAKE2b-256 a1589ed7f050c5fb50ba46de35d2d637a860eb114e9013da89b0b7b58297d88c

See more details on using hashes here.

Provenance

The following attestation bundles were made for fontsource_downloader-0.2.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.2.0-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for fontsource_downloader-0.2.0-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 50a84cb97d2cb462c2ae1f086fabdd3b5d4a58a91dce66a8df10332f60497952
MD5 f8e9b47cb2be1a7bc06bcfc956766cc8
BLAKE2b-256 2aa2cbd059b0dbc07b17af314eefe7a00bc951c5e5534270f518bbf768110035

See more details on using hashes here.

Provenance

The following attestation bundles were made for fontsource_downloader-0.2.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.2.0-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for fontsource_downloader-0.2.0-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 539215d5cb269c65747057ad5793b8f24aecc8e1d565b43a3fa0db83c3bbd85c
MD5 e30c2071b1d71818c26d55d375267b03
BLAKE2b-256 6981bb14e58f1d30f48e8d163f5195c3d7416c99f42408e8e4c4dc26fc5904ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for fontsource_downloader-0.2.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.2.0-cp310-abi3-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for fontsource_downloader-0.2.0-cp310-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 49664fb44a0b28d7788e83d395fd099f4cb774ce4d66be74795afdd17a54c46f
MD5 28ba7a62b21b7d623089f3a2f0d97adf
BLAKE2b-256 ff589fbc8ce6ebd20202e25d4aa05cd6f009b659bcb566f615bd0e46b24d9180

See more details on using hashes here.

Provenance

The following attestation bundles were made for fontsource_downloader-0.2.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.2.0-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for fontsource_downloader-0.2.0-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 26f8f4a7f1e6a96adb18d8c3b3c9d706f1af7ac249f349ed7a6ae3818bec4488
MD5 b33eea7dcae9b7b5f7a7c913d035c8e2
BLAKE2b-256 4a164b6e9b1ffdcacdb77f486cf968f32ea80bbf0048beb21285379e6a7df685

See more details on using hashes here.

Provenance

The following attestation bundles were made for fontsource_downloader-0.2.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.2.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for fontsource_downloader-0.2.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4e45b3933d951f5163814cfbb1f49b28f47d89bc7a83a753227ca6c9a4f5b5de
MD5 1d3c601d8dc1c209e15f2a0245f5b85d
BLAKE2b-256 a5d76d48204545cea0fbf80de000c0996059b58273c4476ed4c2cfa051c427ff

See more details on using hashes here.

Provenance

The following attestation bundles were made for fontsource_downloader-0.2.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.2.0-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for fontsource_downloader-0.2.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2055127789e2957f09b101f2bbe2124e30e7ff09d545d0959c737d41b99348b0
MD5 cd68551e4429530a58c7c227b553287e
BLAKE2b-256 d4bc2b69772656eb9c94d1c8e9f5dcf393081db40a35653d76ac794a74b14f4e

See more details on using hashes here.

Provenance

The following attestation bundles were made for fontsource_downloader-0.2.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.2.0-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for fontsource_downloader-0.2.0-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e316978e0a18e90ee9c6beee94f9690b548599b1fc7c4c2d454998126ad6a5dc
MD5 5ca7617f3a17d63b3a0c1b8e607b10c7
BLAKE2b-256 1db2ad94ec53cc0c00ae77e867d2de3aee0f826fd591e0206055175d6e796616

See more details on using hashes here.

Provenance

The following attestation bundles were made for fontsource_downloader-0.2.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