pyhershey
Hershey fonts are a collection of different vector fonts developed 1967 by Dr. Allen Vincent Hershey at the US Naval Weapons Laboratory. These fonts come in different styles and include Latin, Greek, Cyrillic and Japanese (kanji, hiragana and katakana) characters and a lot of other symbols. The fonts' data are available under some restrictions. See font-data/LICENSE and here. But basically, the fonts can be used in any project.
Special about these fonts is that all glyphs are build up by straight line segments which makes their look rather special. Nevertheless, there can be cases where this feature could be highly useful and, of course, it has also some kind of style. To get an impression of the fonts, see the documentation of this package.
This package enables you to use this fonts in your python project in an easy way. The only requirement is python >= 3.8. To install it, run
pip install pyhershey[display]
This installs the package and matplotlib for displaying the glyphs. If you don't need it, just install the package without [display]
The example below shows how to use the library.
from pyhershey import glyph_factory
from pyhershey.show import show_glyph
a = glyph_factory.from_ascii('a', 'roman_simplex')
show_glyph(a)
For further details, see the documentation.
The library is licensed under the GPL3 license (see LICENSE.txt in the root directory). The font data in the font-data directory has its own license which is given in font-data/LICENSE.
Metadata
Release files for pyhershey 0.2.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 |
|---|---|---|---|---|
| pyhershey-0.2.0.tar.gz | 126.8 kB | Without provenance | Details for pyhershey-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyhershey-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for pyhershey-0.2.0-py3-none-any.whl |
Total release size: 253.5 kB
Release files / pyhershey-0.2.0.tar.gz
| Download URL | pyhershey-0.2.0.tar.gz |
|---|---|
| Size | 126.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
356e336b2efe8c3242ed8ccce1a5fd3ac2fa39a6ec466162eadd8a39d79813d8
|
|
BLAKE2b-256 checksum How to use checksums |
76369bb080d6fb7b309bbc5119fdc69e7661061f65bb0cd153e4273e78e296a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / pyhershey-0.2.0-py3-none-any.whl
| Download URL | pyhershey-0.2.0-py3-none-any.whl |
|---|---|
| Size | 126.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1f704059faf120279abc4ff47fb9a35706fd8a4cd6e8aff68fa912884df0c20a
|
|
BLAKE2b-256 checksum How to use checksums |
b6df0482e9cd4ca41e1f27e85d40e6d16ac82df1fa64067dab6a206978d51827
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Security for pyhershey 0.2.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.