A library to download (and cache) fonts with Fontsource REST API
Project description
fontsource-downloader
A library to download (and cache) fonts with fontsource REST API.
Library Features
- Download a batch of fonts per family (based on the given query).
- Asynchronous downloads with true parallelism.
- Generate CSS
@font-facerules. Both CDN URLs and self-hosting (relative path) URLs are supported. Self-hosted font files can be optionally copied from cache to a given destination directory. - Caching enabled (with option to customize cache root dir) for both metadata and font files.
- Minimal debug logs (when enabled).
Rust consumers get to choose their desired TLS backend. Only the required features of the reqwest crate are enabled.
Examples
Python
import asyncio # the only supported async runtime in python
from pathlib import Path
# enable logging before importing this library
from fontsource_downloader import FontQuery, FontSourceClient, Weight
client = FontSourceClient()
query = FontQuery(
family="Roboto",
weights=[Weight(400)],
)
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, QueryBuilder, Weight,
};
let client = FontSourceClient::new().unwrap();
let query: FontQuery = QueryBuilder::new("Roboto")
.with_weight(Weight::from(400))
.build();
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fontsource_downloader-0.3.0.tar.gz.
File metadata
- Download URL: fontsource_downloader-0.3.0.tar.gz
- Upload date:
- Size: 85.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
279a4abdb9bb76befa8e1f21ae2c983817cf18a8386973e3948afed0cabb4ed1
|
|
| MD5 |
33780baf9bcb1d74fb94061e167f8da6
|
|
| BLAKE2b-256 |
1ddc521ea7fb9911a71535a1a7d3218015ef195d940cf889f7d12114757d47e8
|
Provenance
The following attestation bundles were made for fontsource_downloader-0.3.0.tar.gz:
Publisher:
python.yml on 2bndy5/fontsource-downloader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fontsource_downloader-0.3.0.tar.gz -
Subject digest:
279a4abdb9bb76befa8e1f21ae2c983817cf18a8386973e3948afed0cabb4ed1 - Sigstore transparency entry: 1618192143
- Sigstore integration time:
-
Permalink:
2bndy5/fontsource-downloader@708f57bda0f8daa193f3d0929caf118897f8c2df -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/2bndy5
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python.yml@708f57bda0f8daa193f3d0929caf118897f8c2df -
Trigger Event:
push
-
Statement type:
File details
Details for the file fontsource_downloader-0.3.0-cp310-abi3-win_amd64.whl.
File metadata
- Download URL: fontsource_downloader-0.3.0-cp310-abi3-win_amd64.whl
- Upload date:
- Size: 2.7 MB
- Tags: CPython 3.10+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74a94658c1ad080073ca4271d5be5c25917e300aabeaf562ed76652f9b126d66
|
|
| MD5 |
96b0cb5de550db38bdc28ba3e34ff152
|
|
| BLAKE2b-256 |
52673f01cc8b285a3d6a11386bd31749669b4a3bf026ca1d7b4902d007c3a504
|
Provenance
The following attestation bundles were made for fontsource_downloader-0.3.0-cp310-abi3-win_amd64.whl:
Publisher:
python.yml on 2bndy5/fontsource-downloader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fontsource_downloader-0.3.0-cp310-abi3-win_amd64.whl -
Subject digest:
74a94658c1ad080073ca4271d5be5c25917e300aabeaf562ed76652f9b126d66 - Sigstore transparency entry: 1618192688
- Sigstore integration time:
-
Permalink:
2bndy5/fontsource-downloader@708f57bda0f8daa193f3d0929caf118897f8c2df -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/2bndy5
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python.yml@708f57bda0f8daa193f3d0929caf118897f8c2df -
Trigger Event:
push
-
Statement type:
File details
Details for the file fontsource_downloader-0.3.0-cp310-abi3-win32.whl.
File metadata
- Download URL: fontsource_downloader-0.3.0-cp310-abi3-win32.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.10+, Windows x86
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10c2e4d4534bfa08fe33f8214573d292231b929082993ef7d60a79e015003385
|
|
| MD5 |
1860f098b52b02ffdad3e045a205322f
|
|
| BLAKE2b-256 |
f3b70128a8d6538fb4a753f059f00a903863857b0a1bb9e135bbb224f22962cb
|
Provenance
The following attestation bundles were made for fontsource_downloader-0.3.0-cp310-abi3-win32.whl:
Publisher:
python.yml on 2bndy5/fontsource-downloader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fontsource_downloader-0.3.0-cp310-abi3-win32.whl -
Subject digest:
10c2e4d4534bfa08fe33f8214573d292231b929082993ef7d60a79e015003385 - Sigstore transparency entry: 1618193091
- Sigstore integration time:
-
Permalink:
2bndy5/fontsource-downloader@708f57bda0f8daa193f3d0929caf118897f8c2df -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/2bndy5
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python.yml@708f57bda0f8daa193f3d0929caf118897f8c2df -
Trigger Event:
push
-
Statement type:
File details
Details for the file fontsource_downloader-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: fontsource_downloader-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 3.1 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60d8613866928023743ef0a4fcb3ed8446e4ecf1a47876182180ef83b42d9862
|
|
| MD5 |
a4b684858bb03bac1f789418b319e7d2
|
|
| BLAKE2b-256 |
e9e7e070f51bffce9f1a784b0ae9d14568925437e590e70f7fc8ee305f821c13
|
Provenance
The following attestation bundles were made for fontsource_downloader-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
python.yml on 2bndy5/fontsource-downloader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fontsource_downloader-0.3.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
60d8613866928023743ef0a4fcb3ed8446e4ecf1a47876182180ef83b42d9862 - Sigstore transparency entry: 1618192245
- Sigstore integration time:
-
Permalink:
2bndy5/fontsource-downloader@708f57bda0f8daa193f3d0929caf118897f8c2df -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/2bndy5
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python.yml@708f57bda0f8daa193f3d0929caf118897f8c2df -
Trigger Event:
push
-
Statement type:
File details
Details for the file fontsource_downloader-0.3.0-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl.
File metadata
- Download URL: fontsource_downloader-0.3.0-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
- Upload date:
- Size: 3.1 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ s390x
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e7aaa7346f9a6532f1dec1b8aa0573efbd51741280c74b9fa5bf972c8deb549
|
|
| MD5 |
ac3cc67a4dfeb94caec843d1335122a9
|
|
| BLAKE2b-256 |
f52a26bd1161cc7c92bef083ff7eeb643478c21856db058595fd96e6ce132231
|
Provenance
The following attestation bundles were made for fontsource_downloader-0.3.0-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl:
Publisher:
python.yml on 2bndy5/fontsource-downloader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fontsource_downloader-0.3.0-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl -
Subject digest:
1e7aaa7346f9a6532f1dec1b8aa0573efbd51741280c74b9fa5bf972c8deb549 - Sigstore transparency entry: 1618192775
- Sigstore integration time:
-
Permalink:
2bndy5/fontsource-downloader@708f57bda0f8daa193f3d0929caf118897f8c2df -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/2bndy5
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python.yml@708f57bda0f8daa193f3d0929caf118897f8c2df -
Trigger Event:
push
-
Statement type:
File details
Details for the file fontsource_downloader-0.3.0-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.
File metadata
- Download URL: fontsource_downloader-0.3.0-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
- Upload date:
- Size: 3.7 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ ppc64le
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34106d197da030305cf29f953d26c2788b5d518138442113a2a0c0ae3f41581f
|
|
| MD5 |
ebcc5d45ed907073521658503bef61b3
|
|
| BLAKE2b-256 |
1a6739dbf0c3b8f4c0148a83254772be209e8e434b57cc230858c9a5083794a5
|
Provenance
The following attestation bundles were made for fontsource_downloader-0.3.0-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl:
Publisher:
python.yml on 2bndy5/fontsource-downloader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fontsource_downloader-0.3.0-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl -
Subject digest:
34106d197da030305cf29f953d26c2788b5d518138442113a2a0c0ae3f41581f - Sigstore transparency entry: 1618192880
- Sigstore integration time:
-
Permalink:
2bndy5/fontsource-downloader@708f57bda0f8daa193f3d0929caf118897f8c2df -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/2bndy5
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python.yml@708f57bda0f8daa193f3d0929caf118897f8c2df -
Trigger Event:
push
-
Statement type:
File details
Details for the file fontsource_downloader-0.3.0-cp310-abi3-manylinux_2_17_i686.manylinux2014_i686.whl.
File metadata
- Download URL: fontsource_downloader-0.3.0-cp310-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 2.8 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ i686
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
001a29f9c8aed2dc3d1dba56cbfe0434369bdabfb95855b2730a971195e0a673
|
|
| MD5 |
130303252121e609a0fb97a166f2b825
|
|
| BLAKE2b-256 |
43631831adb1b6be88c5e7364a65aa9ea5aed6a4d40bc43f8f54146dd86feafa
|
Provenance
The following attestation bundles were made for fontsource_downloader-0.3.0-cp310-abi3-manylinux_2_17_i686.manylinux2014_i686.whl:
Publisher:
python.yml on 2bndy5/fontsource-downloader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fontsource_downloader-0.3.0-cp310-abi3-manylinux_2_17_i686.manylinux2014_i686.whl -
Subject digest:
001a29f9c8aed2dc3d1dba56cbfe0434369bdabfb95855b2730a971195e0a673 - Sigstore transparency entry: 1618192582
- Sigstore integration time:
-
Permalink:
2bndy5/fontsource-downloader@708f57bda0f8daa193f3d0929caf118897f8c2df -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/2bndy5
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python.yml@708f57bda0f8daa193f3d0929caf118897f8c2df -
Trigger Event:
push
-
Statement type:
File details
Details for the file fontsource_downloader-0.3.0-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.
File metadata
- Download URL: fontsource_downloader-0.3.0-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
- Upload date:
- Size: 2.4 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ ARMv7l
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aea5842c032d8825475faedfb91cf267d41618b59fd4ba872d9ea84b2b6fe721
|
|
| MD5 |
148e9461348473c75626fe6af01a19c9
|
|
| BLAKE2b-256 |
4fb2f2461caa179cc08d85191068076612b487284ddc6f8949a2bee8e3a4f967
|
Provenance
The following attestation bundles were made for fontsource_downloader-0.3.0-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl:
Publisher:
python.yml on 2bndy5/fontsource-downloader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fontsource_downloader-0.3.0-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl -
Subject digest:
aea5842c032d8825475faedfb91cf267d41618b59fd4ba872d9ea84b2b6fe721 - Sigstore transparency entry: 1618192364
- Sigstore integration time:
-
Permalink:
2bndy5/fontsource-downloader@708f57bda0f8daa193f3d0929caf118897f8c2df -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/2bndy5
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python.yml@708f57bda0f8daa193f3d0929caf118897f8c2df -
Trigger Event:
push
-
Statement type:
File details
Details for the file fontsource_downloader-0.3.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: fontsource_downloader-0.3.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 2.9 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91722a4a35c61c64b09f6c97195d54594f51fb317b790ef315b35e0b1623bfb2
|
|
| MD5 |
7b8632c99e9da8cc222cc5ff361c4a31
|
|
| BLAKE2b-256 |
b1308850b28239236d2f964fd5164ff3dce0edf20cf1f6dc5143293e76f298d8
|
Provenance
The following attestation bundles were made for fontsource_downloader-0.3.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:
Publisher:
python.yml on 2bndy5/fontsource-downloader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fontsource_downloader-0.3.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl -
Subject digest:
91722a4a35c61c64b09f6c97195d54594f51fb317b790ef315b35e0b1623bfb2 - Sigstore transparency entry: 1618192984
- Sigstore integration time:
-
Permalink:
2bndy5/fontsource-downloader@708f57bda0f8daa193f3d0929caf118897f8c2df -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/2bndy5
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python.yml@708f57bda0f8daa193f3d0929caf118897f8c2df -
Trigger Event:
push
-
Statement type:
File details
Details for the file fontsource_downloader-0.3.0-cp310-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: fontsource_downloader-0.3.0-cp310-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 3.2 MB
- Tags: CPython 3.10+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ef5c406473f67065b9d5b0d911e30c6da5ecc8f5787c3b7f1cfd278b7093844
|
|
| MD5 |
387b5cce8c96230c71da0a067e199fd9
|
|
| BLAKE2b-256 |
eb59d4a79347f6693b9876180cb54feee11e94a155b3d6f91db8ff05b349343a
|
Provenance
The following attestation bundles were made for fontsource_downloader-0.3.0-cp310-abi3-macosx_11_0_arm64.whl:
Publisher:
python.yml on 2bndy5/fontsource-downloader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fontsource_downloader-0.3.0-cp310-abi3-macosx_11_0_arm64.whl -
Subject digest:
4ef5c406473f67065b9d5b0d911e30c6da5ecc8f5787c3b7f1cfd278b7093844 - Sigstore transparency entry: 1618192471
- Sigstore integration time:
-
Permalink:
2bndy5/fontsource-downloader@708f57bda0f8daa193f3d0929caf118897f8c2df -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/2bndy5
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python.yml@708f57bda0f8daa193f3d0929caf118897f8c2df -
Trigger Event:
push
-
Statement type:
File details
Details for the file fontsource_downloader-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl.
File metadata
- Download URL: fontsource_downloader-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 3.3 MB
- Tags: CPython 3.10+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bfd9e33abe3f8012a526af89ab7cf5693fc2539b0ccd53cc9ec0d07bbc53e190
|
|
| MD5 |
396c761f60f4c828d3a8ae6dcefa3220
|
|
| BLAKE2b-256 |
b63cce4b0a65b321a7c579b9747ac61f7d08fe19a0510d9507a63cccee40fca5
|
Provenance
The following attestation bundles were made for fontsource_downloader-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl:
Publisher:
python.yml on 2bndy5/fontsource-downloader
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fontsource_downloader-0.3.0-cp310-abi3-macosx_10_12_x86_64.whl -
Subject digest:
bfd9e33abe3f8012a526af89ab7cf5693fc2539b0ccd53cc9ec0d07bbc53e190 - Sigstore transparency entry: 1618193165
- Sigstore integration time:
-
Permalink:
2bndy5/fontsource-downloader@708f57bda0f8daa193f3d0929caf118897f8c2df -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/2bndy5
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python.yml@708f57bda0f8daa193f3d0929caf118897f8c2df -
Trigger Event:
push
-
Statement type: