Skip to content

Larspolo/nerdfont-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nerd Font icons for python

Installation

pip install nerdfont

Usage

import nerdfont as nf

print(nf.icons['fa-thumbs_up']) # Supports both without prefix
>>> 
print(nf.icons['nf-fa-thumbs_up']) # And with `nf-` prefix
>>> 

All non-removed icons that are available on in the Nerd Fonts cheat-sheet should be included in this package.

Build

# Run the generate script to download nerd font's character mapping
# and generate a python-formatted version of it.  Save this file as icons.py
# in the nerdfont subdirectory.  Note that this pulls the latest revision
# on the master branch.  You can easily change this  with the --revision flag.

rm -rf build dist nerdfont.egg-info && \
python3 ./nerdfont/generate.py > ./nerdfont/icons.py && \
python3 -m build && \
python3 -m pip install . && \
python3 -m twine upload dist/*

License

The code in this repository is licensed under Apache 2.0

The character codes included with this package are part of the Nerd Font project.

About

Easily include Nerd Font icons in your python scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%