semvec/pypi-packages huggingface dataset:
dnd5e-card-generator 0.1.0
Scrape data from aidedd.org to generate spell and items cards with rpg-cards.vercel.app
License: MIT
Requires Python: <4.0,>=3.9

# dnd5e-card-generator

Scrape data from https://aidedd.org to generate spell and items cards with https://rpg-cards.vercel.app

## Example

In this example., we'll scrape data for 13 cleric spell cards, in French. As _Toll the dead_ was never translated, we fallback to the english version.

The spell identifier is the one visible in the aidedd URL, Example: `toll-the-dead` from https://www.aidedd.org/dnd/sorts.php?vo=toll-the-dead.

```console
$ rpg-spell-cards-generator \
    --spells \
      fr:lumiere \
      en:toll-the-dead \
      fr:stabilisation \
      fr:nappe-de-brouillard \
      fr:vague-tonnante \
      fr:mot-de-guerison \
      fr:soins \
      fr:benediction \
      fr:eclair-tracant \
      fr:bourrasque \
      fr:fracassement \
      fr:aide \
      fr:arme-spirituelle \
    --output cleric-cards.json
Scraping data for lumiere
Scraping data for toll-the-dead
Scraping data for stabilisation
Scraping data for nappe-de-brouillard
Scraping data for vague-tonnante
Scraping data for mot-de-guerison
Scraping data for soins
Scraping data for benediction
Scraping data for eclair-tracant
Scraping data for bourrasque
Scraping data for fracassement
Scraping data for aide
Scraping data for arme-spirituelle
$ cat cleric-cards.json | jq '.[0]'
{
  "count": 1,
  "color": "#277DA1",
  "title": "Lumière",
  "icon": "magic-swirl",
  "contents": [
    "subtitle | Tour de magie - Évocation - V M",
    "rule",
    "property | Temps d'invocation: | 1 action",
    "property | Portée: | contact",
    "property | Durée: | 1 h",
    "rule",
    "text | Vous touchez un objet qui ne dépasse pas 3 m dans toutes les dimensions. Jusqu'à la fin du sort, l'objet émet une lumière vive dans un rayon de 6 m et une lumière faible sur 6 m supplémentaires. La lumière est de la couleur que vous voulez. Couvrir complètement l'objet avec quelque chose d'opaque bloque la lumière. Le sort se termine si vous le lancez de nouveau ou si vous le dissipez par une action.",
    "text | Si vous ciblez un objet tenu ou porté par une créature hostile, cette créature doit réussir un jet de sauvegarde de Dextérité pour éviter le sort."
  ],
  "tags": [
    "Barde",
    "Clerc",
    "Ensorceleur",
    "Magicien"
  ],
  "background_image": "data:image/png;base64,iVBORw0...",
}
```

At this point, we can load `bhargrim-cards.json` in https://rpg-cards.vercel.app and export them as we wish.

## Credits

The magic schools symbols were found on [reddit](https://www.reddit.com/r/DnD/comments/71s8s8/art_schools_of_magic_symbols/), created by [`choren64`](https://www.reddit.com/user/choren64), who [authorized reuse](https://www.reddit.com/r/DnD/comments/71s8s8/art_schools_of_magic_symbols/dndhx5b/).

The watercolors images were found on gmbinder. Many thanks to [https://reddit.com/u/flamableconcrete](`/u/flamableconcrete`).
ieseg-recsys 0.24.1
Recommendation Systems - IESEG School of Management
License: MIT
Keywords: Recommender Systems IESEG

<!-- DOCUMENT STYLE -->
<!-- <style>
    body {
        font-family: "Calibri";
        padding-left:1.5cm;
        padding-right:1.5cm;
    }
</style> -->

<!-- HEADER -->
|  |  |
|---|---|
| <img src="https://www.ieseg.fr/wp-content/uploads/IESEG-Logo-2012-rgb.jpg" alt="drawing" width=100%/> | <span><br>Recommendation Systems<br>Module<br>Class: 2023 & 2024</span> |

<!-- CONTENT -->

---

## Overview

- Model evaluation (`eval.py`):
    - Regression metrics
        - RMSE
        - MAE
    - Classification metrics
        - Precision
        - Recall
        - F1
    - Ranking metrics
        - NDCG
    - `eval.evaluate` computes all above mentioned metrics 
    - Evaluate Top-N recommendations
        - HR
        - MAP
- Content based Recommender System (`model.py`)
- Helper functions (`utils.py`)
    - `get_top_n`: Compute Top-N recommendations from predictions 
    - `predict_user_topn`: Compute Top-N recommendations for a user 

<br>

| Useful Links |  |
|---|---|
 | <a href="https://surpriselib.com/"><img src="https://surpriselib.com/logo_white.svg" width="100%"></a> | <a href="https://scikit-learn.org/stable/"><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/0/05/Scikit_learn_logo_small.svg/2560px-Scikit_learn_logo_small.svg.png" width="25%"></a> |