semvec/pypi-packages huggingface dataset:
soma-teste 0.1.dev38
Private utility package used by SomaLabs.

# Installation

The installation can be done using either ssh or https:

## SSH
`pip install -e "git+ssh://git@bitbucket.org/somalabs/soma-tools.git/#egg=soma&subdirectory=soma_pkg/"`

## HTTPS
`pip install -e "git+https://bitbucket.org/somalabs/soma-tools.git/#egg=soma&subdirectory=soma_pkg/"`
bdfparse 2019.8
A package for reading .bdf files into NumPy arrays.

# .bdf to NumPy

This project takes a .bdf file and turns it into a [NumPy](https://www.numpy.org/) Array with an intended use with LED matrix displays. My [LED Stock Ticker](https://gitlab.com/them-boys/raspberry-pi-stock-ticker) uses this package. A good list of .bdf files can be found [here](https://github.com/hzeller/rpi-rgb-led-matrix/tree/master/fonts)

## Usage

```python
from bdfparse import Font

font = Font('9x18.bdf')

print(font.word('Hi'))
```

Which outputs:

```python
[[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
 [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
 [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
 [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
 [0 0 1 0 0 0 0 0 1 0 0 0 0 1 1 0 0 0]
 [0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0]
 [0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0]
 [0 0 1 0 0 0 0 0 1 0 0 0 1 1 1 0 0 0]
 [0 0 1 1 1 1 1 1 1 0 0 0 0 0 1 0 0 0]
 [0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0]
 [0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0]
 [0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0]
 [0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0]
 [0 0 1 0 0 0 0 0 1 0 0 0 1 1 1 1 1 0]
 [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
 [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
 [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
 [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]]
```

Or you can use matplotlib to make the output a bit prettier.

```python
import matplotlib.pyplot as plt

plt.imshow(font.word('Anson'))
```

![Example of code output that reads Anson.](example.png)