fontpls
Overview
fontpls is a minimal cli tool for extracting fonts from websites written in Python.
This tool helps web developers, designers, and typographers easily extract and reuse fonts from websites with minimal effort.
Installation
pip install fontpls
Or install from source:
git clone https://github.com/jon-becker/fontpls
cd fontpls
pip install -e .
Usage
Basic usage:
fontpls https://example.com
With options:
fontpls https://example.com --output fonts --threads 8 --tags h1,p,div
Options
| Option | Description |
|---|---|
--tags |
Only include fonts used in the specified HTML tags (comma-separated) |
--exclude, -x |
Exclude fonts used in the specified tags (comma-separated) |
--output, -o |
Output font files to the specified directory |
--threads, -t |
Number of download threads to use |
--verbose, -v |
Increase verbosity level (use multiple times for more detail) |
Output
fontpls creates a directory structure like this:
example-com/
├── Font1-Regular.woff2
├── Font2-Bold.woff2
├── Font3-Italic.woff2
├── fonts.css
└── index.html
fonts.css: CSS stylesheet with @font-face declarationsindex.html: HTML file showcasing all downloaded fonts
Contributing
If you'd like to contribute to fontpls, please open a pull-request with your changes, as well as detailed information on what is changed, added, or improved.
For more detailed information, see the contributing guide
Issues
If you've found an issue or have a question, please open an issue here. All issues must follow their respective templates.
Metadata
Release files for fontpls 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fontpls-0.1.0.tar.gz | 20.6 kB | Without provenance | Details for fontpls-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fontpls-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for fontpls-0.1.0-py3-none-any.whl |
Total release size: 45.3 kB
Release files / fontpls-0.1.0.tar.gz
| Download URL | fontpls-0.1.0.tar.gz |
|---|---|
| Size | 20.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b14208e273c635b3291f778d98a5864c5672cc1f3b70bfa87f6dfee5eae6cdec
|
|
BLAKE2b-256 checksum How to use checksums |
a7699af021517208ed4774549f23194f54d0436d7f1bb553c8e43becb96601d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.5
|
Release files / fontpls-0.1.0-py3-none-any.whl
| Download URL | fontpls-0.1.0-py3-none-any.whl |
|---|---|
| Size | 24.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1452d3b1d50ec01bddeebd86242810185f5a97c8821ae8069dfdc3b409d40af6
|
|
BLAKE2b-256 checksum How to use checksums |
dd7bb7a5028ccf6b020703f1eb86516029b88f820bf57e1d0061b1348895f7ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.5
|
Security for fontpls 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.