semvec/pypi-packages huggingface dataset:
CoRE-MOF 2019.1
CoRE MOF database as a Python package
Requires Python: >=3.8

# CoRE-MOF Python package

![MIT](https://img.shields.io/badge/code_license-MIT-blue)
![CC-BY](https://img.shields.io/badge/data_license-CC_BY_4.0-blue)
![Build status](https://github.com/coudertlab/CoRE-MOF/actions/workflows/python-test.yml/badge.svg)

Easy access to the various versions of the [CoRE MOF databases](https://cmcp-group.github.io/database-tools/),
as a Python package.

Two lines of code give you access to any structure from the databases:

```
import CoRE_MOF
mof = CoRE_MOF.get_structure("2019-ASR", "ZUZZEB_clean")
```

----

## Datasets

### CoRE MOF 2014

In the CoRE-MOF package, this dataset is named `2014`.

- Link to dataset: https://doi.org/10.5281/zenodo.3228673
- Link to published paper: https://doi.org/10.1021/cm502594j
- License of the data: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

### CoRE MOF 2019

The 2019 database included in the package is the “public” part of the database,
which is freely available. It is split (as in the original publication) into two
distinct datasets: `2019-ASR` (ASR = All Solvent Removed) and `2019-FSR` (FSR =
Free Solvent Removed).

- Link to dataset (latest version, 1.1.4): https://doi.org/10.5281/zenodo.7691378
- Link to published paper: https://doi.org/10.1021/acs.jced.9b00835
- License of the data: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
mpl_fontkit 0.5.1
Easy font management for Matplotlib.
Requires Python: >=3.8

# mpl_fontkit

![pypi](https://flat.badgen.net/pypi/v/mpl_fontkit?color=blue)

- Use font from google fonts
- Use icon from font awesome
- Set the font and use it easily
- Helpful error message to get your font name right

### Install

```shell
pip install mpl_fontkit
```

### Quick Start


#### Install Google Fonts

```python
import mpl_fontkit as fk

# https://fonts.google.com/specimen/Lato?query=Lato
fk.install("Lato")
```
If the font does not available in matplotlib,
this will download from Google and add it to
matplotlib.

To check available styles for a font
```python
fk.font_table("Lato")
```
<img src="https://raw.githubusercontent.com/heatgraphy/mpl-fontkit/main/images/font_tables.svg" width="300">

And then you are ready to use it in your plots

```python
import matplotlib.pyplot as plt
plt.text("Lato Font", fontdict={"style": "italic", "weight": 700, "size": 24})
```
<img src="https://raw.githubusercontent.com/heatgraphy/mpl-fontkit/main/images/in_plot.svg" alt="show in plot" width="300">

#### Install Font Awesome

To install font awesome and use it in your plot.
```python
fk.install_fontawesome()

plt.text(.5, .5, "\uf58b\uf005\uf59b", fontfamily="Font Awesome 6 Free")
```

The font awesome is available as `Font Awesome 6 Free` and
`Font Awesome 6 Brands`, the name of icon is encoded as unicode.

You can search for icons and get the unicode [here](https://fontawesome.com/search).

<img src="https://raw.githubusercontent.com/heatgraphy/mpl-fontkit/main/images/fontawesome.svg" alt="fontawesome showcase" width="200">

#### Set a font globally

To set a font manually. 
This will update the `rcParams` for you.

```python
import mpl_fontkit as fk

fk.set_font("Lato")
```

Most of the time when you can't get the font to work
simply because the font name is not the same as the file name.
You can just type a fuzzy name, we will try to find
a similar name and show you in the error message.

```python
import mpl_fontkit as fk

fk.set_font("Lat")
```
```text
LookupError: Cannot find Lat, do you mean: Lato. 
    Use `.list_fonts()` to list all the available fonts.
```

#### Get available fonts

```python
fk.list_fonts()
```
```shell
['Agency FB',
 'Algerian',
 'Arial',
 'Arial Rounded MT Bold',
 'Bahnschrift',
 'Baskerville Old Face',
 'Bauhaus 93',
 ...]
 
 ```

#### What fonts look like?

Show one font
```python
fk.show("Lato")
```
<img src="https://raw.githubusercontent.com/heatgraphy/mpl-fontkit/main/images/show.svg" width="200">

Show all fonts at once
```python
fk.show_fonts()
```