A small script to generate wordclouds, meant to be used as a way to easily display our trends and their importance.
This repository serves to generate a wordcloud of various trends. This is then used in Happeo for the trend radar homepage.
The easiest way to run this script is to use Devbox. You can
then build the wordcloud the command below, which will generate a trend-radar.png file within the
assets directory.
devbox run generateAlternatively you can use uv or pip directly to install the
required dependencies and run the script:
# for uv
uv add --frozen -r requirements.txt
uv run --frozen python main.py
# for pip
pip install -r requirements.txt
python main.pyTrends can be added by modifying the trends.csv file. Each line represents a
trend, which the following fields in order:
- The name of the trend
- Its weight. We use weights between 1 and 100 inclusive.
- The focus area of the trend. Can be one of:
cloudai&datasecurityintegrationcustom applications
Any text is ideally put into quotes. This avoids issues where the text contains a comma and is thus interpreted in a different manner by the CSV parser.
Once you have added a trend, you can generate images. Note that the order of the trends in the CSV has no effect.
There is no need to generate the images yourself. A GitHub workflow will generate a new image when changes are done to the repository.
